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 24 matching lines...) Expand all Loading... |
35 class RawArray; | 35 class RawArray; |
36 class RawBigint; | 36 class RawBigint; |
37 class RawClass; | 37 class RawClass; |
38 class RawContext; | 38 class RawContext; |
39 class RawDouble; | 39 class RawDouble; |
40 class RawField; | 40 class RawField; |
41 class RawClosureData; | 41 class RawClosureData; |
42 class RawRedirectionData; | 42 class RawRedirectionData; |
43 class RawFunction; | 43 class RawFunction; |
44 class RawGrowableObjectArray; | 44 class RawGrowableObjectArray; |
| 45 class RawFloat32x4; |
| 46 class RawUint32x4; |
45 class RawImmutableArray; | 47 class RawImmutableArray; |
46 class RawLanguageError; | 48 class RawLanguageError; |
47 class RawLibrary; | 49 class RawLibrary; |
48 class RawLibraryPrefix; | 50 class RawLibraryPrefix; |
49 class RawNamespace; | 51 class RawNamespace; |
50 class RawLiteralToken; | 52 class RawLiteralToken; |
51 class RawMint; | 53 class RawMint; |
52 class RawObject; | 54 class RawObject; |
53 class RawOneByteString; | 55 class RawOneByteString; |
54 class RawPatchClass; | 56 class RawPatchClass; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 RawClosureData* NewClosureData(); | 258 RawClosureData* NewClosureData(); |
257 RawRedirectionData* NewRedirectionData(); | 259 RawRedirectionData* NewRedirectionData(); |
258 RawFunction* NewFunction(); | 260 RawFunction* NewFunction(); |
259 RawField* NewField(); | 261 RawField* NewField(); |
260 RawLibrary* NewLibrary(); | 262 RawLibrary* NewLibrary(); |
261 RawLibraryPrefix* NewLibraryPrefix(); | 263 RawLibraryPrefix* NewLibraryPrefix(); |
262 RawNamespace* NewNamespace(); | 264 RawNamespace* NewNamespace(); |
263 RawScript* NewScript(); | 265 RawScript* NewScript(); |
264 RawLiteralToken* NewLiteralToken(); | 266 RawLiteralToken* NewLiteralToken(); |
265 RawGrowableObjectArray* NewGrowableObjectArray(); | 267 RawGrowableObjectArray* NewGrowableObjectArray(); |
| 268 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); |
| 269 RawUint32x4* NewUint32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); |
266 RawApiError* NewApiError(); | 270 RawApiError* NewApiError(); |
267 RawLanguageError* NewLanguageError(); | 271 RawLanguageError* NewLanguageError(); |
268 RawObject* NewInteger(int64_t value); | 272 RawObject* NewInteger(int64_t value); |
269 | 273 |
270 private: | 274 private: |
271 class BackRefNode : public ZoneAllocated { | 275 class BackRefNode : public ZoneAllocated { |
272 public: | 276 public: |
273 BackRefNode(Object* reference, DeserializeState state) | 277 BackRefNode(Object* reference, DeserializeState state) |
274 : reference_(reference), state_(state) {} | 278 : reference_(reference), state_(state) {} |
275 Object* reference() const { return reference_; } | 279 Object* reference() const { return reference_; } |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 private: | 595 private: |
592 SnapshotWriter* writer_; | 596 SnapshotWriter* writer_; |
593 bool as_references_; | 597 bool as_references_; |
594 | 598 |
595 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 599 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
596 }; | 600 }; |
597 | 601 |
598 } // namespace dart | 602 } // namespace dart |
599 | 603 |
600 #endif // VM_SNAPSHOT_H_ | 604 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |