Index: src/crankshaft/lithium-codegen.cc |
diff --git a/src/crankshaft/lithium-codegen.cc b/src/crankshaft/lithium-codegen.cc |
index 5bd1e6a9b872426627bc306eb5bbec9f95b64306..c5b7e9c470e805799faee77cd59534fa1dba4840 100644 |
--- a/src/crankshaft/lithium-codegen.cc |
+++ b/src/crankshaft/lithium-codegen.cc |
@@ -154,7 +154,9 @@ void LCodeGenBase::Comment(const char* format, ...) { |
void LCodeGenBase::DeoptComment(const Deoptimizer::DeoptInfo& deopt_info) { |
- masm()->RecordDeoptReason(deopt_info.deopt_reason, deopt_info.position); |
+ SourcePosition position = deopt_info.position; |
+ int raw_position = position.IsUnknown() ? 0 : position.raw(); |
+ masm()->RecordDeoptReason(deopt_info.deopt_reason, raw_position); |
} |