Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 7864d90a82672afc5c866125db897eb6b0b3f12c..bfe560868314c0216f9d95e0eeacde007fb7e326 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -321,6 +321,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; |
@@ -870,9 +876,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); |
} |