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

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

Issue 8773026: Canonicalize TypeArguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 }; 330 };
331 331
332 332
333 class RawTypeArguments : public RawAbstractTypeArguments { 333 class RawTypeArguments : public RawAbstractTypeArguments {
334 private: 334 private:
335 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); 335 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments);
336 336
337 RawObject** from() { 337 RawObject** from() {
338 return reinterpret_cast<RawObject**>(&ptr()->length_); 338 return reinterpret_cast<RawObject**>(&ptr()->length_);
339 } 339 }
340 bool is_canonical_;
340 RawSmi* length_; 341 RawSmi* length_;
341 342
342 // Variable length data follows here. 343 // Variable length data follows here.
343 RawAbstractType* types_[0]; 344 RawAbstractType* types_[0];
344 RawObject** to(intptr_t length) { 345 RawObject** to(intptr_t length) {
345 return reinterpret_cast<RawObject**>(&ptr()->types_[length - 1]); 346 return reinterpret_cast<RawObject**>(&ptr()->types_[length - 1]);
346 } 347 }
347 }; 348 };
348 349
349 350
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 intptr_t type_; // Uninitialized, simple or complex. 856 intptr_t type_; // Uninitialized, simple or complex.
856 intptr_t flags_; // Represents global/local, case insensitive, multiline. 857 intptr_t flags_; // Represents global/local, case insensitive, multiline.
857 858
858 // Variable length data follows here. 859 // Variable length data follows here.
859 uint8_t data_[0]; 860 uint8_t data_[0];
860 }; 861 };
861 862
862 } // namespace dart 863 } // namespace dart
863 864
864 #endif // VM_RAW_OBJECT_H_ 865 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698