| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 StubCode::Init(isolate); | 222 StubCode::Init(isolate); |
| 223 // TODO(regis): Reenable this code for arm and mips when possible. | 223 // TODO(regis): Reenable this code for arm and mips when possible. |
| 224 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) | 224 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) |
| 225 isolate->megamorphic_cache_table()->InitMissHandler(); | 225 isolate->megamorphic_cache_table()->InitMissHandler(); |
| 226 #endif | 226 #endif |
| 227 if (FLAG_heap_trace) { | 227 if (FLAG_heap_trace) { |
| 228 isolate->heap()->trace()->Init(isolate); | 228 isolate->heap()->trace()->Init(isolate); |
| 229 } | 229 } |
| 230 isolate->heap()->EnableGrowthControl(); | 230 isolate->heap()->EnableGrowthControl(); |
| 231 isolate->set_init_callback_data(data); | 231 isolate->set_init_callback_data(data); |
| 232 Api::SetupAcquiredError(isolate); |
| 232 if (FLAG_print_class_table) { | 233 if (FLAG_print_class_table) { |
| 233 isolate->class_table()->Print(); | 234 isolate->class_table()->Print(); |
| 234 } | 235 } |
| 235 return Error::null(); | 236 return Error::null(); |
| 236 } | 237 } |
| 237 | 238 |
| 238 | 239 |
| 239 void Dart::ShutdownIsolate() { | 240 void Dart::ShutdownIsolate() { |
| 240 Isolate* isolate = Isolate::Current(); | 241 Isolate* isolate = Isolate::Current(); |
| 241 void* callback_data = isolate->init_callback_data(); | 242 void* callback_data = isolate->init_callback_data(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 255 return predefined_handles_->handles_.AllocateScopedHandle(); | 256 return predefined_handles_->handles_.AllocateScopedHandle(); |
| 256 } | 257 } |
| 257 | 258 |
| 258 | 259 |
| 259 bool Dart::IsReadOnlyHandle(uword address) { | 260 bool Dart::IsReadOnlyHandle(uword address) { |
| 260 ASSERT(predefined_handles_ != NULL); | 261 ASSERT(predefined_handles_ != NULL); |
| 261 return predefined_handles_->handles_.IsValidScopedHandle(address); | 262 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 262 } | 263 } |
| 263 | 264 |
| 264 } // namespace dart | 265 } // namespace dart |
| OLD | NEW |