| 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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 889 |
| 890 int64_t value_; | 890 int64_t value_; |
| 891 | 891 |
| 892 friend class SnapshotReader; | 892 friend class SnapshotReader; |
| 893 }; | 893 }; |
| 894 | 894 |
| 895 | 895 |
| 896 class RawBigint : public RawInteger { | 896 class RawBigint : public RawInteger { |
| 897 RAW_HEAP_OBJECT_IMPLEMENTATION(Bigint); | 897 RAW_HEAP_OBJECT_IMPLEMENTATION(Bigint); |
| 898 | 898 |
| 899 // Actual length at the time of allocation (later we may clamp the | 899 // Actual length in chunks at the time of allocation (later we may |
| 900 // operational length but we need to maintain a consistent object | 900 // clamp the operational length but we need to maintain a consistent |
| 901 // length so that the object can be traversed during GC). | 901 // object length so that the object can be traversed during GC). |
| 902 intptr_t allocated_length_; | 902 intptr_t allocated_length_; |
| 903 | 903 |
| 904 // Operation length of the bigint object, clamping can cause this length | 904 // Operational length in chunks of the bigint object, clamping can |
| 905 // to be reduced. If the signed_length_ is negative then the number | 905 // cause this length to be reduced. If the signed_length_ is |
| 906 // is negative. | 906 // negative then the number is negative. |
| 907 intptr_t signed_length_; | 907 intptr_t signed_length_; |
| 908 | 908 |
| 909 // A sequence of Chunks (typedef in Bignum) representing bignum digits. | 909 // A sequence of Chunks (typedef in Bignum) representing bignum digits. |
| 910 // Bignum::Chunk chunks_[Utils::Abs(signed_length_)]; | 910 // Bignum::Chunk chunks_[Utils::Abs(signed_length_)]; |
| 911 uint8_t data_[0]; | 911 uint8_t data_[0]; |
| 912 }; | 912 }; |
| 913 | 913 |
| 914 | 914 |
| 915 class RawDouble : public RawNumber { | 915 class RawDouble : public RawNumber { |
| 916 RAW_HEAP_OBJECT_IMPLEMENTATION(Double); | 916 RAW_HEAP_OBJECT_IMPLEMENTATION(Double); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 intptr_t type_; // Uninitialized, simple or complex. | 1164 intptr_t type_; // Uninitialized, simple or complex. |
| 1165 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1165 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1166 | 1166 |
| 1167 // Variable length data follows here. | 1167 // Variable length data follows here. |
| 1168 uint8_t data_[0]; | 1168 uint8_t data_[0]; |
| 1169 }; | 1169 }; |
| 1170 | 1170 |
| 1171 } // namespace dart | 1171 } // namespace dart |
| 1172 | 1172 |
| 1173 #endif // VM_RAW_OBJECT_H_ | 1173 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |