Chromium Code Reviews| Index: runtime/vm/dart.cc |
| diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
| index 5e563ebf3424c0ccfe39f4a1ec2cc969f0fe6c51..e382fbf5d9e7ec3578863979edc80876e79f2318 100644 |
| --- a/runtime/vm/dart.cc |
| +++ b/runtime/vm/dart.cc |
| @@ -107,7 +107,9 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot, |
| PortMap::InitOnce(); |
| FreeListElement::InitOnce(); |
| Api::InitOnce(); |
| +#ifndef PRODUCT |
| CodeObservers::InitOnce(); |
| +#endif |
|
siva
2016/02/18 23:34:03
Can we move this up so that it is in the same bloc
Cutch
2016/02/22 16:05:44
I've used the new NOT_IN_PRODUCT macro.
|
| if (FLAG_profiler) { |
| ThreadInterrupter::InitOnce(); |
| Profiler::InitOnce(); |
| @@ -365,7 +367,9 @@ const char* Dart::Cleanup() { |
| OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Deleting code observers\n", |
| timestamp()); |
| } |
| +#ifndef PRODUCT |
| CodeObservers::DeleteAll(); |
| +#endif // !PRODUCT |
| if (FLAG_support_timeline) { |
| if (FLAG_trace_shutdown) { |
| OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Shutting down timeline\n", |