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.h

    r172940 r172961  
    2929#if ENABLE(DFG_JIT)
    3030
    31 #include "DFGCommon.h"
    3231#include "DFGFrozenValue.h"
    3332#include <wtf/text/StringImpl.h>
     
    9796    TriState strictEqual(const LazyJSValue& other) const;
    9897   
    99     uintptr_t switchLookupValue(SwitchKind) const;
     98    unsigned switchLookupValue() const
     99    {
     100        // NB. Not every kind of JSValue will be able to give you a switch lookup
     101        // value, and this method will assert, or do bad things, if you use it
     102        // for a kind of value that can't.
     103        switch (m_kind) {
     104        case KnownValue:
     105            return value()->value().asInt32();
     106        case SingleCharacterString:
     107            return character();
     108        default:
     109            RELEASE_ASSERT_NOT_REACHED();
     110            return 0;
     111        }
     112    }
    100113   
    101114    void dump(PrintStream&) const;
Note: See TracChangeset for help on using the changeset viewer.