| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index a096709cb818b43448b6e621f57108b2c5e492f4..27471b6eec775b93316183baece1edd1d2d12986 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -332,7 +332,6 @@ bool LCodeGen::GenerateDeoptJumpTable() {
|
| Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_);
|
| Label table_start;
|
| __ bind(&table_start);
|
| - Label needs_frame_not_call;
|
| Label needs_frame_is_call;
|
| for (int i = 0; i < deopt_jump_table_.length(); i++) {
|
| __ bind(&deopt_jump_table_[i].label);
|
| @@ -346,43 +345,22 @@ bool LCodeGen::GenerateDeoptJumpTable() {
|
| }
|
| __ li(t9, Operand(ExternalReference::ForDeoptEntry(entry)));
|
| if (deopt_jump_table_[i].needs_frame) {
|
| - if (type == Deoptimizer::LAZY) {
|
| - if (needs_frame_is_call.is_bound()) {
|
| - __ Branch(&needs_frame_is_call);
|
| - } else {
|
| - __ bind(&needs_frame_is_call);
|
| - __ MultiPush(cp.bit() | fp.bit() | ra.bit());
|
| - // This variant of deopt can only be used with stubs. Since we don't
|
| - // have a function pointer to install in the stack frame that we're
|
| - // building, install a special marker there instead.
|
| - ASSERT(info()->IsStub());
|
| - __ li(scratch0(), Operand(Smi::FromInt(StackFrame::STUB)));
|
| - __ push(scratch0());
|
| - __ Addu(fp, sp, Operand(2 * kPointerSize));
|
| - __ Call(t9);
|
| - }
|
| + if (needs_frame_is_call.is_bound()) {
|
| + __ Branch(&needs_frame_is_call);
|
| } else {
|
| - if (needs_frame_not_call.is_bound()) {
|
| - __ Branch(&needs_frame_not_call);
|
| - } else {
|
| - __ bind(&needs_frame_not_call);
|
| - __ MultiPush(cp.bit() | fp.bit() | ra.bit());
|
| - // This variant of deopt can only be used with stubs. Since we don't
|
| - // have a function pointer to install in the stack frame that we're
|
| - // building, install a special marker there instead.
|
| - ASSERT(info()->IsStub());
|
| - __ li(scratch0(), Operand(Smi::FromInt(StackFrame::STUB)));
|
| - __ push(scratch0());
|
| - __ Addu(fp, sp, Operand(2 * kPointerSize));
|
| - __ Jump(t9);
|
| - }
|
| - }
|
| - } else {
|
| - if (type == Deoptimizer::LAZY) {
|
| + __ bind(&needs_frame_is_call);
|
| + __ MultiPush(cp.bit() | fp.bit() | ra.bit());
|
| + // This variant of deopt can only be used with stubs. Since we don't
|
| + // have a function pointer to install in the stack frame that we're
|
| + // building, install a special marker there instead.
|
| + ASSERT(info()->IsStub());
|
| + __ li(scratch0(), Operand(Smi::FromInt(StackFrame::STUB)));
|
| + __ push(scratch0());
|
| + __ Addu(fp, sp, Operand(2 * kPointerSize));
|
| __ Call(t9);
|
| - } else {
|
| - __ Jump(t9);
|
| }
|
| + } else {
|
| + __ Call(t9);
|
| }
|
| }
|
| __ RecordComment("]");
|
| @@ -780,13 +758,8 @@ void LCodeGen::DeoptimizeIf(Condition cc,
|
| }
|
|
|
| ASSERT(info()->IsStub() || frame_is_built_);
|
| - bool needs_lazy_deopt = info()->IsStub();
|
| if (cc == al && frame_is_built_) {
|
| - if (needs_lazy_deopt) {
|
| - __ Call(entry, RelocInfo::RUNTIME_ENTRY, cc, src1, src2);
|
| - } else {
|
| - __ Jump(entry, RelocInfo::RUNTIME_ENTRY, cc, src1, src2);
|
| - }
|
| + __ Call(entry, RelocInfo::RUNTIME_ENTRY, cc, src1, src2);
|
| } else {
|
| // We often have several deopts to the same entry, reuse the last
|
| // jump entry if this is the case.
|
|
|