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/interpreter/Interpreter.cpp

    r48582 r48590  
    989989    // Structure transition, cache transition info
    990990    if (slot.type() == PutPropertySlot::NewProperty) {
     991        if (structure->isDictionary()) {
     992            vPC[0] = getOpcode(op_put_by_id_generic);
     993            return;
     994        }
    991995        vPC[0] = getOpcode(op_put_by_id_transition);
    992996        vPC[4] = structure->previousID();
Note: See TracChangeset for help on using the changeset viewer.