| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index d59820f727bc084c5857460e52a0251356e1e7fe..1783334ec679f69be48ea197750629107bdbc923 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -138,7 +138,7 @@ void FullCodeGenerator::Generate() {
|
| CompilationInfo* info = info_;
|
| handler_table_ =
|
| isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED);
|
| - profiling_counter_ = isolate()->factory()->NewCell(
|
| + profiling_budget_ = isolate()->factory()->NewCell(
|
| Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate()));
|
| SetFunctionPosition(function());
|
| Comment cmnt(masm_, "[ function compiled by full code generator");
|
| @@ -326,7 +326,7 @@ void FullCodeGenerator::ClearAccumulator() {
|
|
|
|
|
| void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) {
|
| - __ li(a2, Operand(profiling_counter_));
|
| + __ li(a2, Operand(profiling_budget_));
|
| __ lw(a3, FieldMemOperand(a2, Cell::kValueOffset));
|
| __ Subu(a3, a3, Operand(Smi::FromInt(delta)));
|
| __ sw(a3, FieldMemOperand(a2, Cell::kValueOffset));
|
| @@ -343,7 +343,7 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
| // Detect debug break requests as soon as possible.
|
| reset_value = FLAG_interrupt_budget >> 4;
|
| }
|
| - __ li(a2, Operand(profiling_counter_));
|
| + __ li(a2, Operand(profiling_budget_));
|
| __ li(a3, Operand(Smi::FromInt(reset_value)));
|
| __ sw(a3, FieldMemOperand(a2, Cell::kValueOffset));
|
| }
|
|
|