Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index 378a421fa10593a94f7d44d3143814b1c04141ac..b3c7230807935956e4ad64ef3a763a9d94180d78 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -368,6 +368,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; |
@@ -892,9 +898,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); |
} |