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

    r167199 r167313  
    193193
    194194template <typename LexerType>
    195 Parser<LexerType>::Parser(VM* vm, const SourceCode& source, FunctionParameters* parameters, const Identifier& name, JSParserStrictness strictness, JSParserMode parserMode, JSFunctionKind functionKind)
     195Parser<LexerType>::Parser(VM* vm, const SourceCode& source, FunctionParameters* parameters, const Identifier& name, JSParserStrictness strictness, JSParserMode parserMode)
    196196    : m_vm(vm)
    197197    , m_source(&source)
     
    208208    , m_parsingBuiltin(strictness == JSParseBuiltin)
    209209{
    210     m_lexer = adoptPtr(new LexerType(vm, strictness, functionKind));
     210    m_lexer = adoptPtr(new LexerType(vm, strictness));
    211211    m_arena = m_vm->parserArena.get();
    212212    m_lexer->setCode(source, m_arena);
     
    284284    Vector<RefPtr<StringImpl>> closedVariables;
    285285    if (m_parsingBuiltin) {
     286        RELEASE_ASSERT(!capturedVariables.size());
    286287        IdentifierSet usedVariables;
    287288        scope->getUsedVariables(usedVariables);
     
    293294                continue;
    294295            closedVariables.append(variable);
    295         }
    296         if (!capturedVariables.isEmpty()) {
    297             for (const auto& capturedVariable : capturedVariables) {
    298                 if (scope->hasDeclaredVariable(Identifier(m_vm, capturedVariable.get())))
    299                     continue;
    300                
    301                 if (scope->hasDeclaredParameter(Identifier(m_vm, capturedVariable.get())))
    302                     continue;
    303                 RELEASE_ASSERT_NOT_REACHED();
    304             }
    305296        }
    306297    }
Note: See TracChangeset for help on using the changeset viewer.