Changeset 43661 in webkit for trunk/JavaScriptCore/bytecompiler


Ignore:
Timestamp:
May 13, 2009, 2:53:59 PM (16 years ago)
Author:
Darin Adler
Message:

JavaScriptCore:

2009-05-13 Darin Adler <Darin Adler>

Revert the parser arena change. It was a slowdown, not a speedup.
Better luck next time (I'll break it up into pieces).

WebCore:

2009-05-13 Darin Adler <Darin Adler>

Revert the parser arena change. It was a slowdown, not a speedup.
Better luck next time (I'll break it up into pieces).

WebKit/mac:

2009-05-13 Darin Adler <Darin Adler>

Revert the parser arena change. It was a slowdown, not a speedup.
Better luck next time (I'll break it up into pieces).

Location:
trunk/JavaScriptCore/bytecompiler
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r43642 r43661  
    270270        Vector<RegisterID*, 32> newVars;
    271271        for (size_t i = 0; i < varStack.size(); ++i)
    272             if (!globalObject->hasProperty(exec, *varStack[i].first))
    273                 newVars.append(addGlobalVar(*varStack[i].first, varStack[i].second & DeclarationStacks::IsConstant));
     272            if (!globalObject->hasProperty(exec, varStack[i].first))
     273                newVars.append(addGlobalVar(varStack[i].first, varStack[i].second & DeclarationStacks::IsConstant));
    274274
    275275        allocateConstants(programNode->neededConstants());
     
    283283        }
    284284        for (size_t i = 0; i < varStack.size(); ++i) {
    285             if (globalObject->hasProperty(exec, *varStack[i].first))
     285            if (globalObject->hasProperty(exec, varStack[i].first))
    286286                continue;
    287287            int attributes = DontDelete;
    288288            if (varStack[i].second & DeclarationStacks::IsConstant)
    289289                attributes |= ReadOnly;
    290             globalObject->putWithAttributes(exec, *varStack[i].first, jsUndefined(), attributes);
     290            globalObject->putWithAttributes(exec, varStack[i].first, jsUndefined(), attributes);
    291291        }
    292292
     
    346346    const DeclarationStacks::VarStack& varStack = functionBody->varStack();
    347347    for (size_t i = 0; i < varStack.size(); ++i)
    348         addVar(*varStack[i].first, varStack[i].second & DeclarationStacks::IsConstant);
     348        addVar(varStack[i].first, varStack[i].second & DeclarationStacks::IsConstant);
    349349
    350350    const Identifier* parameters = functionBody->parameters();
     
    18381838}
    18391839
    1840 void BytecodeGenerator::emitPushNewScope(RegisterID* dst, const Identifier& property, RegisterID* value)
     1840void BytecodeGenerator::emitPushNewScope(RegisterID* dst, Identifier& property, RegisterID* value)
    18411841{
    18421842    ControlFlowContext context;
  • trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h

    r43642 r43661  
    320320        void emitThrow(RegisterID* exc) { emitUnaryNoDstOp(op_throw, exc); }
    321321        RegisterID* emitNewError(RegisterID* dst, ErrorType type, JSValue message);
    322         void emitPushNewScope(RegisterID* dst, const Identifier& property, RegisterID* value);
     322        void emitPushNewScope(RegisterID* dst, Identifier& property, RegisterID* value);
    323323
    324324        RegisterID* emitPushScope(RegisterID* scope);
  • trunk/JavaScriptCore/bytecompiler/SegmentedVector.h

    r43642 r43661  
    5151
    5252        size_t size() const { return m_size; }
    53         bool isEmpty() const { return !size(); }
    5453
    5554        T& at(size_t index)
Note: See TracChangeset for help on using the changeset viewer.