| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 775a1688c764a4668d7f7c15b247e971041058ee..c1530c5c2f41f055779ef132fa98a9a86f108cf8 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -119,7 +119,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");
|
| @@ -315,7 +315,7 @@ void FullCodeGenerator::ClearAccumulator() {
|
|
|
|
|
| void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) {
|
| - __ mov(ebx, Immediate(profiling_counter_));
|
| + __ mov(ebx, Immediate(profiling_budget_));
|
| __ sub(FieldOperand(ebx, Cell::kValueOffset),
|
| Immediate(Smi::FromInt(delta)));
|
| }
|
| @@ -327,7 +327,7 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
| // Self-optimization is a one-off thing: if it fails, don't try again.
|
| reset_value = Smi::kMaxValue;
|
| }
|
| - __ mov(ebx, Immediate(profiling_counter_));
|
| + __ mov(ebx, Immediate(profiling_budget_));
|
| __ mov(FieldOperand(ebx, Cell::kValueOffset),
|
| Immediate(Smi::FromInt(reset_value)));
|
| }
|
|
|