Ignore:
Timestamp:
Apr 15, 2014, 10:46:42 AM (11 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r167199 and r167251.
https://bugs.webkit.org/show_bug.cgi?id=131678

Caused a DYEBench regression and does not seem to improve perf
on relevant websites (Requested by rniwa on #webkit).

Reverted changesets:

"Rewrite Function.bind as a builtin"
https://bugs.webkit.org/show_bug.cgi?id=131083
http://trac.webkit.org/changeset/167199

"Update test result"
http://trac.webkit.org/changeset/167251

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Nodes.h

    r167199 r167313  
    165165        virtual bool isBoolean() const { return false; }
    166166        virtual bool isSpreadExpression() const { return false; }
    167         virtual bool getBooleanConstant(bool&) const { return false; }
    168167
    169168        virtual void emitBytecodeInConditionContext(BytecodeGenerator&, Label*, Label*, FallThroughMode);
     
    215214
    216215    private:
    217        
    218         bool getBooleanConstant(bool& value) const override
    219         {
    220             value = false;
    221             return true;
    222         }
    223        
    224216        virtual bool isNull() const override { return true; }
    225217        virtual JSValue jsValue(BytecodeGenerator&) const override { return jsNull(); }
     
    230222        BooleanNode(const JSTokenLocation&, bool value);
    231223        bool value() { return m_value; }
    232        
    233     private:
    234         bool getBooleanConstant(bool& value) const override
    235         {
    236             value = m_value;
    237             return true;
    238         }
    239 
     224
     225    private:
    240226        virtual bool isBoolean() const override { return true; }
    241227        virtual JSValue jsValue(BytecodeGenerator&) const override { return jsBoolean(m_value); }
     
    251237
    252238    private:
    253         bool getBooleanConstant(bool& value) const override
    254         {
    255             value = (bool)m_value;
    256             return true;
    257         }
    258239        virtual bool isNumber() const override { return true; }
    259240        virtual JSValue jsValue(BytecodeGenerator&) const override { return jsNumber(m_value); }
Note: See TracChangeset for help on using the changeset viewer.