| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 Zone* zone() const { return zone_; } | 355 Zone* zone() const { return zone_; } |
| 356 Isolate* isolate() const { return thread_->isolate(); } | 356 Isolate* isolate() const { return thread_->isolate(); } |
| 357 Heap* heap() const { return heap_; } | 357 Heap* heap() const { return heap_; } |
| 358 ObjectStore* object_store() const { return isolate()->object_store(); } | 358 ObjectStore* object_store() const { return isolate()->object_store(); } |
| 359 ClassTable* class_table() const { return isolate()->class_table(); } | 359 ClassTable* class_table() const { return isolate()->class_table(); } |
| 360 PassiveObject* PassiveObjectHandle() { return &pobj_; } | 360 PassiveObject* PassiveObjectHandle() { return &pobj_; } |
| 361 Array* ArrayHandle() { return &array_; } | 361 Array* ArrayHandle() { return &array_; } |
| 362 String* StringHandle() { return &str_; } | 362 String* StringHandle() { return &str_; } |
| 363 AbstractType* TypeHandle() { return &type_; } | 363 AbstractType* TypeHandle() { return &type_; } |
| 364 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } | 364 TypeArguments* TypeArgumentsHandle() { return &type_arguments_; } |
| 365 Array* TokensHandle() { return &tokens_; } | 365 GrowableObjectArray* TokensHandle() { return &tokens_; } |
| 366 TokenStream* StreamHandle() { return &stream_; } | 366 TokenStream* StreamHandle() { return &stream_; } |
| 367 ExternalTypedData* DataHandle() { return &data_; } | 367 ExternalTypedData* DataHandle() { return &data_; } |
| 368 TypedData* TypedDataHandle() { return &typed_data_; } | 368 TypedData* TypedDataHandle() { return &typed_data_; } |
| 369 Code* CodeHandle() { return &code_; } | 369 Code* CodeHandle() { return &code_; } |
| 370 Function* FunctionHandle() { return &function_; } | 370 Function* FunctionHandle() { return &function_; } |
| 371 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } | 371 MegamorphicCache* MegamorphicCacheHandle() { return &megamorphic_cache_; } |
| 372 Snapshot::Kind kind() const { return kind_; } | 372 Snapshot::Kind kind() const { return kind_; } |
| 373 bool snapshot_code() const { return snapshot_code_; } | 373 bool snapshot_code() const { return snapshot_code_; } |
| 374 | 374 |
| 375 // Reads an object. | 375 // Reads an object. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 PageSpace* old_space_; // Old space of the current isolate. | 532 PageSpace* old_space_; // Old space of the current isolate. |
| 533 Class& cls_; // Temporary Class handle. | 533 Class& cls_; // Temporary Class handle. |
| 534 Object& obj_; // Temporary Object handle. | 534 Object& obj_; // Temporary Object handle. |
| 535 PassiveObject& pobj_; // Temporary PassiveObject handle. | 535 PassiveObject& pobj_; // Temporary PassiveObject handle. |
| 536 Array& array_; // Temporary Array handle. | 536 Array& array_; // Temporary Array handle. |
| 537 Field& field_; // Temporary Field handle. | 537 Field& field_; // Temporary Field handle. |
| 538 String& str_; // Temporary String handle. | 538 String& str_; // Temporary String handle. |
| 539 Library& library_; // Temporary library handle. | 539 Library& library_; // Temporary library handle. |
| 540 AbstractType& type_; // Temporary type handle. | 540 AbstractType& type_; // Temporary type handle. |
| 541 TypeArguments& type_arguments_; // Temporary type argument handle. | 541 TypeArguments& type_arguments_; // Temporary type argument handle. |
| 542 Array& tokens_; // Temporary tokens handle. | 542 GrowableObjectArray& tokens_; // Temporary tokens handle. |
| 543 TokenStream& stream_; // Temporary token stream handle. | 543 TokenStream& stream_; // Temporary token stream handle. |
| 544 ExternalTypedData& data_; // Temporary stream data handle. | 544 ExternalTypedData& data_; // Temporary stream data handle. |
| 545 TypedData& typed_data_; // Temporary typed data handle. | 545 TypedData& typed_data_; // Temporary typed data handle. |
| 546 Code& code_; // Temporary code handle. | 546 Code& code_; // Temporary code handle. |
| 547 Function& function_; // Temporary function handle. | 547 Function& function_; // Temporary function handle. |
| 548 MegamorphicCache& megamorphic_cache_; // Temporary megamorphic cache handle. | 548 MegamorphicCache& megamorphic_cache_; // Temporary megamorphic cache handle. |
| 549 UnhandledException& error_; // Error handle. | 549 UnhandledException& error_; // Error handle. |
| 550 intptr_t max_vm_isolate_object_id_; | 550 intptr_t max_vm_isolate_object_id_; |
| 551 ZoneGrowableArray<BackRefNode>* backward_references_; | 551 ZoneGrowableArray<BackRefNode>* backward_references_; |
| 552 InstructionsReader* instructions_reader_; | 552 InstructionsReader* instructions_reader_; |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 private: | 1121 private: |
| 1122 SnapshotWriter* writer_; | 1122 SnapshotWriter* writer_; |
| 1123 bool as_references_; | 1123 bool as_references_; |
| 1124 | 1124 |
| 1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1125 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1126 }; | 1126 }; |
| 1127 | 1127 |
| 1128 } // namespace dart | 1128 } // namespace dart |
| 1129 | 1129 |
| 1130 #endif // VM_SNAPSHOT_H_ | 1130 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |