| Index: src/compiler/arm/code-generator-arm.cc
|
| diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc
|
| index c2c9ea698e997ee251eca650bffcbb2b274b4266..f47eafebf51a1cc84ae9fa5cf29079330c99b3ac 100644
|
| --- a/src/compiler/arm/code-generator-arm.cc
|
| +++ b/src/compiler/arm/code-generator-arm.cc
|
| @@ -348,6 +348,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
|
| // don't emit code for nops.
|
| DCHECK_EQ(LeaveCC, i.OutputSBit());
|
| break;
|
| + case kArchDeoptimize: {
|
| + int deopt_state_id =
|
| + BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
|
| + AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER);
|
| + break;
|
| + }
|
| case kArchRet:
|
| AssembleReturn();
|
| DCHECK_EQ(LeaveCC, i.OutputSBit());
|
| @@ -785,9 +791,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);
|
| }
|
|
|
|
|