Changeset 34777 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Jun 24, 2008, 2:19:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r34758 r34777 421 421 PassRefPtr<LabelID> CodeGenerator::emitJump(LabelID* target) 422 422 { 423 ASSERT(target->isForwardLabel()); 423 424 emitOpcode(op_jmp); 424 425 instructions().append(target->offsetFrom(instructions().size())); … … 437 438 if (cond->index() == dstIndex) { 438 439 rewindBinaryOp(); 439 emitOpcode( op_jless);440 emitOpcode(target->isForwardLabel() ? op_jless : op_loop_if_less); 440 441 instructions().append(src1Index); 441 442 instructions().append(src2Index); … … 450 451 PassRefPtr<LabelID> CodeGenerator::emitJumpIfTrue(RegisterID* cond, LabelID* target) 451 452 { 452 emitOpcode( op_jtrue);453 emitOpcode(target->isForwardLabel() ? op_jtrue : op_loop_if_true); 453 454 instructions().append(cond->index()); 454 455 instructions().append(target->offsetFrom(instructions().size())); … … 458 459 PassRefPtr<LabelID> CodeGenerator::emitJumpIfFalse(RegisterID* cond, LabelID* target) 459 460 { 461 ASSERT(target->isForwardLabel()); 460 462 emitOpcode(op_jfalse); 461 463 instructions().append(cond->index()); … … 1032 1034 { 1033 1035 ASSERT(scopeDepth() - targetScopeDepth >= 0); 1036 ASSERT(target->isForwardLabel()); 1034 1037 1035 1038 size_t scopeDelta = scopeDepth() - targetScopeDepth;
Note:
See TracChangeset
for help on using the changeset viewer.