Changeset 29431 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jan 12, 2008, 3:03:30 AM (18 years ago)
Author:
[email protected]
Message:

Reviewed by Maciej.

Fixes a problem with the ActivationImp tear-off patch (r29425) where
some of the calls to JSGlobalObject::tearOffActivation() were using
the wrong test to determine whether it should leave a relic behind.

  • kjs/function.cpp: (KJS::FunctionImp::argumentsGetter): (KJS::ActivationImp::getOwnPropertySlot):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r29428 r29431  
     12008-01-12  Cameron Zwarich  <[email protected]>
     2
     3        Reviewed by Maciej.
     4
     5        Fixes a problem with the ActivationImp tear-off patch (r29425) where
     6        some of the calls to JSGlobalObject::tearOffActivation() were using
     7        the wrong test to determine whether it should leave a relic behind.
     8
     9        * kjs/function.cpp:
     10        (KJS::FunctionImp::argumentsGetter):
     11        (KJS::ActivationImp::getOwnPropertySlot):
     12
    1132008-01-11  Geoffrey Garen  <[email protected]>
    214
  • trunk/JavaScriptCore/kjs/function.cpp

    r29425 r29431  
    8989  for (ExecState* e = exec; e; e = e->callingExecState())
    9090    if (e->function() == thisObj) {
    91       e->dynamicGlobalObject()->tearOffActivation(e, e == exec);
     91      e->dynamicGlobalObject()->tearOffActivation(e, e != exec);
    9292      return e->activationObject()->get(exec, propertyName);
    9393    }
     
    392392        for (ExecState* e = exec; e; e = e->callingExecState())
    393393            if (e->function() == d()->function) {
    394                 e->dynamicGlobalObject()->tearOffActivation(e, e == exec);
     394                e->dynamicGlobalObject()->tearOffActivation(e, e != exec);
    395395                ActivationImp* newActivation = e->activationObject();
    396396                slot.setCustom(newActivation, newActivation->getArgumentsGetter());
Note: See TracChangeset for help on using the changeset viewer.