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 VM_SNAPSHOT_H_ | 5 #ifndef VM_SNAPSHOT_H_ |
6 #define VM_SNAPSHOT_H_ | 6 #define 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // Read an inlined object from the stream. | 361 // Read an inlined object from the stream. |
362 RawObject* ReadInlinedObject(intptr_t object_id); | 362 RawObject* ReadInlinedObject(intptr_t object_id); |
363 | 363 |
364 // Decode class id from the header field. | 364 // Decode class id from the header field. |
365 intptr_t LookupInternalClass(intptr_t class_header); | 365 intptr_t LookupInternalClass(intptr_t class_header); |
366 | 366 |
367 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); | 367 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); |
368 | 368 |
369 intptr_t NextAvailableObjectId() const; | 369 intptr_t NextAvailableObjectId() const; |
370 | 370 |
| 371 void SetReadException(const char* msg); |
| 372 |
371 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). | 373 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). |
372 Isolate* isolate_; // Current isolate. | 374 Isolate* isolate_; // Current isolate. |
373 Heap* heap_; // Heap of the current isolate. | 375 Heap* heap_; // Heap of the current isolate. |
374 PageSpace* old_space_; // Old space of the current isolate. | 376 PageSpace* old_space_; // Old space of the current isolate. |
375 Class& cls_; // Temporary Class handle. | 377 Class& cls_; // Temporary Class handle. |
376 Object& obj_; // Temporary Object handle. | 378 Object& obj_; // Temporary Object handle. |
377 PassiveObject& pobj_; // Temporary PassiveObject handle. | 379 PassiveObject& pobj_; // Temporary PassiveObject handle. |
378 Array& array_; // Temporary Array handle. | 380 Array& array_; // Temporary Array handle. |
379 Field& field_; // Temporary Field handle. | 381 Field& field_; // Temporary Field handle. |
380 String& str_; // Temporary String handle. | 382 String& str_; // Temporary String handle. |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 private: | 741 private: |
740 SnapshotWriter* writer_; | 742 SnapshotWriter* writer_; |
741 bool as_references_; | 743 bool as_references_; |
742 | 744 |
743 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 745 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
744 }; | 746 }; |
745 | 747 |
746 } // namespace dart | 748 } // namespace dart |
747 | 749 |
748 #endif // VM_SNAPSHOT_H_ | 750 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |