Changeset 155657 in webkit for trunk/Source/JavaScriptCore/bytecompiler
- Timestamp:
- Sep 12, 2013, 4:07:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r155262 r155657 226 226 m_symbolTable->setCaptureStart(m_codeBlock->m_numVars); 227 227 228 if (functionBody->usesArguments() || codeBlock->usesEval() || m_shouldEmitDebugHooks) { // May reify arguments object.228 if (functionBody->usesArguments() || codeBlock->usesEval()) { // May reify arguments object. 229 229 RegisterID* unmodifiedArgumentsRegister = addVar(); // Anonymous, so it can't be modified by user code. 230 230 RegisterID* argumentsRegister = addVar(propertyNames().arguments, false); // Can be changed by assigning to 'arguments'. … … 240 240 241 241 if (shouldTearOffArgumentsEagerly()) { 242 emitOpcode(op_create_arguments);243 instructions().append(argumentsRegister->index());244 }245 246 // The debugger currently retrieves the arguments object from an activation rather than pulling247 // it from a call frame. In the long-term it should stop doing that (<rdar://problem/6911886>),248 // but for now we force eager creation of the arguments object when debugging.249 if (m_shouldEmitDebugHooks) {250 242 emitOpcode(op_create_arguments); 251 243 instructions().append(argumentsRegister->index());
Note:
See TracChangeset
for help on using the changeset viewer.