Ignore:
Timestamp:
Aug 17, 2008, 7:42:07 PM (17 years ago)
Author:
[email protected]
Message:

2008-08-17 Cameron Zwarich <[email protected]>

Reviewed by Maciej.

Change the counting of constants so that preincrement and predecrement of
const local variables are considered unexpected loads.

JavaScriptCore:

  • kjs/nodes.cpp: (KJS::PrefixResolveNode::emitCode):
  • kjs/nodes.h: (KJS::ScopeNode::neededConstants):

LayoutTests:

  • fast/js/deep-recursion-test.html:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeGenerator.cpp

    r35810 r35813  
    661661}
    662662
     663RegisterID* CodeGenerator::emitUnexpectedLoad(RegisterID* dst, double d)
     664{
     665    emitOpcode(op_unexpected_load);
     666    instructions().append(dst->index());
     667    instructions().append(addUnexpectedConstant(jsNumber(globalExec(), d)));
     668    return dst;
     669}
     670
    663671RegisterID* CodeGenerator::emitNullaryOp(OpcodeID opcode, RegisterID* dst)
    664672{
Note: See TracChangeset for help on using the changeset viewer.