Chromium Code Reviews| Index: runtime/vm/isolate.cc |
| diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
| index 061cf7cbc4a35844b1754e623a7709eb3e914dfc..c5c8a37efbc2def7a0e66e9a9deddae18a36fb6b 100644 |
| --- a/runtime/vm/isolate.cc |
| +++ b/runtime/vm/isolate.cc |
| @@ -7,11 +7,11 @@ |
| #include "include/dart_api.h" |
| #include "platform/assert.h" |
| #include "lib/mirrors.h" |
| +#include "vm/code_observers.h" |
| #include "vm/compiler_stats.h" |
| #include "vm/dart_api_state.h" |
| #include "vm/dart_entry.h" |
| #include "vm/debugger.h" |
| -#include "vm/debuginfo.h" |
| #include "vm/heap.h" |
| #include "vm/message_handler.h" |
| #include "vm/object_store.h" |
| @@ -30,7 +30,6 @@ DEFINE_FLAG(bool, report_usage_count, false, |
| "Track function usage and report."); |
| DEFINE_FLAG(bool, trace_isolates, false, |
| "Trace isolate creation and shut down."); |
| -DECLARE_FLAG(bool, generate_gdb_symbols); |
| class IsolateMessageHandler : public MessageHandler { |
| @@ -543,9 +542,9 @@ void Isolate::Shutdown() { |
| PrintInvokedFunctions(); |
| } |
| CompilerStats::Print(); |
| - if (FLAG_generate_gdb_symbols) { |
| - DebugInfo::UnregisterAllSections(); |
| - } |
| + // TODO(asiva): Move this code to Dart::Cleanup when we have that method |
| + // as the cleanup for Dart::InitOnce |
|
Max Heinritz (Google)
2012/12/21 18:51:27
Added a TODO to move to Dart::Cleanup
|
| + CodeObservers::DeleteAll(); |
| if (FLAG_trace_isolates) { |
| StackZone zone(this); |
| HandleScope handle_scope(this); |