Changeset 38247 in webkit for trunk/JavaScriptCore/bytecompiler/CodeGenerator.cpp
- Timestamp:
- Nov 9, 2008, 5:04:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/CodeGenerator.cpp
r38230 r38247 208 208 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) 209 209 , m_lastOpcodeID(op_end) 210 , m_emitNodeDepth(0) 210 211 { 211 212 if (m_shouldEmitDebugHooks) … … 284 285 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) 285 286 , m_lastOpcodeID(op_end) 287 , m_emitNodeDepth(0) 286 288 { 287 289 if (m_shouldEmitDebugHooks) … … 354 356 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) 355 357 , m_lastOpcodeID(op_end) 358 , m_emitNodeDepth(0) 356 359 { 357 360 if (m_shouldEmitDebugHooks) … … 1677 1680 } 1678 1681 1682 RegisterID* CodeGenerator::emitThrowExpressionTooDeepException() 1683 { 1684 // It would be nice to do an even better job of identifying exactly where the expression is. 1685 // And we could make the caller pass the node pointer in, if there was some way of getting 1686 // that from an arbitrary node. However, calling emitExpressionInfo without any useful data 1687 // is still good enough to get us an accurate line number. 1688 emitExpressionInfo(0, 0, 0); 1689 RegisterID* exception = emitNewError(newTemporary(), SyntaxError, jsString(globalData(), "Expression too deep")); 1690 emitThrow(exception); 1691 return exception; 1692 } 1693 1679 1694 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.