Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 701c8db44e1e24f8e1dc29776c011500aacd8d9d..d9f82cea8edb1cea24d6f0532e12f538069ffcbc 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -330,9 +330,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); |
+ } |
if (deopt_jump_table_[i].needs_frame) { |
__ mov(ip, Operand(ExternalReference::ForDeoptEntry(entry))); |
- if (deopt_jump_table_[i].is_lazy_deopt) { |
+ if (is_lazy_deopt) { |
if (needs_frame_is_call.is_bound()) { |
__ b(&needs_frame_is_call); |
} else { |
@@ -365,7 +374,7 @@ bool LCodeGen::GenerateDeoptJumpTable() { |
} |
} |
} else { |
- if (deopt_jump_table_[i].is_lazy_deopt) { |
+ if (is_lazy_deopt) { |
__ mov(lr, Operand(pc), LeaveCC, al); |
__ mov(pc, Operand(ExternalReference::ForDeoptEntry(entry))); |
} else { |