Changeset 36408 in webkit for trunk/JavaScriptCore/VM/Opcode.h


Ignore:
Timestamp:
Sep 14, 2008, 4:01:03 PM (17 years ago)
Author:
[email protected]
Message:

2008-09-14 Cameron Zwarich <[email protected]>

Reviewed by Oliver Hunt.

Bug 20816: op_lesseq should be optimized
<https://bugs.webkit.org/show_bug.cgi?id=20816>

Add a loop_if_lesseq opcode that is similar to the loop_if_less opcode.

This is a 9.4% speedup on the V8 Crypto benchmark.

  • VM/CTI.cpp: (JSC::CTI::privateCompileMainPass): (JSC::CTI::privateCompileSlowCases):
  • VM/CodeBlock.cpp: (JSC::CodeBlock::dump):
  • VM/CodeGenerator.cpp: (JSC::CodeGenerator::emitJumpIfTrue):
  • VM/Machine.cpp: (JSC::Machine::privateExecute): (JSC::Machine::cti_op_loop_if_lesseq):
  • VM/Machine.h:
  • VM/Opcode.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Opcode.h

    r36401 r36408  
    117117        macro(op_loop_if_true) \
    118118        macro(op_loop_if_less) \
     119        macro(op_loop_if_lesseq) \
    119120        macro(op_switch_imm) \
    120121        macro(op_switch_char) \
Note: See TracChangeset for help on using the changeset viewer.