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

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

Issue 102053010: - Use canonicalized type of non-parameterized classes when (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | 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/token.h" 10 #include "vm/token.h"
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 RawArray* interfaces_; // Array of AbstractType. 483 RawArray* interfaces_; // Array of AbstractType.
484 RawGrowableObjectArray* direct_subclasses_; // Array of Class. 484 RawGrowableObjectArray* direct_subclasses_; // Array of Class.
485 RawScript* script_; 485 RawScript* script_;
486 RawLibrary* library_; 486 RawLibrary* library_;
487 RawTypeArguments* type_parameters_; // Array of TypeParameter. 487 RawTypeArguments* type_parameters_; // Array of TypeParameter.
488 RawAbstractType* super_type_; 488 RawAbstractType* super_type_;
489 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. 489 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>.
490 RawClass* patch_class_; 490 RawClass* patch_class_;
491 RawFunction* signature_function_; // Associated function for signature class. 491 RawFunction* signature_function_; // Associated function for signature class.
492 RawArray* constants_; // Canonicalized values of this class. 492 RawArray* constants_; // Canonicalized values of this class.
493 RawArray* canonical_types_; // Canonicalized types of this class. 493 RawObject* canonical_types_; // An array of canonicalized types of this class
494 // or the canonical type.
494 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions. 495 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions.
495 RawCode* allocation_stub_; // Stub code for allocation of instances. 496 RawCode* allocation_stub_; // Stub code for allocation of instances.
496 RawObject** to() { 497 RawObject** to() {
497 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); 498 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_);
498 } 499 }
499 500
500 cpp_vtable handle_vtable_; 501 cpp_vtable handle_vtable_;
501 intptr_t id_; // Class Id, also index in the class table. 502 intptr_t id_; // Class Id, also index in the class table.
502 intptr_t token_pos_; 503 intptr_t token_pos_;
503 intptr_t instance_size_in_words_; // Size if fixed len or 0 if variable len. 504 intptr_t instance_size_in_words_; // Size if fixed len or 0 if variable len.
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 // Make sure this is updated when new TypedData types are added. 1748 // Make sure this is updated when new TypedData types are added.
1748 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); 1749 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13);
1749 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); 1750 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14);
1750 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); 1751 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13);
1751 return (kNullCid - kTypedDataInt8ArrayCid); 1752 return (kNullCid - kTypedDataInt8ArrayCid);
1752 } 1753 }
1753 1754
1754 } // namespace dart 1755 } // namespace dart
1755 1756
1756 #endif // VM_RAW_OBJECT_H_ 1757 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698