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/Lexer.cpp

    r167199 r167313  
    490490
    491491template <typename T>
    492 Lexer<T>::Lexer(VM* vm, JSParserStrictness strictness, JSFunctionKind functionKind)
     492Lexer<T>::Lexer(VM* vm, JSParserStrictness strictness)
    493493    : m_isReparsing(false)
    494494    , m_vm(vm)
    495495    , m_parsingBuiltinFunction(strictness == JSParseBuiltin)
    496     , m_functionKind(functionKind)
    497496{
    498497}
     
    821820            else if (*ident == m_vm->propertyNames->undefinedKeyword)
    822821                tokenData->ident = &m_vm->propertyNames->undefinedPrivateName;
    823            
    824822            if (!ident)
    825823                return INVALID_PRIVATE_NAME_ERRORTOK;
    826            
    827             if (*ident == m_vm->propertyNames->IsConstructorPrivateName)
    828                 return m_functionKind == JSFunctionIsConstructorKind ? TRUETOKEN : FALSETOKEN;
    829            
    830824        }
    831825        tokenData->ident = ident;
     
    903897            else if (*ident == m_vm->propertyNames->undefinedKeyword)
    904898                tokenData->ident = &m_vm->propertyNames->undefinedPrivateName;
    905             if (m_functionKind == JSFunctionIsConstructorKind) {
    906                 if (*ident == m_vm->propertyNames->IsConstructorPrivateName)
    907                     return TRUETOKEN;
    908                 return FALSETOKEN;
    909             }
    910899            if (!ident)
    911900                return INVALID_PRIVATE_NAME_ERRORTOK;
Note: See TracChangeset for help on using the changeset viewer.