Changeset 80285 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Mar 3, 2011, 2:30:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r79904 r80285 570 570 callFrame->setScopeChain(scopeChain); 571 571 JSActivation* activation = asActivation(scopeChain->object.get()); 572 activation->copyRegisters( );572 activation->copyRegisters(*scopeChain->globalData); 573 573 if (JSValue arguments = callFrame->uncheckedR(unmodifiedArgumentsRegister(oldCodeBlock->argumentsRegister())).jsValue()) { 574 574 if (!oldCodeBlock->isStrictMode()) … … 577 577 } else if (oldCodeBlock->usesArguments() && !oldCodeBlock->isStrictMode()) { 578 578 if (JSValue arguments = callFrame->uncheckedR(unmodifiedArgumentsRegister(oldCodeBlock->argumentsRegister())).jsValue()) 579 asArguments(arguments)->copyRegisters( );579 asArguments(arguments)->copyRegisters(callFrame->globalData()); 580 580 } 581 581 … … 2357 2357 int index = vPC[2].u.operand; 2358 2358 2359 callFrame->uncheckedR(dst) = scope->registerAt(index) ;2359 callFrame->uncheckedR(dst) = scope->registerAt(index).get(); 2360 2360 vPC += OPCODE_LENGTH(op_get_global_var); 2361 2361 NEXT_INSTRUCTION(); … … 2371 2371 int value = vPC[2].u.operand; 2372 2372 2373 scope->registerAt(index) = JSValue(callFrame->r(value).jsValue());2373 scope->registerAt(index).set(*globalData, scope, callFrame->r(value).jsValue()); 2374 2374 vPC += OPCODE_LENGTH(op_put_global_var); 2375 2375 NEXT_INSTRUCTION(); … … 2402 2402 ASSERT((*iter)->isVariableObject()); 2403 2403 JSVariableObject* scope = static_cast<JSVariableObject*>(iter->get()); 2404 callFrame->uncheckedR(dst) = scope->registerAt(index) ;2404 callFrame->uncheckedR(dst) = scope->registerAt(index).get(); 2405 2405 ASSERT(callFrame->r(dst).jsValue()); 2406 2406 vPC += OPCODE_LENGTH(op_get_scoped_var); … … 2434 2434 JSVariableObject* scope = static_cast<JSVariableObject*>(iter->get()); 2435 2435 ASSERT(callFrame->r(value).jsValue()); 2436 scope->registerAt(index) = JSValue(callFrame->r(value).jsValue());2436 scope->registerAt(index).set(*globalData, scope, callFrame->r(value).jsValue()); 2437 2437 vPC += OPCODE_LENGTH(op_put_scoped_var); 2438 2438 NEXT_INSTRUCTION(); … … 4094 4094 JSValue activationValue = callFrame->r(activation).jsValue(); 4095 4095 if (activationValue) { 4096 asActivation(activationValue)->copyRegisters( );4096 asActivation(activationValue)->copyRegisters(*globalData); 4097 4097 4098 4098 if (JSValue argumentsValue = callFrame->r(unmodifiedArgumentsRegister(arguments)).jsValue()) { … … 4102 4102 } else if (JSValue argumentsValue = callFrame->r(unmodifiedArgumentsRegister(arguments)).jsValue()) { 4103 4103 if (!codeBlock->isStrictMode()) 4104 asArguments(argumentsValue)->copyRegisters( );4104 asArguments(argumentsValue)->copyRegisters(*globalData); 4105 4105 } 4106 4106 … … 4124 4124 4125 4125 if (JSValue arguments = callFrame->r(unmodifiedArgumentsRegister(src1)).jsValue()) 4126 asArguments(arguments)->copyRegisters( );4126 asArguments(arguments)->copyRegisters(*globalData); 4127 4127 4128 4128 vPC += OPCODE_LENGTH(op_tear_off_arguments); … … 4800 4800 4801 4801 Arguments* arguments = new (functionCallFrame) Arguments(functionCallFrame); 4802 arguments->copyRegisters( );4802 arguments->copyRegisters(functionCallFrame->globalData()); 4803 4803 return arguments; 4804 4804 }
Note:
See TracChangeset
for help on using the changeset viewer.