| Index: src/compilation-info.cc
|
| diff --git a/src/compilation-info.cc b/src/compilation-info.cc
|
| index 564ac31f750046cba3e8b5ed083f7e397941a11d..5758b41a6b7a7fd7803420f353543073322810b1 100644
|
| --- a/src/compilation-info.cc
|
| +++ b/src/compilation-info.cc
|
| @@ -72,9 +72,7 @@ CompilationInfo::CompilationInfo(ParseInfo* parse_info,
|
| // Collect source positions for optimized code when profiling or if debugger
|
| // is active, to be able to get more precise source positions at the price of
|
| // more memory consumption.
|
| - if (FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph ||
|
| - FLAG_turbo_profiling || isolate_->is_profiling() ||
|
| - isolate_->debug()->is_active()) {
|
| + if (isolate_->NeedsSourcePositionsForProfiling()) {
|
| MarkAsSourcePositionsEnabled();
|
| }
|
| }
|
|
|