Ignore:
Timestamp:
Nov 2, 2009, 10:49:42 PM (16 years ago)
Author:
[email protected]
Message:

REGRESSION (r48573): JSC may incorrectly cache chain lookups with a dictionary at the head of the chain
https://bugs.webkit.org/show_bug.cgi?id=31045

Reviewed by Gavin Barraclough.

Add guards to prevent caching of prototype chain lookups with dictionaries at the
head of the chain. Also add a few tighter assertions to cached prototype lookups
to catch this in future.

File:
1 edited

Legend:

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

    r50109 r50443  
    756756
    757757        JIT::patchGetByIdSelf(codeBlock, stubInfo, structure, slot.cachedOffset(), returnAddress);
     758        return;
     759    }
     760
     761    if (structure->isDictionary()) {
     762        ctiPatchCallByReturnAddress(codeBlock, returnAddress, FunctionPtr(cti_op_get_by_id_generic));
    758763        return;
    759764    }
Note: See TracChangeset for help on using the changeset viewer.