| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class RawExceptionHandlers; | 50 class RawExceptionHandlers; |
| 51 class RawField; | 51 class RawField; |
| 52 class RawFloat32x4; | 52 class RawFloat32x4; |
| 53 class RawFloat64x2; | 53 class RawFloat64x2; |
| 54 class RawFunction; | 54 class RawFunction; |
| 55 class RawGrowableObjectArray; | 55 class RawGrowableObjectArray; |
| 56 class RawICData; | 56 class RawICData; |
| 57 class RawImmutableArray; | 57 class RawImmutableArray; |
| 58 class RawInstructions; | 58 class RawInstructions; |
| 59 class RawInt32x4; | 59 class RawInt32x4; |
| 60 class RawJSRegExp; | 60 class RawRegExp; |
| 61 class RawLanguageError; | 61 class RawLanguageError; |
| 62 class RawLibrary; | 62 class RawLibrary; |
| 63 class RawLibraryPrefix; | 63 class RawLibraryPrefix; |
| 64 class RawLinkedHashMap; | 64 class RawLinkedHashMap; |
| 65 class RawLiteralToken; | 65 class RawLiteralToken; |
| 66 class RawLocalVarDescriptors; | 66 class RawLocalVarDescriptors; |
| 67 class RawMegamorphicCache; | 67 class RawMegamorphicCache; |
| 68 class RawMint; | 68 class RawMint; |
| 69 class RawMixinAppType; | 69 class RawMixinAppType; |
| 70 class RawBigint; | 70 class RawBigint; |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 RawGrowableObjectArray* NewGrowableObjectArray(); | 474 RawGrowableObjectArray* NewGrowableObjectArray(); |
| 475 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); | 475 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); |
| 476 RawInt32x4* NewInt32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); | 476 RawInt32x4* NewInt32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); |
| 477 RawFloat64x2* NewFloat64x2(double v0, double v1); | 477 RawFloat64x2* NewFloat64x2(double v0, double v1); |
| 478 RawApiError* NewApiError(); | 478 RawApiError* NewApiError(); |
| 479 RawLanguageError* NewLanguageError(); | 479 RawLanguageError* NewLanguageError(); |
| 480 RawUnhandledException* NewUnhandledException(); | 480 RawUnhandledException* NewUnhandledException(); |
| 481 RawObject* NewInteger(int64_t value); | 481 RawObject* NewInteger(int64_t value); |
| 482 RawStacktrace* NewStacktrace(); | 482 RawStacktrace* NewStacktrace(); |
| 483 RawWeakProperty* NewWeakProperty(); | 483 RawWeakProperty* NewWeakProperty(); |
| 484 RawJSRegExp* NewJSRegExp(); | 484 RawRegExp* NewRegExp(); |
| 485 | 485 |
| 486 RawInstructions* GetInstructionsAt(int32_t offset, uword expected_tags) { | 486 RawInstructions* GetInstructionsAt(int32_t offset, uword expected_tags) { |
| 487 return instructions_reader_->GetInstructionsAt(offset, expected_tags); | 487 return instructions_reader_->GetInstructionsAt(offset, expected_tags); |
| 488 } | 488 } |
| 489 | 489 |
| 490 RawObject* GetObjectAt(int32_t offset) { | 490 RawObject* GetObjectAt(int32_t offset) { |
| 491 return instructions_reader_->GetObjectAt(offset); | 491 return instructions_reader_->GetObjectAt(offset); |
| 492 } | 492 } |
| 493 | 493 |
| 494 const uint8_t* instructions_buffer_; | 494 const uint8_t* instructions_buffer_; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 friend class Code; | 603 friend class Code; |
| 604 friend class Context; | 604 friend class Context; |
| 605 friend class ContextScope; | 605 friend class ContextScope; |
| 606 friend class ExceptionHandlers; | 606 friend class ExceptionHandlers; |
| 607 friend class Field; | 607 friend class Field; |
| 608 friend class Function; | 608 friend class Function; |
| 609 friend class GrowableObjectArray; | 609 friend class GrowableObjectArray; |
| 610 friend class ICData; | 610 friend class ICData; |
| 611 friend class ImmutableArray; | 611 friend class ImmutableArray; |
| 612 friend class Instructions; | 612 friend class Instructions; |
| 613 friend class JSRegExp; | 613 friend class RegExp; |
| 614 friend class LanguageError; | 614 friend class LanguageError; |
| 615 friend class Library; | 615 friend class Library; |
| 616 friend class LibraryPrefix; | 616 friend class LibraryPrefix; |
| 617 friend class LinkedHashMap; | 617 friend class LinkedHashMap; |
| 618 friend class LiteralToken; | 618 friend class LiteralToken; |
| 619 friend class LocalVarDescriptors; | 619 friend class LocalVarDescriptors; |
| 620 friend class MegamorphicCache; | 620 friend class MegamorphicCache; |
| 621 friend class MirrorReference; | 621 friend class MirrorReference; |
| 622 friend class MixinAppType; | 622 friend class MixinAppType; |
| 623 friend class Namespace; | 623 friend class Namespace; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 friend class RawArray; | 1048 friend class RawArray; |
| 1049 friend class RawClass; | 1049 friend class RawClass; |
| 1050 friend class RawClosureData; | 1050 friend class RawClosureData; |
| 1051 friend class RawContextScope; | 1051 friend class RawContextScope; |
| 1052 friend class RawExceptionHandlers; | 1052 friend class RawExceptionHandlers; |
| 1053 friend class RawField; | 1053 friend class RawField; |
| 1054 friend class RawFunction; | 1054 friend class RawFunction; |
| 1055 friend class RawGrowableObjectArray; | 1055 friend class RawGrowableObjectArray; |
| 1056 friend class RawImmutableArray; | 1056 friend class RawImmutableArray; |
| 1057 friend class RawInstructions; | 1057 friend class RawInstructions; |
| 1058 friend class RawJSRegExp; | 1058 friend class RawRegExp; |
| 1059 friend class RawLibrary; | 1059 friend class RawLibrary; |
| 1060 friend class RawLinkedHashMap; | 1060 friend class RawLinkedHashMap; |
| 1061 friend class RawLiteralToken; | 1061 friend class RawLiteralToken; |
| 1062 friend class RawLocalVarDescriptors; | 1062 friend class RawLocalVarDescriptors; |
| 1063 friend class RawMirrorReference; | 1063 friend class RawMirrorReference; |
| 1064 friend class RawObjectPool; | 1064 friend class RawObjectPool; |
| 1065 friend class RawReceivePort; | 1065 friend class RawReceivePort; |
| 1066 friend class RawScript; | 1066 friend class RawScript; |
| 1067 friend class RawStacktrace; | 1067 friend class RawStacktrace; |
| 1068 friend class RawSubtypeTestCache; | 1068 friend class RawSubtypeTestCache; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 private: | 1193 private: |
| 1194 SnapshotWriter* writer_; | 1194 SnapshotWriter* writer_; |
| 1195 bool as_references_; | 1195 bool as_references_; |
| 1196 | 1196 |
| 1197 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 1197 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
| 1198 }; | 1198 }; |
| 1199 | 1199 |
| 1200 } // namespace dart | 1200 } // namespace dart |
| 1201 | 1201 |
| 1202 #endif // VM_SNAPSHOT_H_ | 1202 #endif // VM_SNAPSHOT_H_ |
| OLD | NEW |