Changeset 37320 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Oct 5, 2008, 3:47:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r37294 r37320 132 132 m_codeBlock->thisRegister = m_thisRegister.index(); 133 133 134 if (m_shouldEmitDebugHooks)135 m_codeBlock->needsFullScopeChain = true;136 137 134 m_scopeNode->emitCode(*this); 138 139 if (m_codeType == FunctionCode && m_codeBlock->needsFullScopeChain) {140 ASSERT(globalData()->machine->getOpcodeID(m_codeBlock->instructions[0].u.opcode) == op_enter);141 m_codeBlock->instructions[0] = globalData()->machine->getOpcode(op_enter_with_activation);142 }143 135 144 136 #ifndef NDEBUG … … 217 209 , m_lastOpcodeID(op_end) 218 210 { 211 if (m_shouldEmitDebugHooks) 212 m_codeBlock->needsFullScopeChain = true; 213 219 214 emitOpcode(op_enter); 220 215 codeBlock->globalData = m_globalData; … … 290 285 , m_lastOpcodeID(op_end) 291 286 { 292 emitOpcode(op_enter); 287 if (m_shouldEmitDebugHooks) 288 m_codeBlock->needsFullScopeChain = true; 289 290 if (m_codeBlock->needsFullScopeChain) 291 emitOpcode(op_enter_with_activation); 292 else 293 emitOpcode(op_enter); 294 293 295 codeBlock->globalData = m_globalData; 294 296 … … 348 350 , m_lastOpcodeID(op_end) 349 351 { 352 if (m_shouldEmitDebugHooks) 353 m_codeBlock->needsFullScopeChain = true; 354 350 355 emitOpcode(op_enter); 351 356 codeBlock->globalData = m_globalData; … … 1201 1206 RegisterID* CodeGenerator::emitPushScope(RegisterID* scope) 1202 1207 { 1203 m_codeBlock->needsFullScopeChain = true;1204 1208 ControlFlowContext context; 1205 1209 context.isFinallyBlock = false; … … 1417 1421 void CodeGenerator::emitPushNewScope(RegisterID* dst, Identifier& property, RegisterID* value) 1418 1422 { 1419 m_codeBlock->needsFullScopeChain = true;1420 1423 ControlFlowContext context; 1421 1424 context.isFinallyBlock = false;
Note:
See TracChangeset
for help on using the changeset viewer.