Index: runtime/vm/deopt_instructions.cc |
diff --git a/runtime/vm/deopt_instructions.cc b/runtime/vm/deopt_instructions.cc |
index bdb503509282b7a44cfbde7b4c52ebc59de736a0..a926fdf7458427dd7a7c0510c4b130a6d45c249b 100644 |
--- a/runtime/vm/deopt_instructions.cc |
+++ b/runtime/vm/deopt_instructions.cc |
@@ -138,7 +138,7 @@ DeoptContext::~DeoptContext() { |
delete[] deferred_objects_; |
deferred_objects_ = NULL; |
deferred_objects_count_ = 0; |
- if (deopt_start_micros_ != 0) { |
+ if (FLAG_support_timeline && (deopt_start_micros_ != 0)) { |
Isolate* isolate = Isolate::Current(); |
TimelineStream* compiler_stream = isolate->GetCompilerStream(); |
ASSERT(compiler_stream != NULL); |