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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 reader.ReadFullSnapshot(); | 238 reader.ReadFullSnapshot(); |
239 if (FLAG_trace_isolates) { | 239 if (FLAG_trace_isolates) { |
240 isolate->heap()->PrintSizes(); | 240 isolate->heap()->PrintSizes(); |
241 isolate->megamorphic_cache_table()->PrintSizes(); | 241 isolate->megamorphic_cache_table()->PrintSizes(); |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 Object::VerifyBuiltinVtables(); | 245 Object::VerifyBuiltinVtables(); |
246 | 246 |
247 StubCode::Init(isolate); | 247 StubCode::Init(isolate); |
248 // TODO(zra): ifndef to be removed when ARM64 port is ready. | |
249 #if !defined(TARGET_ARCH_ARM64) | |
250 if (snapshot_buffer == NULL) { | 248 if (snapshot_buffer == NULL) { |
251 if (!isolate->object_store()->PreallocateObjects()) { | 249 if (!isolate->object_store()->PreallocateObjects()) { |
252 return isolate->object_store()->sticky_error(); | 250 return isolate->object_store()->sticky_error(); |
253 } | 251 } |
254 } | 252 } |
255 isolate->megamorphic_cache_table()->InitMissHandler(); | 253 isolate->megamorphic_cache_table()->InitMissHandler(); |
256 #endif | |
257 | 254 |
258 isolate->heap()->EnableGrowthControl(); | 255 isolate->heap()->EnableGrowthControl(); |
259 isolate->set_init_callback_data(data); | 256 isolate->set_init_callback_data(data); |
260 Api::SetupAcquiredError(isolate); | 257 Api::SetupAcquiredError(isolate); |
261 if (FLAG_print_class_table) { | 258 if (FLAG_print_class_table) { |
262 isolate->class_table()->Print(); | 259 isolate->class_table()->Print(); |
263 } | 260 } |
264 | 261 |
265 // Setup for profiling. | 262 // Setup for profiling. |
266 Profiler::InitProfilingForIsolate(isolate); | 263 Profiler::InitProfilingForIsolate(isolate); |
(...skipping 30 matching lines...) Expand all Loading... |
297 return predefined_handles_->handles_.AllocateScopedHandle(); | 294 return predefined_handles_->handles_.AllocateScopedHandle(); |
298 } | 295 } |
299 | 296 |
300 | 297 |
301 bool Dart::IsReadOnlyHandle(uword address) { | 298 bool Dart::IsReadOnlyHandle(uword address) { |
302 ASSERT(predefined_handles_ != NULL); | 299 ASSERT(predefined_handles_ != NULL); |
303 return predefined_handles_->handles_.IsValidScopedHandle(address); | 300 return predefined_handles_->handles_.IsValidScopedHandle(address); |
304 } | 301 } |
305 | 302 |
306 } // namespace dart | 303 } // namespace dart |
OLD | NEW |