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

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

Issue 253623003: Enables all startup code for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/intrinsifier_arm64.cc ('k') | runtime/vm/simulator_arm64.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/bigint_operations.h" 5 #include "vm/bigint_operations.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 func.set_optimized_call_site_count(reader->Read<uint16_t>()); 703 func.set_optimized_call_site_count(reader->Read<uint16_t>());
704 704
705 // Set all the object fields. 705 // Set all the object fields.
706 // TODO(5411462): Need to assert No GC can happen here, even though 706 // TODO(5411462): Need to assert No GC can happen here, even though
707 // allocations may happen. 707 // allocations may happen.
708 intptr_t num_flds = (func.raw()->to() - func.raw()->from()); 708 intptr_t num_flds = (func.raw()->to() - func.raw()->from());
709 for (intptr_t i = 0; i <= num_flds; i++) { 709 for (intptr_t i = 0; i <= num_flds; i++) {
710 *(func.raw()->from() + i) = reader->ReadObjectRef(); 710 *(func.raw()->from() + i) = reader->ReadObjectRef();
711 } 711 }
712 712
713 // TODO(zra): Remove when arm64 is ready.
714 #if !defined(TARGET_ARCH_ARM64)
715 // Set up code pointer with the lazy-compile-stub. 713 // Set up code pointer with the lazy-compile-stub.
716 func.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); 714 func.set_code(Code::Handle(StubCode::LazyCompile_entry()->code()));
717 #else
718 func.set_code(Code::Handle());
719 #endif
720 715
721 return func.raw(); 716 return func.raw();
722 } 717 }
723 718
724 719
725 void RawFunction::WriteTo(SnapshotWriter* writer, 720 void RawFunction::WriteTo(SnapshotWriter* writer,
726 intptr_t object_id, 721 intptr_t object_id,
727 Snapshot::Kind kind) { 722 Snapshot::Kind kind) {
728 ASSERT(writer != NULL); 723 ASSERT(writer != NULL);
729 ASSERT(((kind == Snapshot::kScript) && 724 ASSERT(((kind == Snapshot::kScript) &&
(...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 // We do not allow objects with native fields in an isolate message. 2773 // We do not allow objects with native fields in an isolate message.
2779 writer->SetWriteException(Exceptions::kArgument, 2774 writer->SetWriteException(Exceptions::kArgument,
2780 "Illegal argument in isolate message" 2775 "Illegal argument in isolate message"
2781 " : (object is a UserTag)"); 2776 " : (object is a UserTag)");
2782 } else { 2777 } else {
2783 UNREACHABLE(); 2778 UNREACHABLE();
2784 } 2779 }
2785 } 2780 }
2786 2781
2787 } // namespace dart 2782 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698