| 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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 uword GetObjectTags(RawObject* raw); | 845 static uint32_t GetObjectTags(RawObject* raw); |
| 846 static uword GetObjectTagsAndHash(RawObject* raw); |
| 846 | 847 |
| 847 Exceptions::ExceptionType exception_type() const { return exception_type_; } | 848 Exceptions::ExceptionType exception_type() const { return exception_type_; } |
| 848 void set_exception_type(Exceptions::ExceptionType type) { | 849 void set_exception_type(Exceptions::ExceptionType type) { |
| 849 exception_type_ = type; | 850 exception_type_ = type; |
| 850 } | 851 } |
| 851 const char* exception_msg() const { return exception_msg_; } | 852 const char* exception_msg() const { return exception_msg_; } |
| 852 void set_exception_msg(const char* msg) { exception_msg_ = msg; } | 853 void set_exception_msg(const char* msg) { exception_msg_ = msg; } |
| 853 bool can_send_any_object() const { return can_send_any_object_; } | 854 bool can_send_any_object() const { return can_send_any_object_; } |
| 854 void ThrowException(Exceptions::ExceptionType type, const char* msg); | 855 void ThrowException(Exceptions::ExceptionType type, const char* msg); |
| 855 | 856 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 private: | 1015 private: |
| 1015 SnapshotWriter* writer_; | 1016 SnapshotWriter* writer_; |
| 1016 bool as_references_; | 1017 bool as_references_; |
| 1017 | 1018 |
| 1018 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1019 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1019 }; | 1020 }; |
| 1020 | 1021 |
| 1021 } // namespace dart | 1022 } // namespace dart |
| 1022 | 1023 |
| 1023 #endif // RUNTIME_VM_SNAPSHOT_H_ | 1024 #endif // RUNTIME_VM_SNAPSHOT_H_ |
| OLD | NEW |