Index: runtime/vm/flow_graph_compiler.cc |
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
index 7ef76a662eb4d8ae57243cca85eb7b2a7cfd7724..6dadee8d3dba9245ef726b1499257b1f0eed07ca 100644 |
--- a/runtime/vm/flow_graph_compiler.cc |
+++ b/runtime/vm/flow_graph_compiler.cc |
@@ -202,11 +202,7 @@ FlowGraphCompiler::FlowGraphCompiler( |
ASSERT(assembler != NULL); |
ASSERT(!list_class_.IsNull()); |
-#if defined(PRODUCT) |
- const bool stack_traces_only = true; |
-#else |
- const bool stack_traces_only = false; |
-#endif |
+ bool stack_traces_only = !FLAG_profiler; |
code_source_map_builder_ = new (zone_) |
CodeSourceMapBuilder(stack_traces_only, caller_inline_id, |
inline_id_to_token_pos, inline_id_to_function); |