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

Side by Side Diff: runtime/vm/snapshot.h

Issue 2962543002: Revert "VM: Reland Inline instance object hash code into object header on 64bit." (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « runtime/vm/simulator_dbc.cc ('k') | runtime/vm/snapshot.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 #ifndef RUNTIME_VM_SNAPSHOT_H_ 5 #ifndef RUNTIME_VM_SNAPSHOT_H_
6 #define RUNTIME_VM_SNAPSHOT_H_ 6 #define RUNTIME_VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 // Snapshot kind. 835 // Snapshot kind.
836 Snapshot::Kind kind() const { return kind_; } 836 Snapshot::Kind kind() const { return kind_; }
837 Thread* thread() const { return thread_; } 837 Thread* thread() const { return thread_; }
838 Zone* zone() const { return thread_->zone(); } 838 Zone* zone() const { return thread_->zone(); }
839 Isolate* isolate() const { return thread_->isolate(); } 839 Isolate* isolate() const { return thread_->isolate(); }
840 Heap* heap() const { return isolate()->heap(); } 840 Heap* heap() const { return isolate()->heap(); }
841 841
842 // Serialize an object into the buffer. 842 // Serialize an object into the buffer.
843 void WriteObject(RawObject* raw); 843 void WriteObject(RawObject* raw);
844 844
845 static uint32_t GetObjectTags(RawObject* raw); 845 uword GetObjectTags(RawObject* raw);
846 static uword GetObjectTagsAndHash(RawObject* raw);
847 846
848 Exceptions::ExceptionType exception_type() const { return exception_type_; } 847 Exceptions::ExceptionType exception_type() const { return exception_type_; }
849 void set_exception_type(Exceptions::ExceptionType type) { 848 void set_exception_type(Exceptions::ExceptionType type) {
850 exception_type_ = type; 849 exception_type_ = type;
851 } 850 }
852 const char* exception_msg() const { return exception_msg_; } 851 const char* exception_msg() const { return exception_msg_; }
853 void set_exception_msg(const char* msg) { exception_msg_ = msg; } 852 void set_exception_msg(const char* msg) { exception_msg_ = msg; }
854 bool can_send_any_object() const { return can_send_any_object_; } 853 bool can_send_any_object() const { return can_send_any_object_; }
855 void ThrowException(Exceptions::ExceptionType type, const char* msg); 854 void ThrowException(Exceptions::ExceptionType type, const char* msg);
856 855
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 private: 1014 private:
1016 SnapshotWriter* writer_; 1015 SnapshotWriter* writer_;
1017 bool as_references_; 1016 bool as_references_;
1018 1017
1019 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1018 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1020 }; 1019 };
1021 1020
1022 } // namespace dart 1021 } // namespace dart
1023 1022
1024 #endif // RUNTIME_VM_SNAPSHOT_H_ 1023 #endif // RUNTIME_VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_dbc.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698