| Index: src/lithium-codegen.cc
|
| diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc
|
| index 2d71d13c69fd9536203e99f40b88dee006b85bc0..a057c2fd88829a545363d5256972d564df6b3de3 100644
|
| --- a/src/lithium-codegen.cc
|
| +++ b/src/lithium-codegen.cc
|
| @@ -104,11 +104,9 @@ bool LCodeGenBase::GenerateBody() {
|
| GenerateBodyInstructionPre(instr);
|
|
|
| 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());
|
| + if (!value->position().IsUnknown()) {
|
| + RecordAndWritePosition(
|
| + chunk()->graph()->SourcePositionToScriptPosition(value->position()));
|
| }
|
|
|
| instr->CompileToNative(codegen);
|
|
|