| Index: runtime/vm/stub_code_ia32.cc
|
| ===================================================================
|
| --- runtime/vm/stub_code_ia32.cc (revision 9644)
|
| +++ runtime/vm/stub_code_ia32.cc (working copy)
|
| @@ -1562,8 +1562,9 @@
|
| if (FlowGraphCompiler::CanOptimize()) {
|
| __ cmpl(FieldAddress(EBX, Function::usage_counter_offset()),
|
| Immediate(FLAG_optimization_counter_threshold));
|
| - Label not_yet_hot;
|
| - __ j(LESS_EQUAL, ¬_yet_hot, Assembler::kNearJump);
|
| + Label not_yet_hot, already_optimized;
|
| + __ j(LESS, ¬_yet_hot, Assembler::kNearJump);
|
| + __ j(GREATER, &already_optimized, Assembler::kNearJump);
|
| // Create a stub frame as we are pushing some objects on the stack before
|
| // calling into the runtime.
|
| AssemblerMacros::EnterStubFrame(assembler);
|
| @@ -1576,6 +1577,7 @@
|
| __ popl(ECX); // Restore inline cache data object.
|
| __ LeaveFrame();
|
| __ Bind(¬_yet_hot);
|
| + __ Bind(&already_optimized);
|
| }
|
|
|
| ASSERT(num_args > 0);
|
|
|