| 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 27 matching lines...) Expand all Loading... |
| 38 class RawMixinAppType; | 38 class RawMixinAppType; |
| 39 class RawClass; | 39 class RawClass; |
| 40 class RawContext; | 40 class RawContext; |
| 41 class RawDouble; | 41 class RawDouble; |
| 42 class RawField; | 42 class RawField; |
| 43 class RawClosureData; | 43 class RawClosureData; |
| 44 class RawRedirectionData; | 44 class RawRedirectionData; |
| 45 class RawFunction; | 45 class RawFunction; |
| 46 class RawGrowableObjectArray; | 46 class RawGrowableObjectArray; |
| 47 class RawFloat32x4; | 47 class RawFloat32x4; |
| 48 class RawUint32x4; | 48 class RawInt32x4; |
| 49 class RawImmutableArray; | 49 class RawImmutableArray; |
| 50 class RawLanguageError; | 50 class RawLanguageError; |
| 51 class RawLibrary; | 51 class RawLibrary; |
| 52 class RawLibraryPrefix; | 52 class RawLibraryPrefix; |
| 53 class RawNamespace; | 53 class RawNamespace; |
| 54 class RawLiteralToken; | 54 class RawLiteralToken; |
| 55 class RawMint; | 55 class RawMint; |
| 56 class RawObject; | 56 class RawObject; |
| 57 class RawOneByteString; | 57 class RawOneByteString; |
| 58 class RawPatchClass; | 58 class RawPatchClass; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 RawRedirectionData* NewRedirectionData(); | 264 RawRedirectionData* NewRedirectionData(); |
| 265 RawFunction* NewFunction(); | 265 RawFunction* NewFunction(); |
| 266 RawField* NewField(); | 266 RawField* NewField(); |
| 267 RawLibrary* NewLibrary(); | 267 RawLibrary* NewLibrary(); |
| 268 RawLibraryPrefix* NewLibraryPrefix(); | 268 RawLibraryPrefix* NewLibraryPrefix(); |
| 269 RawNamespace* NewNamespace(); | 269 RawNamespace* NewNamespace(); |
| 270 RawScript* NewScript(); | 270 RawScript* NewScript(); |
| 271 RawLiteralToken* NewLiteralToken(); | 271 RawLiteralToken* NewLiteralToken(); |
| 272 RawGrowableObjectArray* NewGrowableObjectArray(); | 272 RawGrowableObjectArray* NewGrowableObjectArray(); |
| 273 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); | 273 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); |
| 274 RawUint32x4* NewUint32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); | 274 RawInt32x4* NewInt32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); |
| 275 RawApiError* NewApiError(); | 275 RawApiError* NewApiError(); |
| 276 RawLanguageError* NewLanguageError(); | 276 RawLanguageError* NewLanguageError(); |
| 277 RawObject* NewInteger(int64_t value); | 277 RawObject* NewInteger(int64_t value); |
| 278 RawStacktrace* NewStacktrace(); | 278 RawStacktrace* NewStacktrace(); |
| 279 | 279 |
| 280 private: | 280 private: |
| 281 class BackRefNode : public ZoneAllocated { | 281 class BackRefNode : public ZoneAllocated { |
| 282 public: | 282 public: |
| 283 BackRefNode(Object* reference, DeserializeState state) | 283 BackRefNode(Object* reference, DeserializeState state) |
| 284 : reference_(reference), state_(state) {} | 284 : reference_(reference), state_(state) {} |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 private: | 614 private: |
| 615 SnapshotWriter* writer_; | 615 SnapshotWriter* writer_; |
| 616 bool as_references_; | 616 bool as_references_; |
| 617 | 617 |
| 618 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 618 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 619 }; | 619 }; |
| 620 | 620 |
| 621 } // namespace dart | 621 } // namespace dart |
| 622 | 622 |
| 623 #endif // VM_SNAPSHOT_H_ | 623 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |