Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index cf192f4cf9c1b44d7401534c63de4bb23323c768..34248579982d328c48d72855512b85f5f214d601 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -281,9 +281,18 @@ bool LCodeGen::GenerateJumpTable() { |
for (int i = 0; i < jump_table_.length(); i++) { |
__ bind(&jump_table_[i].label); |
Address entry = jump_table_[i].address; |
+ bool is_lazy_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 (jump_table_[i].needs_frame) { |
__ movq(kScratchRegister, ExternalReference::ForDeoptEntry(entry)); |
- if (jump_table_[i].is_lazy_deopt) { |
+ if (is_lazy_deopt) { |
if (needs_frame_is_call.is_bound()) { |
__ jmp(&needs_frame_is_call); |
} else { |
@@ -319,7 +328,7 @@ bool LCodeGen::GenerateJumpTable() { |
} |
} |
} else { |
- if (jump_table_[i].is_lazy_deopt) { |
+ if (is_lazy_deopt) { |
__ Call(entry, RelocInfo::RUNTIME_ENTRY); |
} else { |
__ Jump(entry, RelocInfo::RUNTIME_ENTRY); |