| 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 RawFloat64x2; |
| 48 class RawInt32x4; | 49 class RawInt32x4; |
| 49 class RawImmutableArray; | 50 class RawImmutableArray; |
| 50 class RawLanguageError; | 51 class RawLanguageError; |
| 51 class RawLibrary; | 52 class RawLibrary; |
| 52 class RawLibraryPrefix; | 53 class RawLibraryPrefix; |
| 53 class RawNamespace; | 54 class RawNamespace; |
| 54 class RawLiteralToken; | 55 class RawLiteralToken; |
| 55 class RawMint; | 56 class RawMint; |
| 56 class RawObject; | 57 class RawObject; |
| 57 class RawOneByteString; | 58 class RawOneByteString; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 RawFunction* NewFunction(); | 269 RawFunction* NewFunction(); |
| 269 RawField* NewField(); | 270 RawField* NewField(); |
| 270 RawLibrary* NewLibrary(); | 271 RawLibrary* NewLibrary(); |
| 271 RawLibraryPrefix* NewLibraryPrefix(); | 272 RawLibraryPrefix* NewLibraryPrefix(); |
| 272 RawNamespace* NewNamespace(); | 273 RawNamespace* NewNamespace(); |
| 273 RawScript* NewScript(); | 274 RawScript* NewScript(); |
| 274 RawLiteralToken* NewLiteralToken(); | 275 RawLiteralToken* NewLiteralToken(); |
| 275 RawGrowableObjectArray* NewGrowableObjectArray(); | 276 RawGrowableObjectArray* NewGrowableObjectArray(); |
| 276 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); | 277 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); |
| 277 RawInt32x4* NewInt32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); | 278 RawInt32x4* NewInt32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); |
| 279 RawFloat64x2* NewFloat64x2(double v0, double v1); |
| 278 RawApiError* NewApiError(); | 280 RawApiError* NewApiError(); |
| 279 RawLanguageError* NewLanguageError(); | 281 RawLanguageError* NewLanguageError(); |
| 280 RawObject* NewInteger(int64_t value); | 282 RawObject* NewInteger(int64_t value); |
| 281 RawStacktrace* NewStacktrace(); | 283 RawStacktrace* NewStacktrace(); |
| 282 | 284 |
| 283 private: | 285 private: |
| 284 class BackRefNode : public ZoneAllocated { | 286 class BackRefNode : public ZoneAllocated { |
| 285 public: | 287 public: |
| 286 BackRefNode(Object* reference, DeserializeState state) | 288 BackRefNode(Object* reference, DeserializeState state) |
| 287 : reference_(reference), state_(state) {} | 289 : reference_(reference), state_(state) {} |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 private: | 620 private: |
| 619 SnapshotWriter* writer_; | 621 SnapshotWriter* writer_; |
| 620 bool as_references_; | 622 bool as_references_; |
| 621 | 623 |
| 622 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 624 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 623 }; | 625 }; |
| 624 | 626 |
| 625 } // namespace dart | 627 } // namespace dart |
| 626 | 628 |
| 627 #endif // VM_SNAPSHOT_H_ | 629 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |