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 7149b5598e33ef018f8219d07018f29823c2e85b..6730469051adb881fa545dcf2f6978eca8787ef0 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -122,7 +122,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
break; |
case kArchDeoptimize: { |
int deoptimization_id = MiscField::decode(instr->opcode()); |
- BuildTranslation(instr, deoptimization_id); |
+ BuildTranslation(instr, 0, deoptimization_id); |
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
isolate(), deoptimization_id, Deoptimizer::LAZY); |
@@ -246,13 +246,9 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
int entry = Code::kHeaderSize - kHeapObjectTag; |
__ call(Operand(reg, entry)); |
} |
- RecordSafepoint(instr->pointer_map(), Safepoint::kSimple, 0, |
- Safepoint::kNoLazyDeopt); |
- bool lazy_deopt = (MiscField::decode(instr->opcode()) == 1); |
- if (lazy_deopt) { |
- RecordLazyDeoptimizationEntry(instr); |
- } |
+ AddSafepointAndDeopt(instr); |
+ |
AddNopForSmiCodeInlining(); |
break; |
} |
@@ -277,9 +273,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ mov(esi, FieldOperand(func, JSFunction::kContextOffset)); |
__ call(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
- RecordSafepoint(instr->pointer_map(), Safepoint::kSimple, 0, |
- Safepoint::kNoLazyDeopt); |
- RecordLazyDeoptimizationEntry(instr); |
+ AddSafepointAndDeopt(instr); |
break; |
} |
case kSSEFloat64Cmp: |