Changeset 440 for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- 08/18/08 11:14:49 (5 months ago)
- Files:
-
- trunk/JavaScriptCore/VM/CodeGenerator.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r436 r440 463 463 PassRefPtr<LabelID> CodeGenerator::emitJumpIfTrue(RegisterID* cond, LabelID* target) 464 464 { 465 if (m_lastOpcodeID == op_less ) {465 if (m_lastOpcodeID == op_less && !target->isForwardLabel()) { 466 466 int dstIndex; 467 467 int src1Index; … … 472 472 if (cond->index() == dstIndex && cond->isTemporary() && !cond->refCount()) { 473 473 rewindBinaryOp(); 474 emitOpcode( target->isForwardLabel() ? op_jless :op_loop_if_less);474 emitOpcode(op_loop_if_less); 475 475 instructions().append(src1Index); 476 476 instructions().append(src2Index); … … 658 658 instructions().append(dst->index()); 659 659 instructions().append(addUnexpectedConstant(jsBoolean(b))); 660 return dst; 661 } 662 663 RegisterID* CodeGenerator::emitUnexpectedLoad(RegisterID* dst, double d) 664 { 665 emitOpcode(op_unexpected_load); 666 instructions().append(dst->index()); 667 instructions().append(addUnexpectedConstant(jsNumber(globalExec(), d))); 660 668 return dst; 661 669 }
