Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 6d630481fb28cb2724044c92d1ee69ec2818144a..5153897fbf8148068e287d023eb7cb3ecd8c880e 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3482,12 +3482,9 @@ void HGraph::FinalizeUniqueness() { |
int HGraph::SourcePositionToScriptPosition(SourcePosition pos) { |
- if (!FLAG_hydrogen_track_positions || pos.IsUnknown()) { |
- return pos.raw(); |
- } |
- |
- return info()->inlined_function_infos()->at(pos.inlining_id()) |
- .start_position + pos.position(); |
+ return (info()->is_tracking_positions() && !pos.IsUnknown()) |
+ ? info()->start_position_for(pos.inlining_id()) + pos.position() |
+ : pos.raw(); |
} |