Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: vm/dart.cc

Issue 10446116: Add flow graph printing into a .cfg file with flag --print-flow-graph-file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/dart_api_state.h" 7 #include "vm/dart_api_state.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/freelist.h" 9 #include "vm/freelist.h"
10 #include "vm/handles.h" 10 #include "vm/handles.h"
11 #include "vm/heap.h" 11 #include "vm/heap.h"
12 #include "vm/isolate.h" 12 #include "vm/isolate.h"
13 #include "vm/object.h" 13 #include "vm/object.h"
14 #include "vm/object_store.h" 14 #include "vm/object_store.h"
15 #include "vm/port.h" 15 #include "vm/port.h"
16 #include "vm/snapshot.h" 16 #include "vm/snapshot.h"
17 #include "vm/stub_code.h" 17 #include "vm/stub_code.h"
18 #include "vm/thread_pool.h" 18 #include "vm/thread_pool.h"
19 #include "vm/virtual_memory.h" 19 #include "vm/virtual_memory.h"
20 #include "vm/zone.h" 20 #include "vm/zone.h"
21 21
22 namespace dart { 22 namespace dart {
23 23
24 DECLARE_FLAG(bool, print_class_table); 24 DECLARE_FLAG(bool, print_class_table);
25 DECLARE_FLAG(bool, trace_isolates); 25 DECLARE_FLAG(bool, trace_isolates);
26 26
27 Isolate* Dart::vm_isolate_ = NULL; 27 Isolate* Dart::vm_isolate_ = NULL;
28 ThreadPool* Dart::thread_pool_ = NULL; 28 ThreadPool* Dart::thread_pool_ = NULL;
29 DebugInfo* Dart::pprof_symbol_generator_ = NULL; 29 DebugInfo* Dart::pprof_symbol_generator_ = NULL;
30 FileWriterFunction Dart::flow_graph_writer_ = NULL;
30 31
31 // TODO(turnidge): We should add a corresponding Dart::Cleanup. 32 // TODO(turnidge): We should add a corresponding Dart::Cleanup.
32 bool Dart::InitOnce(Dart_IsolateCreateCallback create, 33 bool Dart::InitOnce(Dart_IsolateCreateCallback create,
33 Dart_IsolateInterruptCallback interrupt) { 34 Dart_IsolateInterruptCallback interrupt) {
34 // TODO(iposva): Fix race condition here. 35 // TODO(iposva): Fix race condition here.
35 if (vm_isolate_ != NULL || !Flags::Initialized()) { 36 if (vm_isolate_ != NULL || !Flags::Initialized()) {
36 return false; 37 return false;
37 } 38 }
38 OS::InitOnce(); 39 OS::InitOnce();
39 VirtualMemory::InitOnce(); 40 VirtualMemory::InitOnce();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 112 }
112 113
113 114
114 void Dart::ShutdownIsolate() { 115 void Dart::ShutdownIsolate() {
115 Isolate* isolate = Isolate::Current(); 116 Isolate* isolate = Isolate::Current();
116 isolate->Shutdown(); 117 isolate->Shutdown();
117 delete isolate; 118 delete isolate;
118 } 119 }
119 120
120 } // namespace dart 121 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698