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 88c2b8d4d1d27cfcaa94c547ba71ac910defcf7f..1fb7c65686b638eea9174ffa1150e572ab7b957b 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -157,14 +157,6 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
AddSafepointAndDeopt(instr); |
break; |
} |
- case kArchDeoptimize: { |
- int deoptimization_id = BuildTranslation(instr, 0); |
- |
- Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
- isolate(), deoptimization_id, Deoptimizer::LAZY); |
- __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
- break; |
- } |
case kArchDrop: { |
int words = MiscField::decode(instr->opcode()); |
__ Drop(words); |
@@ -627,6 +619,13 @@ void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
} |
+void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { |
+ Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
+ isolate(), deoptimization_id, Deoptimizer::LAZY); |
+ __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
+} |
+ |
+ |
// TODO(dcarney): increase stack slots in frame once before first use. |
static int AlignedStackSlots(int stack_slots) { |
if (stack_slots & 1) stack_slots++; |