Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 32d9920a2a327efba88f336992da1876c1fafe6a..997f3fe591708c29e7f9a5d342e8ff9a2b65d019 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -437,6 +437,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kArchNop: |
// don't emit code for nops. |
break; |
+ case kArchDeoptimize: { |
+ int deopt_state_id = |
+ BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
+ AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
+ break; |
+ } |
case kArchRet: |
AssembleReturn(); |
break; |
@@ -917,9 +923,10 @@ void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) { |
} |
-void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { |
+void CodeGenerator::AssembleDeoptimizerCall( |
+ int deoptimization_id, Deoptimizer::BailoutType bailout_type) { |
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
- isolate(), deoptimization_id, Deoptimizer::LAZY); |
+ isolate(), deoptimization_id, bailout_type); |
__ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
} |