| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 // Add a patch record for the object so that objects whose canonicalization | 440 // Add a patch record for the object so that objects whose canonicalization |
| 441 // is deferred can be back patched after they are canonicalized. | 441 // is deferred can be back patched after they are canonicalized. |
| 442 void AddPatchRecord(intptr_t object_id, | 442 void AddPatchRecord(intptr_t object_id, |
| 443 intptr_t patch_object_id, | 443 intptr_t patch_object_id, |
| 444 intptr_t patch_offset); | 444 intptr_t patch_offset); |
| 445 | 445 |
| 446 // Process all the deferred canonicalization entries and patch all references. | 446 // Process all the deferred canonicalization entries and patch all references. |
| 447 void ProcessDeferredCanonicalizations(); | 447 void ProcessDeferredCanonicalizations(); |
| 448 | 448 |
| 449 // Update subclasses array and is implemented bit for interfaces/superclass in |
| 450 // the core snapshot. |
| 451 void FixSubclassesAndImplementors(); |
| 452 |
| 449 // Decode class id from the header field. | 453 // Decode class id from the header field. |
| 450 intptr_t LookupInternalClass(intptr_t class_header); | 454 intptr_t LookupInternalClass(intptr_t class_header); |
| 451 | 455 |
| 452 void ArrayReadFrom(intptr_t object_id, | 456 void ArrayReadFrom(intptr_t object_id, |
| 453 const Array& result, | 457 const Array& result, |
| 454 intptr_t len, | 458 intptr_t len, |
| 455 intptr_t tags); | 459 intptr_t tags); |
| 456 | 460 |
| 457 intptr_t NextAvailableObjectId() const; | 461 intptr_t NextAvailableObjectId() const; |
| 458 | 462 |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 private: | 1014 private: |
| 1011 SnapshotWriter* writer_; | 1015 SnapshotWriter* writer_; |
| 1012 bool as_references_; | 1016 bool as_references_; |
| 1013 | 1017 |
| 1014 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1018 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1015 }; | 1019 }; |
| 1016 | 1020 |
| 1017 } // namespace dart | 1021 } // namespace dart |
| 1018 | 1022 |
| 1019 #endif // RUNTIME_VM_SNAPSHOT_H_ | 1023 #endif // RUNTIME_VM_SNAPSHOT_H_ |
| OLD | NEW |