Ignore:
Timestamp:
Sep 21, 2009, 11:59:56 AM (16 years ago)
Author:
[email protected]
Message:

REGRESSION (r48582): Crash in StructureStubInfo::initPutByIdTransition when reloading trac.webkit.org
https://bugs.webkit.org/show_bug.cgi?id=29599

Reviewed by Geoff Garen

It is unsafe to attempt to cache new property transitions on
dictionaries of any type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITStubs.cpp

    r48582 r48590  
    696696    if (slot.type() == PutPropertySlot::NewProperty) {
    697697        StructureChain* prototypeChain = structure->prototypeChain(callFrame);
    698         if (!prototypeChain->isCacheable()) {
     698        if (!prototypeChain->isCacheable() || structure->isDictionary()) {
    699699            ctiPatchCallByReturnAddress(codeBlock, returnAddress, FunctionPtr(cti_op_put_by_id_generic));
    700700            return;
Note: See TracChangeset for help on using the changeset viewer.