| 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/cpu.h" | 8 #include "vm/cpu.h" |
| 9 #include "vm/dart_api_state.h" | 9 #include "vm/dart_api_state.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 reader.ReadFullSnapshot(); | 226 reader.ReadFullSnapshot(); |
| 227 if (FLAG_trace_isolates) { | 227 if (FLAG_trace_isolates) { |
| 228 isolate->heap()->PrintSizes(); | 228 isolate->heap()->PrintSizes(); |
| 229 isolate->megamorphic_cache_table()->PrintSizes(); | 229 isolate->megamorphic_cache_table()->PrintSizes(); |
| 230 } | 230 } |
| 231 } | 231 } |
| 232 | 232 |
| 233 Object::VerifyBuiltinVtables(); | 233 Object::VerifyBuiltinVtables(); |
| 234 | 234 |
| 235 StubCode::Init(isolate); | 235 StubCode::Init(isolate); |
| 236 // TODO(zra): ifndef to be removed when ARM64 port is ready. |
| 237 #if !defined(TARGET_ARCH_ARM64) |
| 236 if (snapshot_buffer == NULL) { | 238 if (snapshot_buffer == NULL) { |
| 237 if (!isolate->object_store()->PreallocateObjects()) { | 239 if (!isolate->object_store()->PreallocateObjects()) { |
| 238 return isolate->object_store()->sticky_error(); | 240 return isolate->object_store()->sticky_error(); |
| 239 } | 241 } |
| 240 } | 242 } |
| 241 isolate->megamorphic_cache_table()->InitMissHandler(); | 243 isolate->megamorphic_cache_table()->InitMissHandler(); |
| 244 #endif |
| 242 | 245 |
| 243 isolate->heap()->EnableGrowthControl(); | 246 isolate->heap()->EnableGrowthControl(); |
| 244 isolate->set_init_callback_data(data); | 247 isolate->set_init_callback_data(data); |
| 245 Api::SetupAcquiredError(isolate); | 248 Api::SetupAcquiredError(isolate); |
| 246 if (FLAG_print_class_table) { | 249 if (FLAG_print_class_table) { |
| 247 isolate->class_table()->Print(); | 250 isolate->class_table()->Print(); |
| 248 } | 251 } |
| 249 Service::SendIsolateStartupMessage(); | 252 Service::SendIsolateStartupMessage(); |
| 250 return Error::null(); | 253 return Error::null(); |
| 251 } | 254 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 275 return predefined_handles_->handles_.AllocateScopedHandle(); | 278 return predefined_handles_->handles_.AllocateScopedHandle(); |
| 276 } | 279 } |
| 277 | 280 |
| 278 | 281 |
| 279 bool Dart::IsReadOnlyHandle(uword address) { | 282 bool Dart::IsReadOnlyHandle(uword address) { |
| 280 ASSERT(predefined_handles_ != NULL); | 283 ASSERT(predefined_handles_ != NULL); |
| 281 return predefined_handles_->handles_.IsValidScopedHandle(address); | 284 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 282 } | 285 } |
| 283 | 286 |
| 284 } // namespace dart | 287 } // namespace dart |
| OLD | NEW |