Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index 36308102b4a90a9535fe2d5682e30aae4c22b504..190001228c091c620fd501dc63800ff9745efeb3 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.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; |
@@ -1077,9 +1083,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); |
} |