OLD | NEW |
1 // Copyright (c) 2012, 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" |
11 #include "vm/freelist.h" | 11 #include "vm/freelist.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 StubCode::Init(isolate); | 216 StubCode::Init(isolate); |
| 217 // TODO(regis): Reenable this code for arm and mips when possible. |
| 218 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) |
217 isolate->megamorphic_cache_table()->InitMissHandler(); | 219 isolate->megamorphic_cache_table()->InitMissHandler(); |
| 220 #endif |
218 if (FLAG_heap_trace) { | 221 if (FLAG_heap_trace) { |
219 isolate->heap()->trace()->Init(isolate); | 222 isolate->heap()->trace()->Init(isolate); |
220 } | 223 } |
221 isolate->heap()->EnableGrowthControl(); | 224 isolate->heap()->EnableGrowthControl(); |
222 isolate->set_init_callback_data(data); | 225 isolate->set_init_callback_data(data); |
223 if (FLAG_print_class_table) { | 226 if (FLAG_print_class_table) { |
224 isolate->class_table()->Print(); | 227 isolate->class_table()->Print(); |
225 } | 228 } |
226 return Error::null(); | 229 return Error::null(); |
227 } | 230 } |
(...skipping 17 matching lines...) Expand all Loading... |
245 return predefined_handles_->handles_.AllocateScopedHandle(); | 248 return predefined_handles_->handles_.AllocateScopedHandle(); |
246 } | 249 } |
247 | 250 |
248 | 251 |
249 bool Dart::IsReadOnlyHandle(uword address) { | 252 bool Dart::IsReadOnlyHandle(uword address) { |
250 ASSERT(predefined_handles_ != NULL); | 253 ASSERT(predefined_handles_ != NULL); |
251 return predefined_handles_->handles_.IsValidScopedHandle(address); | 254 return predefined_handles_->handles_.IsValidScopedHandle(address); |
252 } | 255 } |
253 | 256 |
254 } // namespace dart | 257 } // namespace dart |
OLD | NEW |