Ignore:
Timestamp:
Aug 26, 2014, 9:46:10 AM (11 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r172940.
https://bugs.webkit.org/show_bug.cgi?id=136256

Caused assertions on fast/storage/serialized-script-
value.html, and possibly flakiness on more tests (Requested by
ap on #webkit).

Reverted changeset:

"FTL should be able to do polymorphic call inlining"
https://bugs.webkit.org/show_bug.cgi?id=135145
http://trac.webkit.org/changeset/172940

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGLazyJSValue.cpp

    r172940 r172961  
    114114}
    115115
    116 uintptr_t LazyJSValue::switchLookupValue(SwitchKind kind) const
    117 {
    118     // NB. Not every kind of JSValue will be able to give you a switch lookup
    119     // value, and this method will assert, or do bad things, if you use it
    120     // for a kind of value that can't.
    121     switch (m_kind) {
    122     case KnownValue:
    123         switch (kind) {
    124         case SwitchImm:
    125             return value()->value().asInt32();
    126         case SwitchCell:
    127             return bitwise_cast<uintptr_t>(value()->value().asCell());
    128         default:
    129             RELEASE_ASSERT_NOT_REACHED();
    130             return 0;
    131         }
    132     case SingleCharacterString:
    133         switch (kind) {
    134         case SwitchChar:
    135             return character();
    136         default:
    137             RELEASE_ASSERT_NOT_REACHED();
    138             return 0;
    139         }
    140     default:
    141         RELEASE_ASSERT_NOT_REACHED();
    142         return 0;
    143     }
    144 }
    145 
    146116void LazyJSValue::dumpInContext(PrintStream& out, DumpContext* context) const
    147117{
Note: See TracChangeset for help on using the changeset viewer.