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/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 Isolate::SetFileCallbacks(file_open, file_read, file_write, file_close); | 92 Isolate::SetFileCallbacks(file_open, file_read, file_write, file_close); |
93 Isolate::SetEntropySourceCallback(entropy_source); | 93 Isolate::SetEntropySourceCallback(entropy_source); |
94 OS::InitOnce(); | 94 OS::InitOnce(); |
95 VirtualMemory::InitOnce(); | 95 VirtualMemory::InitOnce(); |
96 Isolate::InitOnce(); | 96 Isolate::InitOnce(); |
97 PortMap::InitOnce(); | 97 PortMap::InitOnce(); |
98 FreeListElement::InitOnce(); | 98 FreeListElement::InitOnce(); |
99 Api::InitOnce(); | 99 Api::InitOnce(); |
100 CodeObservers::InitOnce(); | 100 CodeObservers::InitOnce(); |
| 101 ThreadInterrupter::InitOnce(); |
101 Profiler::InitOnce(); | 102 Profiler::InitOnce(); |
102 #if defined(USING_SIMULATOR) | 103 #if defined(USING_SIMULATOR) |
103 Simulator::InitOnce(); | 104 Simulator::InitOnce(); |
104 #endif | 105 #endif |
105 // Create the read-only handles area. | 106 // Create the read-only handles area. |
106 ASSERT(predefined_handles_ == NULL); | 107 ASSERT(predefined_handles_ == NULL); |
107 predefined_handles_ = new ReadOnlyHandles(); | 108 predefined_handles_ = new ReadOnlyHandles(); |
108 // Create the VM isolate and finish the VM initialization. | 109 // Create the VM isolate and finish the VM initialization. |
109 ASSERT(thread_pool_ == NULL); | 110 ASSERT(thread_pool_ == NULL); |
110 thread_pool_ = new ThreadPool(); | 111 thread_pool_ = new ThreadPool(); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 return predefined_handles_->handles_.AllocateScopedHandle(); | 271 return predefined_handles_->handles_.AllocateScopedHandle(); |
271 } | 272 } |
272 | 273 |
273 | 274 |
274 bool Dart::IsReadOnlyHandle(uword address) { | 275 bool Dart::IsReadOnlyHandle(uword address) { |
275 ASSERT(predefined_handles_ != NULL); | 276 ASSERT(predefined_handles_ != NULL); |
276 return predefined_handles_->handles_.IsValidScopedHandle(address); | 277 return predefined_handles_->handles_.IsValidScopedHandle(address); |
277 } | 278 } |
278 | 279 |
279 } // namespace dart | 280 } // namespace dart |
OLD | NEW |