| Index: src/lithium-codegen.cc
|
| diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc
|
| index ce651d395397fedc5f0e95a2f9b0fdd10afb8d97..ad566168e7280f7e2dae82f68c80ebe66be7b49c 100644
|
| --- a/src/lithium-codegen.cc
|
| +++ b/src/lithium-codegen.cc
|
| @@ -106,7 +106,13 @@ bool LCodeGenBase::GenerateBody() {
|
|
|
| GenerateBodyInstructionPre(instr);
|
|
|
| - RecordAndUpdatePosition(instr->position());
|
| + HValue* value = instr->hydrogen_value();
|
| + if (value->position() != RelocInfo::kNoPosition) {
|
| + ASSERT(!graph()->info()->IsOptimizing() ||
|
| + !FLAG_emit_opt_code_positions ||
|
| + value->position() != RelocInfo::kNoPosition);
|
| + RecordAndWritePosition(value->position());
|
| + }
|
|
|
| instr->CompileToNative(codegen);
|
|
|
|
|