| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 // Based on header field check to see if it is an internal VM class. | 314 // Based on header field check to see if it is an internal VM class. |
| 315 RawClass* LookupInternalClass(intptr_t class_header); | 315 RawClass* LookupInternalClass(intptr_t class_header); |
| 316 | 316 |
| 317 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); | 317 void ArrayReadFrom(const Array& result, intptr_t len, intptr_t tags); |
| 318 | 318 |
| 319 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). | 319 Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message). |
| 320 Isolate* isolate_; // Current isolate. | 320 Isolate* isolate_; // Current isolate. |
| 321 Class& cls_; // Temporary Class handle. | 321 Class& cls_; // Temporary Class handle. |
| 322 Object& obj_; // Temporary Object handle. | 322 Object& obj_; // Temporary Object handle. |
| 323 Array& array_; // Temporary Array handle. |
| 324 Field& field_; // Temporary Field handle. |
| 323 String& str_; // Temporary String handle. | 325 String& str_; // Temporary String handle. |
| 324 Library& library_; // Temporary library handle. | 326 Library& library_; // Temporary library handle. |
| 325 AbstractType& type_; // Temporary type handle. | 327 AbstractType& type_; // Temporary type handle. |
| 326 AbstractTypeArguments& type_arguments_; // Temporary type argument handle. | 328 AbstractTypeArguments& type_arguments_; // Temporary type argument handle. |
| 327 Array& tokens_; // Temporary tokens handle. | 329 Array& tokens_; // Temporary tokens handle. |
| 328 TokenStream& stream_; // Temporary token stream handle. | 330 TokenStream& stream_; // Temporary token stream handle. |
| 329 ExternalTypedData& data_; // Temporary stream data handle. | 331 ExternalTypedData& data_; // Temporary stream data handle. |
| 330 UnhandledException& error_; // Error handle. | 332 UnhandledException& error_; // Error handle. |
| 331 GrowableArray<BackRefNode*> backward_references_; | 333 GrowableArray<BackRefNode*> backward_references_; |
| 332 | 334 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 private: | 614 private: |
| 613 SnapshotWriter* writer_; | 615 SnapshotWriter* writer_; |
| 614 bool as_references_; | 616 bool as_references_; |
| 615 | 617 |
| 616 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 618 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 617 }; | 619 }; |
| 618 | 620 |
| 619 } // namespace dart | 621 } // namespace dart |
| 620 | 622 |
| 621 #endif // VM_SNAPSHOT_H_ | 623 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |