Index: src/arm/lithium-codegen-arm.cc |
=================================================================== |
--- src/arm/lithium-codegen-arm.cc (revision 16036) |
+++ src/arm/lithium-codegen-arm.cc (working copy) |
@@ -256,6 +256,7 @@ |
bool LCodeGen::GenerateBody() { |
ASSERT(is_generating()); |
bool emit_instructions = true; |
+ int old_position = RelocInfo::kNoPosition; |
danno
2013/08/05 16:59:17
old_position is now unused, correct? Please remove
|
for (current_instruction_ = 0; |
!is_aborted() && current_instruction_ < instructions_->length(); |
current_instruction_++) { |
@@ -274,6 +275,8 @@ |
instr->Mnemonic()); |
} |
+ RecordAndUpdatePosition(instr->position()); |
+ |
instr->CompileToNative(this); |
} |
EnsureSpaceForLazyDeopt(); |
@@ -287,6 +290,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(), |