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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 206 } |
207 if (FLAG_print_bootstrap) { | 207 if (FLAG_print_bootstrap) { |
208 PrintLibrarySources(isolate); | 208 PrintLibrarySources(isolate); |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 if (FLAG_heap_profile_initialize) { | 212 if (FLAG_heap_profile_initialize) { |
213 isolate->heap()->ProfileToFile("initialize"); | 213 isolate->heap()->ProfileToFile("initialize"); |
214 } | 214 } |
215 | 215 |
| 216 Object::VerifyBuiltinVtables(); |
| 217 |
216 StubCode::Init(isolate); | 218 StubCode::Init(isolate); |
217 // TODO(regis): Reenable this code for arm and mips when possible. | 219 // TODO(regis): Reenable this code for arm and mips when possible. |
218 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) | 220 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) |
219 isolate->megamorphic_cache_table()->InitMissHandler(); | 221 isolate->megamorphic_cache_table()->InitMissHandler(); |
220 #endif | 222 #endif |
221 if (FLAG_heap_trace) { | 223 if (FLAG_heap_trace) { |
222 isolate->heap()->trace()->Init(isolate); | 224 isolate->heap()->trace()->Init(isolate); |
223 } | 225 } |
224 isolate->heap()->EnableGrowthControl(); | 226 isolate->heap()->EnableGrowthControl(); |
225 isolate->set_init_callback_data(data); | 227 isolate->set_init_callback_data(data); |
(...skipping 22 matching lines...) Expand all Loading... |
248 return predefined_handles_->handles_.AllocateScopedHandle(); | 250 return predefined_handles_->handles_.AllocateScopedHandle(); |
249 } | 251 } |
250 | 252 |
251 | 253 |
252 bool Dart::IsReadOnlyHandle(uword address) { | 254 bool Dart::IsReadOnlyHandle(uword address) { |
253 ASSERT(predefined_handles_ != NULL); | 255 ASSERT(predefined_handles_ != NULL); |
254 return predefined_handles_->handles_.IsValidScopedHandle(address); | 256 return predefined_handles_->handles_.IsValidScopedHandle(address); |
255 } | 257 } |
256 | 258 |
257 } // namespace dart | 259 } // namespace dart |
OLD | NEW |