Index: src/compilation-info.cc |
diff --git a/src/compilation-info.cc b/src/compilation-info.cc |
index a8bf0eeb402a9f9de60e5576a808ff1c24d56912..ff0f17d01f06d9ce3a779ba53eb097f77d579531 100644 |
--- a/src/compilation-info.cc |
+++ b/src/compilation-info.cc |
@@ -65,8 +65,12 @@ CompilationInfo::CompilationInfo(ParseInfo* parse_info, |
if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); |
if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing(); |
- if (FLAG_turbo_source_positions) MarkAsSourcePositionsEnabled(); |
if (FLAG_turbo_splitting) MarkAsSplittingEnabled(); |
+ |
+ if (FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || |
+ FLAG_turbo_profiling || isolate_->is_profiling()) { |
+ MarkAsSourcePositionsEnabled(); |
+ } |
} |
CompilationInfo::CompilationInfo(Vector<const char> debug_name, |