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

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

Issue 9233039: Store resolved library prefix in unresolved class object in order not to repeat (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('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) 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/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 friend class RawInstance; 344 friend class RawInstance;
345 friend RawClass* AllocateFakeClass(); 345 friend RawClass* AllocateFakeClass();
346 friend class SnapshotReader; 346 friend class SnapshotReader;
347 }; 347 };
348 348
349 349
350 class RawUnresolvedClass : public RawObject { 350 class RawUnresolvedClass : public RawObject {
351 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); 351 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass);
352 352
353 RawObject** from() { 353 RawObject** from() {
354 return reinterpret_cast<RawObject**>(&ptr()->qualifier_); 354 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_);
355 } 355 }
356 RawString* qualifier_; // Qualifier for the identifier. 356 RawLibraryPrefix* library_prefix_; // Library prefix qualifier for the ident.
357 RawString* ident_; // Name of the unresolved identifier. 357 RawString* ident_; // Name of the unresolved identifier.
358 RawClass* factory_signature_class_; // Expected type parameters for factory. 358 RawClass* factory_signature_class_; // Expected type parameters for factory.
359 RawObject** to() { 359 RawObject** to() {
360 return reinterpret_cast<RawObject**>(&ptr()->factory_signature_class_); 360 return reinterpret_cast<RawObject**>(&ptr()->factory_signature_class_);
361 } 361 }
362 intptr_t token_index_; 362 intptr_t token_index_;
363 }; 363 };
364 364
365 365
366 class RawAbstractType : public RawObject { 366 class RawAbstractType : public RawObject {
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 intptr_t type_; // Uninitialized, simple or complex. 1038 intptr_t type_; // Uninitialized, simple or complex.
1039 intptr_t flags_; // Represents global/local, case insensitive, multiline. 1039 intptr_t flags_; // Represents global/local, case insensitive, multiline.
1040 1040
1041 // Variable length data follows here. 1041 // Variable length data follows here.
1042 uint8_t data_[0]; 1042 uint8_t data_[0];
1043 }; 1043 };
1044 1044
1045 } // namespace dart 1045 } // namespace dart
1046 1046
1047 #endif // VM_RAW_OBJECT_H_ 1047 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698