| 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/flags.h" | 11 #include "vm/flags.h" | 
| 12 #include "vm/freelist.h" | 12 #include "vm/freelist.h" | 
| 13 #include "vm/handles.h" | 13 #include "vm/handles.h" | 
| 14 #include "vm/heap.h" | 14 #include "vm/heap.h" | 
| 15 #include "vm/isolate.h" | 15 #include "vm/isolate.h" | 
|  | 16 #include "vm/metrics.h" | 
| 16 #include "vm/object.h" | 17 #include "vm/object.h" | 
| 17 #include "vm/object_store.h" | 18 #include "vm/object_store.h" | 
| 18 #include "vm/object_id_ring.h" | 19 #include "vm/object_id_ring.h" | 
| 19 #include "vm/port.h" | 20 #include "vm/port.h" | 
| 20 #include "vm/profiler.h" | 21 #include "vm/profiler.h" | 
| 21 #include "vm/service.h" | 22 #include "vm/service.h" | 
| 22 #include "vm/simulator.h" | 23 #include "vm/simulator.h" | 
| 23 #include "vm/snapshot.h" | 24 #include "vm/snapshot.h" | 
| 24 #include "vm/stub_code.h" | 25 #include "vm/stub_code.h" | 
| 25 #include "vm/symbols.h" | 26 #include "vm/symbols.h" | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 101   OS::InitOnce(); | 102   OS::InitOnce(); | 
| 102   VirtualMemory::InitOnce(); | 103   VirtualMemory::InitOnce(); | 
| 103   Isolate::InitOnce(); | 104   Isolate::InitOnce(); | 
| 104   PortMap::InitOnce(); | 105   PortMap::InitOnce(); | 
| 105   FreeListElement::InitOnce(); | 106   FreeListElement::InitOnce(); | 
| 106   Api::InitOnce(); | 107   Api::InitOnce(); | 
| 107   CodeObservers::InitOnce(); | 108   CodeObservers::InitOnce(); | 
| 108   ThreadInterrupter::InitOnce(); | 109   ThreadInterrupter::InitOnce(); | 
| 109   Profiler::InitOnce(); | 110   Profiler::InitOnce(); | 
| 110   SemiSpace::InitOnce(); | 111   SemiSpace::InitOnce(); | 
|  | 112   Metric::InitOnce(); | 
| 111 | 113 | 
| 112 #if defined(USING_SIMULATOR) | 114 #if defined(USING_SIMULATOR) | 
| 113   Simulator::InitOnce(); | 115   Simulator::InitOnce(); | 
| 114 #endif | 116 #endif | 
| 115   // Create the read-only handles area. | 117   // Create the read-only handles area. | 
| 116   ASSERT(predefined_handles_ == NULL); | 118   ASSERT(predefined_handles_ == NULL); | 
| 117   predefined_handles_ = new ReadOnlyHandles(); | 119   predefined_handles_ = new ReadOnlyHandles(); | 
| 118   // Create the VM isolate and finish the VM initialization. | 120   // Create the VM isolate and finish the VM initialization. | 
| 119   ASSERT(thread_pool_ == NULL); | 121   ASSERT(thread_pool_ == NULL); | 
| 120   thread_pool_ = new ThreadPool(); | 122   thread_pool_ = new ThreadPool(); | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 304   return predefined_handles_->handles_.AllocateScopedHandle(); | 306   return predefined_handles_->handles_.AllocateScopedHandle(); | 
| 305 } | 307 } | 
| 306 | 308 | 
| 307 | 309 | 
| 308 bool Dart::IsReadOnlyHandle(uword address) { | 310 bool Dart::IsReadOnlyHandle(uword address) { | 
| 309   ASSERT(predefined_handles_ != NULL); | 311   ASSERT(predefined_handles_ != NULL); | 
| 310   return predefined_handles_->handles_.IsValidScopedHandle(address); | 312   return predefined_handles_->handles_.IsValidScopedHandle(address); | 
| 311 } | 313 } | 
| 312 | 314 | 
| 313 }  // namespace dart | 315 }  // namespace dart | 
| OLD | NEW | 
|---|