Changeset 2824 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Nov 22, 2002, 1:04:55 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r2821 r2824 378 378 case EvalCode: 379 379 if (_callingContext) { 380 scope = _callingContext->scopeChain() .copy();380 scope = _callingContext->scopeChain(); 381 381 variable = _callingContext->variableObject(); 382 382 thisVal = _callingContext->thisValue(); … … 384 384 } // else same as GlobalCode 385 385 case GlobalCode: 386 scope = ScopeChain();387 scope.p repend(glob);386 scope.clear(); 387 scope.push(glob.imp()); 388 388 thisVal = Object(static_cast<ObjectImp*>(glob.imp())); 389 389 break; … … 391 391 case AnonymousCode: 392 392 if (type == FunctionCode) { 393 scope = func->scope() .copy();394 scope.p repend(activation);393 scope = func->scope(); 394 scope.push(activation.imp()); 395 395 } else { 396 scope = ScopeChain();397 scope.p repend(glob);398 scope.p repend(activation);396 scope.clear(); 397 scope.push(glob.imp()); 398 scope.push(activation.imp()); 399 399 } 400 400 variable = activation; // TODO: DontDelete ? (ECMA 10.2.3) … … 409 409 { 410 410 _interpreter->setContext(_callingContext); 411 }412 413 void ContextImp::pushScope(const Object &s)414 {415 scope.prepend(s);416 }417 418 void ContextImp::popScope()419 {420 scope.removeFirst();421 411 } 422 412
Note:
See TracChangeset
for help on using the changeset viewer.