Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: runtime/vm/dart.cc

Issue 221133002: Begins work on ARM64, first assembler test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: adds files Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/custom_isolate_test.cc ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/custom_isolate_test.cc ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698