Ignore:
Timestamp:
Mar 4, 2014, 1:30:59 PM (11 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r164812.
http://trac.webkit.org/changeset/164812
https://bugs.webkit.org/show_bug.cgi?id=129699

it made things run slower (Requested by pizlo on #webkit).

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::execute):

  • jsc.cpp:

(GlobalObject::finishCreation):

  • runtime/BatchedTransitionOptimizer.h:

(JSC::BatchedTransitionOptimizer::BatchedTransitionOptimizer):
(JSC::BatchedTransitionOptimizer::~BatchedTransitionOptimizer):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r164835 r165073  
    11801180            variableObject->globalObject()->varInjectionWatchpoint()->fireAll();
    11811181
    1182         {
    1183             SamplingRegion samplingRegion("variable puts");
    1184            
    1185             for (unsigned i = 0; i < numVariables; ++i) {
    1186                 const Identifier& ident = codeBlock->variable(i);
    1187                 if (!variableObject->hasProperty(callFrame, ident)) {
    1188                     PutPropertySlot slot(variableObject);
    1189                     variableObject->methodTable()->put(variableObject, callFrame, ident, jsUndefined(), slot);
    1190                 }
     1182        for (unsigned i = 0; i < numVariables; ++i) {
     1183            const Identifier& ident = codeBlock->variable(i);
     1184            if (!variableObject->hasProperty(callFrame, ident)) {
     1185                PutPropertySlot slot(variableObject);
     1186                variableObject->methodTable()->put(variableObject, callFrame, ident, jsUndefined(), slot);
    11911187            }
    11921188        }
    11931189
    1194         {
    1195             SamplingRegion samplingRegion("function puts");
    1196            
    1197             for (int i = 0; i < numFunctions; ++i) {
    1198                 FunctionExecutable* function = codeBlock->functionDecl(i);
    1199                 PutPropertySlot slot(variableObject);
    1200                 variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(vm, function, scope), slot);
    1201             }
     1190        for (int i = 0; i < numFunctions; ++i) {
     1191            FunctionExecutable* function = codeBlock->functionDecl(i);
     1192            PutPropertySlot slot(variableObject);
     1193            variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(vm, function, scope), slot);
    12021194        }
    12031195    }
Note: See TracChangeset for help on using the changeset viewer.