| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index faf03424f6a98aca283e2e92aafbd2b49d59195b..6d73c831ebe09b9fcf7ff4e252f5bb850f5af85d 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -821,7 +821,8 @@ void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment,
|
|
|
| void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
|
| Deoptimizer::BailoutType bailout_type,
|
| - Register src1, const Operand& src2) {
|
| + Register src1, const Operand& src2,
|
| + const char* reason) {
|
| LEnvironment* environment = instr->environment();
|
| RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
|
| DCHECK(environment->HasBeenRegistered());
|
| @@ -867,6 +868,7 @@ void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
|
| // restore caller doubles.
|
| if (condition == al && frame_is_built_ &&
|
| !info()->saves_caller_doubles()) {
|
| + DeoptComment(instr->Mnemonic(), reason);
|
| __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2);
|
| } else {
|
| // We often have several deopts to the same entry, reuse the last
|
| @@ -875,9 +877,8 @@ void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
|
| (deopt_jump_table_.last().address != entry) ||
|
| (deopt_jump_table_.last().bailout_type != bailout_type) ||
|
| (deopt_jump_table_.last().needs_frame != !frame_is_built_)) {
|
| - Deoptimizer::JumpTableEntry table_entry(entry,
|
| - bailout_type,
|
| - !frame_is_built_);
|
| + Deoptimizer::JumpTableEntry table_entry(entry, instr->Mnemonic(), reason,
|
| + bailout_type, !frame_is_built_);
|
| deopt_jump_table_.Add(table_entry, zone());
|
| }
|
| __ Branch(&deopt_jump_table_.last().label, condition, src1, src2);
|
| @@ -886,11 +887,12 @@ void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
|
|
|
|
|
| void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
|
| - Register src1, const Operand& src2) {
|
| + Register src1, const Operand& src2,
|
| + const char* reason) {
|
| Deoptimizer::BailoutType bailout_type = info()->IsStub()
|
| ? Deoptimizer::LAZY
|
| : Deoptimizer::EAGER;
|
| - DeoptimizeIf(condition, instr, bailout_type, src1, src2);
|
| + DeoptimizeIf(condition, instr, bailout_type, src1, src2, reason);
|
| }
|
|
|
|
|
| @@ -5676,8 +5678,8 @@ void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
|
| type = Deoptimizer::LAZY;
|
| }
|
|
|
| - Comment(";;; deoptimize: %s", instr->hydrogen()->reason());
|
| - DeoptimizeIf(al, instr, type, zero_reg, Operand(zero_reg));
|
| + DeoptimizeIf(al, instr, type, zero_reg, Operand(zero_reg),
|
| + instr->hydrogen()->reason());
|
| }
|
|
|
|
|
|
|