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

Side by Side Diff: runtime/vm/raw_object_snapshot.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/os_linux.cc ('k') | runtime/vm/resolver_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) 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)
713 // Set up code pointer with the lazy-compile-stub. 715 // Set up code pointer with the lazy-compile-stub.
714 func.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); 716 func.set_code(Code::Handle(StubCode::LazyCompile_entry()->code()));
717 #else
718 func.set_code(Code::Handle());
719 #endif
715 720
716 return func.raw(); 721 return func.raw();
717 } 722 }
718 723
719 724
720 void RawFunction::WriteTo(SnapshotWriter* writer, 725 void RawFunction::WriteTo(SnapshotWriter* writer,
721 intptr_t object_id, 726 intptr_t object_id,
722 Snapshot::Kind kind) { 727 Snapshot::Kind kind) {
723 ASSERT(writer != NULL); 728 ASSERT(writer != NULL);
724 ASSERT(((kind == Snapshot::kScript) && 729 ASSERT(((kind == Snapshot::kScript) &&
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
2687 // We do not allow objects with native fields in an isolate message. 2692 // We do not allow objects with native fields in an isolate message.
2688 writer->SetWriteException(Exceptions::kArgument, 2693 writer->SetWriteException(Exceptions::kArgument,
2689 "Illegal argument in isolate message" 2694 "Illegal argument in isolate message"
2690 " : (object is a MirrorReference)"); 2695 " : (object is a MirrorReference)");
2691 } else { 2696 } else {
2692 UNREACHABLE(); 2697 UNREACHABLE();
2693 } 2698 }
2694 } 2699 }
2695 2700
2696 } // namespace dart 2701 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/os_linux.cc ('k') | runtime/vm/resolver_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698