| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 } | 214 } |
| 215 | 215 |
| 216 if (FLAG_heap_profile_initialize) { | 216 if (FLAG_heap_profile_initialize) { |
| 217 isolate->heap()->ProfileToFile("initialize"); | 217 isolate->heap()->ProfileToFile("initialize"); |
| 218 } | 218 } |
| 219 | 219 |
| 220 Object::VerifyBuiltinVtables(); | 220 Object::VerifyBuiltinVtables(); |
| 221 | 221 |
| 222 StubCode::Init(isolate); | 222 StubCode::Init(isolate); |
| 223 // TODO(regis): Reenable this code for mips when possible. | |
| 224 #if defined(TARGET_ARCH_IA32) || \ | |
| 225 defined(TARGET_ARCH_X64) || \ | |
| 226 defined(TARGET_ARCH_ARM) | |
| 227 isolate->megamorphic_cache_table()->InitMissHandler(); | 223 isolate->megamorphic_cache_table()->InitMissHandler(); |
| 228 #endif | 224 |
| 229 if (FLAG_heap_trace) { | 225 if (FLAG_heap_trace) { |
| 230 isolate->heap()->trace()->Init(isolate); | 226 isolate->heap()->trace()->Init(isolate); |
| 231 } | 227 } |
| 232 isolate->heap()->EnableGrowthControl(); | 228 isolate->heap()->EnableGrowthControl(); |
| 233 isolate->set_init_callback_data(data); | 229 isolate->set_init_callback_data(data); |
| 234 Api::SetupAcquiredError(isolate); | 230 Api::SetupAcquiredError(isolate); |
| 235 if (FLAG_print_class_table) { | 231 if (FLAG_print_class_table) { |
| 236 isolate->class_table()->Print(); | 232 isolate->class_table()->Print(); |
| 237 } | 233 } |
| 238 return Error::null(); | 234 return Error::null(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 258 return predefined_handles_->handles_.AllocateScopedHandle(); | 254 return predefined_handles_->handles_.AllocateScopedHandle(); |
| 259 } | 255 } |
| 260 | 256 |
| 261 | 257 |
| 262 bool Dart::IsReadOnlyHandle(uword address) { | 258 bool Dart::IsReadOnlyHandle(uword address) { |
| 263 ASSERT(predefined_handles_ != NULL); | 259 ASSERT(predefined_handles_ != NULL); |
| 264 return predefined_handles_->handles_.IsValidScopedHandle(address); | 260 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 265 } | 261 } |
| 266 | 262 |
| 267 } // namespace dart | 263 } // namespace dart |
| OLD | NEW |