| 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_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
| 6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 intptr_t allocated_length_; | 921 intptr_t allocated_length_; |
| 922 | 922 |
| 923 // Operational length in chunks of the bigint object, clamping can | 923 // Operational length in chunks of the bigint object, clamping can |
| 924 // cause this length to be reduced. If the signed_length_ is | 924 // cause this length to be reduced. If the signed_length_ is |
| 925 // negative then the number is negative. | 925 // negative then the number is negative. |
| 926 intptr_t signed_length_; | 926 intptr_t signed_length_; |
| 927 | 927 |
| 928 // A sequence of Chunks (typedef in Bignum) representing bignum digits. | 928 // A sequence of Chunks (typedef in Bignum) representing bignum digits. |
| 929 // Bignum::Chunk chunks_[Utils::Abs(signed_length_)]; | 929 // Bignum::Chunk chunks_[Utils::Abs(signed_length_)]; |
| 930 uint8_t data_[0]; | 930 uint8_t data_[0]; |
| 931 |
| 932 friend class SnapshotReader; |
| 931 }; | 933 }; |
| 932 | 934 |
| 933 | 935 |
| 934 class RawDouble : public RawNumber { | 936 class RawDouble : public RawNumber { |
| 935 RAW_HEAP_OBJECT_IMPLEMENTATION(Double); | 937 RAW_HEAP_OBJECT_IMPLEMENTATION(Double); |
| 936 | 938 |
| 937 double value_; | 939 double value_; |
| 938 | 940 |
| 939 friend class SnapshotReader; | 941 friend class SnapshotReader; |
| 940 }; | 942 }; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 intptr_t type_; // Uninitialized, simple or complex. | 1187 intptr_t type_; // Uninitialized, simple or complex. |
| 1186 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1188 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1187 | 1189 |
| 1188 // Variable length data follows here. | 1190 // Variable length data follows here. |
| 1189 uint8_t data_[0]; | 1191 uint8_t data_[0]; |
| 1190 }; | 1192 }; |
| 1191 | 1193 |
| 1192 } // namespace dart | 1194 } // namespace dart |
| 1193 | 1195 |
| 1194 #endif // VM_RAW_OBJECT_H_ | 1196 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |