| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 04005ac30af4103e3ba8808a390770bec44166b9..ff41fdabcf284a178ad7c51f7faafd9124bf2ffb 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -118,7 +118,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");
|
| @@ -307,7 +307,7 @@ void FullCodeGenerator::ClearAccumulator() {
|
|
|
|
|
| void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) {
|
| - __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT);
|
| + __ movq(rbx, profiling_budget_, RelocInfo::EMBEDDED_OBJECT);
|
| __ SmiAddConstant(FieldOperand(rbx, Cell::kValueOffset),
|
| Smi::FromInt(-delta));
|
| }
|
| @@ -319,7 +319,7 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
| // Self-optimization is a one-off thing; if it fails, don't try again.
|
| reset_value = Smi::kMaxValue;
|
| }
|
| - __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT);
|
| + __ movq(rbx, profiling_budget_, RelocInfo::EMBEDDED_OBJECT);
|
| __ movq(kScratchRegister,
|
| reinterpret_cast<uint64_t>(Smi::FromInt(reset_value)),
|
| RelocInfo::NONE64);
|
|
|