| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 79f48d960b03ebb46abd71cf30bb2995b918b5f2..b8cb044d946848f28deaf02d7345f9affffc73a9 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -326,9 +326,18 @@ bool LCodeGen::GenerateDeoptJumpTable() {
|
| for (int i = 0; i < deopt_jump_table_.length(); i++) {
|
| __ bind(&deopt_jump_table_[i].label);
|
| Address entry = deopt_jump_table_[i].address;
|
| + bool is_lazy_deopt = deopt_jump_table_[i].is_lazy_deopt;
|
| + Deoptimizer::BailoutType type =
|
| + is_lazy_deopt ? Deoptimizer::LAZY : Deoptimizer::EAGER;
|
| + int id = Deoptimizer::GetDeoptimizationId(entry, type);
|
| + if (id == Deoptimizer::kNotDeoptimizationEntry) {
|
| + Comment(";;; jump table entry %d.", i);
|
| + } else {
|
| + Comment(";;; jump table entry %d: deoptimization bailout %d.", i, id);
|
| + }
|
| __ li(t9, Operand(ExternalReference::ForDeoptEntry(entry)));
|
| if (deopt_jump_table_[i].needs_frame) {
|
| - if (deopt_jump_table_[i].is_lazy_deopt) {
|
| + if (is_lazy_deopt) {
|
| if (needs_frame_is_call.is_bound()) {
|
| __ Branch(&needs_frame_is_call);
|
| } else {
|
| @@ -360,7 +369,7 @@ bool LCodeGen::GenerateDeoptJumpTable() {
|
| }
|
| }
|
| } else {
|
| - if (deopt_jump_table_[i].is_lazy_deopt) {
|
| + if (is_lazy_deopt) {
|
| __ Call(t9);
|
| } else {
|
| __ Jump(t9);
|
|
|