| 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 db5a448adc9a0ee689421edeedbd843c58ad2dba..5697b282d94a9f6749d325cc038e74bcad85618b 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -555,6 +555,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;
|
| @@ -1165,9 +1171,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);
|
| }
|
|
|
|
|