Index: src/arm/lithium-codegen-arm.cc |
=================================================================== |
--- src/arm/lithium-codegen-arm.cc (revision 16062) |
+++ src/arm/lithium-codegen-arm.cc (working copy) |
@@ -274,6 +274,8 @@ |
instr->Mnemonic()); |
} |
+ RecordAndUpdatePosition(instr->position()); |
+ |
instr->CompileToNative(this); |
} |
EnsureSpaceForLazyDeopt(); |
@@ -287,6 +289,10 @@ |
if (deferred_.length() > 0) { |
for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
LDeferredCode* code = deferred_[i]; |
+ |
+ int pos = instructions_->at(code->instruction_index())->position(); |
+ RecordAndUpdatePosition(pos); |
+ |
Comment(";;; <@%d,#%d> " |
"-------------------- Deferred %s --------------------", |
code->instruction_index(), |
@@ -977,6 +983,14 @@ |
} |
+void LCodeGen::RecordAndUpdatePosition(int position) { |
+ if (position >= 0 && position != old_position_) { |
+ masm()->positions_recorder()->RecordPosition(position); |
+ old_position_ = position; |
+ } |
+} |
+ |
+ |
static const char* LabelType(LLabel* label) { |
if (label->is_loop_header()) return " (loop header)"; |
if (label->is_osr_entry()) return " (OSR entry)"; |