| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 86eca5769899ca91aa79c77f21484d854e637079..a6c88ad4e208afd1b1ed709de168c17abdb901ed 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();
|
| }
|
|
|
| @@ -5636,12 +5637,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);
|
| @@ -5724,6 +5725,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());
|
| @@ -5735,6 +5737,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);
|
|
|