Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 53f76f18f7d8f6f278deecb9b927f4d9e2026b6c..2a9ca324fc69561d7f4dafa2d76d7eb82fa93163 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -271,6 +271,7 @@ bool LCodeGen::GenerateBody() { |
instr->CompileToNative(this); |
} |
EnsureSpaceForLazyDeopt(); |
+ last_lazy_deopt_pc_ = masm()->pc_offset(); |
return !is_aborted(); |
} |
@@ -5634,12 +5635,12 @@ void LCodeGen::EnsureSpaceForLazyDeopt() { |
padding_size -= Assembler::kInstrSize; |
} |
} |
- last_lazy_deopt_pc_ = masm()->pc_offset(); |
} |
void LCodeGen::DoLazyBailout(LLazyBailout* instr) { |
EnsureSpaceForLazyDeopt(); |
+ last_lazy_deopt_pc_ = masm()->pc_offset(); |
ASSERT(instr->HasEnvironment()); |
LEnvironment* env = instr->environment(); |
RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); |
@@ -5695,6 +5696,7 @@ void LCodeGen::DoStackCheck(LStackCheck* instr) { |
StackCheckStub stub; |
CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
EnsureSpaceForLazyDeopt(); |
+ last_lazy_deopt_pc_ = masm()->pc_offset(); |
__ bind(&done); |
RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); |
safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); |
@@ -5706,6 +5708,7 @@ void LCodeGen::DoStackCheck(LStackCheck* instr) { |
__ LoadRoot(at, Heap::kStackLimitRootIndex); |
__ Branch(deferred_stack_check->entry(), lo, sp, Operand(at)); |
EnsureSpaceForLazyDeopt(); |
+ last_lazy_deopt_pc_ = masm()->pc_offset(); |
__ bind(instr->done_label()); |
deferred_stack_check->SetExit(instr->done_label()); |
RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); |