| Index: src/x87/lithium-codegen-x87.cc
|
| diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc
|
| index 7697a1c7536d6a7d06c082c7624a8dbfb5bcd2d6..690ebcce477bfe54fe103dfd6c17239e1087c7d6 100644
|
| --- a/src/x87/lithium-codegen-x87.cc
|
| +++ b/src/x87/lithium-codegen-x87.cc
|
| @@ -386,8 +386,7 @@ bool LCodeGen::GenerateJumpTable() {
|
| Deoptimizer::BailoutType type = table_entry->bailout_type;
|
| int id = Deoptimizer::GetDeoptimizationId(isolate(), entry, type);
|
| DCHECK_NE(Deoptimizer::kNotDeoptimizationEntry, id);
|
| - Comment(";;; jump table entry %d: deoptimization bailout %d.", i, id);
|
| - DeoptComment(table_entry->mnemonic, table_entry->reason);
|
| + DeoptComment(table_entry->reason);
|
| if (table_entry->needs_frame) {
|
| DCHECK(!info()->saves_caller_doubles());
|
| __ push(Immediate(ExternalReference::ForDeoptEntry(entry)));
|
| @@ -1086,7 +1085,7 @@ void LCodeGen::RegisterEnvironmentForDeoptimization(
|
|
|
|
|
| void LCodeGen::DeoptimizeIf(Condition cc, LInstruction* instr,
|
| - const char* reason,
|
| + const char* detail,
|
| Deoptimizer::BailoutType bailout_type) {
|
| LEnvironment* environment = instr->environment();
|
| RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
|
| @@ -1149,9 +1148,10 @@ void LCodeGen::DeoptimizeIf(Condition cc, LInstruction* instr,
|
| __ bind(&done);
|
| }
|
|
|
| + Deoptimizer::Reason reason(instr->Mnemonic(), detail);
|
| DCHECK(info()->IsStub() || frame_is_built_);
|
| if (cc == no_condition && frame_is_built_) {
|
| - DeoptComment(instr->Mnemonic(), reason);
|
| + DeoptComment(reason);
|
| __ call(entry, RelocInfo::RUNTIME_ENTRY);
|
| } else {
|
| // We often have several deopts to the same entry, reuse the last
|
| @@ -1160,8 +1160,8 @@ void LCodeGen::DeoptimizeIf(Condition cc, LInstruction* instr,
|
| jump_table_.last().address != entry ||
|
| jump_table_.last().needs_frame != !frame_is_built_ ||
|
| jump_table_.last().bailout_type != bailout_type) {
|
| - Deoptimizer::JumpTableEntry table_entry(entry, instr->Mnemonic(), reason,
|
| - bailout_type, !frame_is_built_);
|
| + Deoptimizer::JumpTableEntry table_entry(entry, reason, bailout_type,
|
| + !frame_is_built_);
|
| jump_table_.Add(table_entry, zone());
|
| }
|
| if (cc == no_condition) {
|
| @@ -1174,11 +1174,11 @@ void LCodeGen::DeoptimizeIf(Condition cc, LInstruction* instr,
|
|
|
|
|
| void LCodeGen::DeoptimizeIf(Condition cc, LInstruction* instr,
|
| - const char* reason) {
|
| + const char* detail) {
|
| Deoptimizer::BailoutType bailout_type = info()->IsStub()
|
| ? Deoptimizer::LAZY
|
| : Deoptimizer::EAGER;
|
| - DeoptimizeIf(cc, instr, reason, bailout_type);
|
| + DeoptimizeIf(cc, instr, detail, bailout_type);
|
| }
|
|
|
|
|
|
|