Ignore:
Timestamp:
Apr 30, 2012, 12:20:04 PM (13 years ago)
Author:
[email protected]
Message:

End of Interpreter::tryCacheGetByID can trigger the garbage collector
https://bugs.webkit.org/show_bug.cgi?id=84927

Patch by Myles Maxfield <[email protected]> on 2012-04-30
Reviewed by Oliver Hunt.

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::tryCacheGetByID):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r115493 r115657  
    18661866
    18671867   
     1868    StructureChain* prototypeChain = structure->prototypeChain(callFrame);
    18681869    switch (slot.cachedPropertyType()) {
    18691870    case PropertySlot::Getter:
     
    18811882    }
    18821883    vPC[4].u.structure.set(callFrame->globalData(), codeBlock->ownerExecutable(), structure);
    1883     vPC[5].u.structureChain.set(callFrame->globalData(), codeBlock->ownerExecutable(), structure->prototypeChain(callFrame));
     1884    vPC[5].u.structureChain.set(callFrame->globalData(), codeBlock->ownerExecutable(), prototypeChain);
    18841885    vPC[6] = count;
    18851886}
Note: See TracChangeset for help on using the changeset viewer.