Changeset 21019 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Apr 22, 2007, 9:16:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r20310 r21019 510 510 // ECMA 10.1.6 511 511 ActivationImp::ActivationImp(FunctionImp* function, const List& arguments) 512 : _function(function), _arguments(true), _argumentsObject(0) 513 { 514 _arguments.copyFrom(arguments); 512 : _function(function), _arguments(arguments), _argumentsObject(0) 513 { 515 514 // FIXME: Do we need to support enumerating the arguments property? 516 515 } … … 571 570 if (_function && !_function->marked()) 572 571 _function->mark(); 573 _arguments.mark();574 572 if (_argumentsObject && !_argumentsObject->marked()) 575 573 _argumentsObject->mark(); … … 577 575 } 578 576 579 void ActivationImp::createArgumentsObject(ExecState* exec) const577 void ActivationImp::createArgumentsObject(ExecState* exec) 580 578 { 581 579 _argumentsObject = new Arguments(exec, _function, _arguments, const_cast<ActivationImp*>(this)); 580 // The arguments list is only needed to create the arguments object, so discard it now 581 _arguments.reset(); 582 582 } 583 583
Note:
See TracChangeset
for help on using the changeset viewer.