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 e004896ea2b627c9b8841a9feacf4b1b3c76afbf..9f9da620820c1b1c30833ca226de276da99d30a4 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -1697,10 +1697,6 @@ void CodeGenerator::AssembleArchTrap(Instruction* instr, |
} |
GenerateCallToTrap(trap_id); |
if (frame_elided_) { |
- ReferenceMap* reference_map = |
- new (gen_->zone()) ReferenceMap(gen_->zone()); |
- gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, |
- Safepoint::kNoLazyDeopt); |
__ set_has_frame(old_has_frame); |
} |
if (FLAG_debug_code) { |
@@ -1722,6 +1718,10 @@ void CodeGenerator::AssembleArchTrap(Instruction* instr, |
gen_->AssembleSourcePosition(instr_); |
__ CallRuntime(trap_id); |
} |
+ ReferenceMap* reference_map = |
+ new (gen_->zone()) ReferenceMap(gen_->zone()); |
+ gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, |
+ Safepoint::kNoLazyDeopt); |
} |
bool frame_elided_; |