Ignore:
Timestamp:
Aug 17, 2008, 2:27:56 PM (17 years ago)
Author:
[email protected]
Message:

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

Reviewed by Maciej.

Bug 20419: Remove op_jless
<https://bugs.webkit.org/show_bug.cgi?id=20419>

Remove op_jless, which is rarely used now that we have op_loop_if_less.

  • VM/CodeBlock.cpp: (KJS::CodeBlock::dump):
  • VM/CodeGenerator.cpp: (KJS::CodeGenerator::emitJumpIfTrue):
  • VM/Machine.cpp: (KJS::Machine::privateExecute):
  • VM/Opcode.h:
File:
1 edited

Legend:

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

    r35703 r35810  
    463463PassRefPtr<LabelID> CodeGenerator::emitJumpIfTrue(RegisterID* cond, LabelID* target)
    464464{
    465     if (m_lastOpcodeID == op_less) {
     465    if (m_lastOpcodeID == op_less && !target->isForwardLabel()) {
    466466        int dstIndex;
    467467        int src1Index;
     
    472472        if (cond->index() == dstIndex && cond->isTemporary() && !cond->refCount()) {
    473473            rewindBinaryOp();
    474             emitOpcode(target->isForwardLabel() ? op_jless : op_loop_if_less);
     474            emitOpcode(op_loop_if_less);
    475475            instructions().append(src1Index);
    476476            instructions().append(src2Index);
Note: See TracChangeset for help on using the changeset viewer.