Chromium Code Reviews

Unified Diff: src/crankshaft/lithium-codegen.cc

Issue 1581083009: Move SourcePosition into separate header file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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);
}
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/assembler-ia32.h » ('j') | src/source-position.h » ('J')

Powered by Google App Engine