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

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

Issue 2912863006: Inline instance object hash code into object header on 64 bit. (Closed)
Patch Set: Add assembler tests and other feedback from Ryan Created 3 years, 6 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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 // Snapshot kind. 834 // Snapshot kind.
835 Snapshot::Kind kind() const { return kind_; } 835 Snapshot::Kind kind() const { return kind_; }
836 Thread* thread() const { return thread_; } 836 Thread* thread() const { return thread_; }
837 Zone* zone() const { return thread_->zone(); } 837 Zone* zone() const { return thread_->zone(); }
838 Isolate* isolate() const { return thread_->isolate(); } 838 Isolate* isolate() const { return thread_->isolate(); }
839 Heap* heap() const { return isolate()->heap(); } 839 Heap* heap() const { return isolate()->heap(); }
840 840
841 // Serialize an object into the buffer. 841 // Serialize an object into the buffer.
842 void WriteObject(RawObject* raw); 842 void WriteObject(RawObject* raw);
843 843
844 uword GetObjectTags(RawObject* raw); 844 static uint32_t GetObjectTags(RawObject* raw);
845 static uword GetObjectTagsAndHash(RawObject* raw);
845 846
846 Exceptions::ExceptionType exception_type() const { return exception_type_; } 847 Exceptions::ExceptionType exception_type() const { return exception_type_; }
847 void set_exception_type(Exceptions::ExceptionType type) { 848 void set_exception_type(Exceptions::ExceptionType type) {
848 exception_type_ = type; 849 exception_type_ = type;
849 } 850 }
850 const char* exception_msg() const { return exception_msg_; } 851 const char* exception_msg() const { return exception_msg_; }
851 void set_exception_msg(const char* msg) { exception_msg_ = msg; } 852 void set_exception_msg(const char* msg) { exception_msg_ = msg; }
852 bool can_send_any_object() const { return can_send_any_object_; } 853 bool can_send_any_object() const { return can_send_any_object_; }
853 void ThrowException(Exceptions::ExceptionType type, const char* msg); 854 void ThrowException(Exceptions::ExceptionType type, const char* msg);
854 855
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 private: 1014 private:
1014 SnapshotWriter* writer_; 1015 SnapshotWriter* writer_;
1015 bool as_references_; 1016 bool as_references_;
1016 1017
1017 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1018 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1018 }; 1019 };
1019 1020
1020 } // namespace dart 1021 } // namespace dart
1021 1022
1022 #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