Index: src/lithium-codegen.cc |
diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc |
index 5786a0527e9312e534a99c0b82895505e55dbbca..9eecedc2f0a9f41fa6c8e715e612f4cef182f2fa 100644 |
--- a/src/lithium-codegen.cc |
+++ b/src/lithium-codegen.cc |
@@ -107,11 +107,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); |