| 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" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 Isolate::InitOnce(); | 97 Isolate::InitOnce(); |
| 98 PortMap::InitOnce(); | 98 PortMap::InitOnce(); |
| 99 FreeListElement::InitOnce(); | 99 FreeListElement::InitOnce(); |
| 100 Api::InitOnce(); | 100 Api::InitOnce(); |
| 101 CodeObservers::InitOnce(); | 101 CodeObservers::InitOnce(); |
| 102 ThreadInterrupter::InitOnce(); | 102 ThreadInterrupter::InitOnce(); |
| 103 Profiler::InitOnce(); | 103 Profiler::InitOnce(); |
| 104 SemiSpace::InitOnce(); | 104 SemiSpace::InitOnce(); |
| 105 Metric::InitOnce(); | 105 Metric::InitOnce(); |
| 106 StoreBuffer::InitOnce(); | 106 StoreBuffer::InitOnce(); |
| 107 MarkingStack::InitOnce(); |
| 107 Thread::EnsureInit(); | 108 Thread::EnsureInit(); |
| 108 | 109 |
| 109 #if defined(USING_SIMULATOR) | 110 #if defined(USING_SIMULATOR) |
| 110 Simulator::InitOnce(); | 111 Simulator::InitOnce(); |
| 111 #endif | 112 #endif |
| 112 // Create the read-only handles area. | 113 // Create the read-only handles area. |
| 113 ASSERT(predefined_handles_ == NULL); | 114 ASSERT(predefined_handles_ == NULL); |
| 114 predefined_handles_ = new ReadOnlyHandles(); | 115 predefined_handles_ = new ReadOnlyHandles(); |
| 115 // Create the VM isolate and finish the VM initialization. | 116 // Create the VM isolate and finish the VM initialization. |
| 116 ASSERT(thread_pool_ == NULL); | 117 ASSERT(thread_pool_ == NULL); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 return predefined_handles_->handles_.IsValidScopedHandle(address); | 420 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 420 } | 421 } |
| 421 | 422 |
| 422 | 423 |
| 423 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 424 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
| 424 ASSERT(predefined_handles_ != NULL); | 425 ASSERT(predefined_handles_ != NULL); |
| 425 return predefined_handles_->api_handles_.IsValidHandle(handle); | 426 return predefined_handles_->api_handles_.IsValidHandle(handle); |
| 426 } | 427 } |
| 427 | 428 |
| 428 } // namespace dart | 429 } // namespace dart |
| OLD | NEW |