| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |