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/become.h" |
7 #include "vm/code_observers.h" | 8 #include "vm/code_observers.h" |
8 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
9 #include "vm/dart_api_state.h" | 10 #include "vm/dart_api_state.h" |
10 #include "vm/dart_entry.h" | 11 #include "vm/dart_entry.h" |
11 #include "vm/debugger.h" | 12 #include "vm/debugger.h" |
12 #include "vm/flags.h" | 13 #include "vm/flags.h" |
13 #include "vm/freelist.h" | 14 #include "vm/freelist.h" |
14 #include "vm/handles.h" | 15 #include "vm/handles.h" |
15 #include "vm/heap.h" | 16 #include "vm/heap.h" |
16 #include "vm/isolate.h" | 17 #include "vm/isolate.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 VirtualMemory::InitOnce(); | 140 VirtualMemory::InitOnce(); |
140 OSThread::InitOnce(); | 141 OSThread::InitOnce(); |
141 if (FLAG_support_timeline) { | 142 if (FLAG_support_timeline) { |
142 Timeline::InitOnce(); | 143 Timeline::InitOnce(); |
143 } | 144 } |
144 NOT_IN_PRODUCT(TimelineDurationScope tds(Timeline::GetVMStream(), | 145 NOT_IN_PRODUCT(TimelineDurationScope tds(Timeline::GetVMStream(), |
145 "Dart::InitOnce")); | 146 "Dart::InitOnce")); |
146 Isolate::InitOnce(); | 147 Isolate::InitOnce(); |
147 PortMap::InitOnce(); | 148 PortMap::InitOnce(); |
148 FreeListElement::InitOnce(); | 149 FreeListElement::InitOnce(); |
| 150 ForwardingCorpse::InitOnce(); |
149 Api::InitOnce(); | 151 Api::InitOnce(); |
150 NOT_IN_PRODUCT(CodeObservers::InitOnce()); | 152 NOT_IN_PRODUCT(CodeObservers::InitOnce()); |
151 if (FLAG_profiler) { | 153 if (FLAG_profiler) { |
152 ThreadInterrupter::InitOnce(); | 154 ThreadInterrupter::InitOnce(); |
153 Profiler::InitOnce(); | 155 Profiler::InitOnce(); |
154 } | 156 } |
155 SemiSpace::InitOnce(); | 157 SemiSpace::InitOnce(); |
156 Metric::InitOnce(); | 158 Metric::InitOnce(); |
157 StoreBuffer::InitOnce(); | 159 StoreBuffer::InitOnce(); |
158 MarkingStack::InitOnce(); | 160 MarkingStack::InitOnce(); |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 return predefined_handles_->handles_.IsValidScopedHandle(address); | 706 return predefined_handles_->handles_.IsValidScopedHandle(address); |
705 } | 707 } |
706 | 708 |
707 | 709 |
708 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 710 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
709 ASSERT(predefined_handles_ != NULL); | 711 ASSERT(predefined_handles_ != NULL); |
710 return predefined_handles_->api_handles_.IsValidHandle(handle); | 712 return predefined_handles_->api_handles_.IsValidHandle(handle); |
711 } | 713 } |
712 | 714 |
713 } // namespace dart | 715 } // namespace dart |
OLD | NEW |