Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 1312cbea2e6d0748228fe5ca4d17293dc2695d23..30c43d6041cee2c72838afe35a93d9ebf12a1075 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -233,14 +233,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()); |
__ addq(rsp, Immediate(kPointerSize * words)); |
@@ -782,6 +774,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); |
+} |
+ |
+ |
void CodeGenerator::AssemblePrologue() { |
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
int stack_slots = frame()->GetSpillSlotCount(); |