Ignore:
Timestamp:
Oct 10, 2014, 1:30:32 PM (11 years ago)
Author:
[email protected]
Message:

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

broke a JSC test (Requested by estes on #webkit).

Reverted changeset:

"Various arguments optimisations in codegen fail to account
for arguments being in lexical record"
https://bugs.webkit.org/show_bug.cgi?id=137617
http://trac.webkit.org/changeset/174606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r174606 r174610  
    272272    IdentifierSet capturedVariables;
    273273    bool modifiedParameter = false;
    274     bool modifiedArguments = false;
    275     scope->getCapturedVariables(capturedVariables, modifiedParameter, modifiedArguments);
     274    scope->getCapturedVariables(capturedVariables, modifiedParameter);
    276275   
    277276    CodeFeatures features = context.features();
     
    282281    if (modifiedParameter)
    283282        features |= ModifiedParameterFeature;
    284     if (modifiedArguments)
    285         features |= ModifiedArgumentsFeature;
     283   
    286284    Vector<RefPtr<StringImpl>> closedVariables;
    287285    if (m_parsingBuiltin) {
     
    295293            if (scope->hasDeclaredParameter(Identifier(m_vm, variable.get())))
    296294                continue;
    297 
    298             if (variable == m_vm->propertyNames->arguments.impl())
    299                 continue;
    300 
    301295            closedVariables.append(variable);
    302296        }
Note: See TracChangeset for help on using the changeset viewer.