OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/code_observers.h" | 7 #include "vm/code_observers.h" |
8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
9 #include "vm/dart_api_state.h" | 9 #include "vm/dart_api_state.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
11 #include "vm/debugger.h" | 11 #include "vm/debugger.h" |
12 #include "vm/flags.h" | 12 #include "vm/flags.h" |
13 #include "vm/freelist.h" | 13 #include "vm/freelist.h" |
14 #include "vm/handles.h" | 14 #include "vm/handles.h" |
15 #include "vm/heap.h" | 15 #include "vm/heap.h" |
16 #include "vm/isolate.h" | 16 #include "vm/isolate.h" |
17 #include "vm/metrics.h" | 17 #include "vm/metrics.h" |
18 #include "vm/object.h" | 18 #include "vm/object.h" |
19 #include "vm/object_store.h" | 19 #include "vm/object_store.h" |
20 #include "vm/object_id_ring.h" | 20 #include "vm/object_id_ring.h" |
21 #include "vm/port.h" | 21 #include "vm/port.h" |
22 #include "vm/profiler.h" | 22 #include "vm/profiler.h" |
23 #include "vm/service_isolate.h" | 23 #include "vm/service_isolate.h" |
24 #include "vm/simulator.h" | 24 #include "vm/simulator.h" |
25 #include "vm/snapshot.h" | 25 #include "vm/snapshot.h" |
| 26 #include "vm/store_buffer.h" |
26 #include "vm/stub_code.h" | 27 #include "vm/stub_code.h" |
27 #include "vm/symbols.h" | 28 #include "vm/symbols.h" |
28 #include "vm/thread_interrupter.h" | 29 #include "vm/thread_interrupter.h" |
29 #include "vm/thread_pool.h" | 30 #include "vm/thread_pool.h" |
30 #include "vm/virtual_memory.h" | 31 #include "vm/virtual_memory.h" |
31 #include "vm/zone.h" | 32 #include "vm/zone.h" |
32 | 33 |
33 namespace dart { | 34 namespace dart { |
34 | 35 |
35 DECLARE_FLAG(bool, print_class_table); | 36 DECLARE_FLAG(bool, print_class_table); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 214 |
214 ShutdownIsolate(); | 215 ShutdownIsolate(); |
215 vm_isolate_ = NULL; | 216 vm_isolate_ = NULL; |
216 | 217 |
217 TargetCPUFeatures::Cleanup(); | 218 TargetCPUFeatures::Cleanup(); |
218 #endif | 219 #endif |
219 | 220 |
220 Profiler::Shutdown(); | 221 Profiler::Shutdown(); |
221 CodeObservers::DeleteAll(); | 222 CodeObservers::DeleteAll(); |
222 Timeline::Shutdown(); | 223 Timeline::Shutdown(); |
| 224 StoreBuffer::ShutDown(); |
223 | 225 |
224 return NULL; | 226 return NULL; |
225 } | 227 } |
226 | 228 |
227 | 229 |
228 Isolate* Dart::CreateIsolate(const char* name_prefix, | 230 Isolate* Dart::CreateIsolate(const char* name_prefix, |
229 const Dart_IsolateFlags& api_flags) { | 231 const Dart_IsolateFlags& api_flags) { |
230 // Create a new isolate. | 232 // Create a new isolate. |
231 Isolate* isolate = Isolate::Init(name_prefix, api_flags); | 233 Isolate* isolate = Isolate::Init(name_prefix, api_flags); |
232 ASSERT(isolate != NULL); | 234 ASSERT(isolate != NULL); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 return predefined_handles_->handles_.IsValidScopedHandle(address); | 380 return predefined_handles_->handles_.IsValidScopedHandle(address); |
379 } | 381 } |
380 | 382 |
381 | 383 |
382 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 384 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
383 ASSERT(predefined_handles_ != NULL); | 385 ASSERT(predefined_handles_ != NULL); |
384 return predefined_handles_->api_handles_.IsValidHandle(handle); | 386 return predefined_handles_->api_handles_.IsValidHandle(handle); |
385 } | 387 } |
386 | 388 |
387 } // namespace dart | 389 } // namespace dart |
OLD | NEW |