Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 9c4d71404f57a1e579a0ec08d7a62d2e28a2012b..62c195c43651e3d5b359d8a45d7965893bea72d8 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -35,6 +35,7 @@ |
#include "vm/stack_frame.h" |
#include "vm/symbols.h" |
#include "vm/tags.h" |
+#include "vm/timeline.h" |
#include "vm/timer.h" |
#include "vm/zone.h" |
@@ -498,7 +499,7 @@ void Parser::ParseCompilationUnit(const Library& library, |
VMTagScope tagScope(thread, VMTag::kCompileTopLevelTagId); |
#ifndef PRODUCT |
TimelineDurationScope tds(thread, |
- thread->isolate()->GetCompilerStream(), |
+ Timeline::GetCompilerStream(), |
"CompileTopLevel"); |
if (tds.enabled()) { |
tds.SetNumArguments(1); |
@@ -856,7 +857,7 @@ void Parser::ParseClass(const Class& cls) { |
const int64_t num_tokes_before = STAT_VALUE(thread, num_tokens_consumed); |
#ifndef PRODUCT |
TimelineDurationScope tds(thread, |
- thread->isolate()->GetCompilerStream(), |
+ Timeline::GetCompilerStream(), |
"ParseClass"); |
if (tds.enabled()) { |
tds.SetNumArguments(1); |
@@ -973,7 +974,7 @@ void Parser::ParseFunction(ParsedFunction* parsed_function) { |
FLAG_profile_vm); |
#ifndef PRODUCT |
TimelineDurationScope tds(thread, |
- thread->isolate()->GetCompilerStream(), |
+ Timeline::GetCompilerStream(), |
"ParseFunction"); |
#endif // !PRODUCT |
ASSERT(thread->long_jump_base()->IsSafeToJump()); |