Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: runtime/vm/raw_object.h

Issue 10230001: Explicitly initialize Bigint members after uninitialized allocations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: finish a rename Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698