Index: src/mips64/full-codegen-mips64.cc |
diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc |
index 0ac6467a35be64dfa07bd95ae276a47e819094c0..a93667c5a943299fa45e20ce41bb14b9ff698ec2 100644 |
--- a/src/mips64/full-codegen-mips64.cc |
+++ b/src/mips64/full-codegen-mips64.cc |
@@ -407,14 +407,9 @@ void FullCodeGenerator::EmitReturnSequence() { |
__ CallRuntime(Runtime::kTraceExit, 1); |
} |
// Pretend that the exit is a backwards jump to the entry. |
- int weight = 1; |
- if (info_->ShouldSelfOptimize()) { |
- weight = FLAG_interrupt_budget / FLAG_self_opt_count; |
- } else { |
- int distance = masm_->pc_offset(); |
- weight = Min(kMaxBackEdgeWeight, |
- Max(1, distance / kCodeSizeMultiplier)); |
- } |
+ int distance = masm_->pc_offset(); |
+ int weight = |
+ Min(kMaxBackEdgeWeight, Max(1, distance / kCodeSizeMultiplier)); |
EmitProfilingCounterDecrement(weight); |
Label ok; |
__ Branch(&ok, ge, a3, Operand(zero_reg)); |