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

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

Issue 1407533005: Eliminate RawClass::patch_class_ field (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « runtime/vm/parser.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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 RawArray* fields_; 651 RawArray* fields_;
652 RawArray* offset_in_words_to_field_; 652 RawArray* offset_in_words_to_field_;
653 RawGrowableObjectArray* closure_functions_; // Local functions and literals. 653 RawGrowableObjectArray* closure_functions_; // Local functions and literals.
654 RawArray* interfaces_; // Array of AbstractType. 654 RawArray* interfaces_; // Array of AbstractType.
655 RawGrowableObjectArray* direct_subclasses_; // Array of Class. 655 RawGrowableObjectArray* direct_subclasses_; // Array of Class.
656 RawScript* script_; 656 RawScript* script_;
657 RawLibrary* library_; 657 RawLibrary* library_;
658 RawTypeArguments* type_parameters_; // Array of TypeParameter. 658 RawTypeArguments* type_parameters_; // Array of TypeParameter.
659 RawAbstractType* super_type_; 659 RawAbstractType* super_type_;
660 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>. 660 RawType* mixin_; // Generic mixin type, e.g. M<T>, not M<int>.
661 RawClass* patch_class_;
662 RawFunction* signature_function_; // Associated function for signature class. 661 RawFunction* signature_function_; // Associated function for signature class.
663 RawArray* constants_; // Canonicalized values of this class. 662 RawArray* constants_; // Canonicalized values of this class.
664 RawObject* canonical_types_; // An array of canonicalized types of this class 663 RawObject* canonical_types_; // An array of canonicalized types of this class
665 // or the canonical type. 664 // or the canonical type.
666 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions. 665 RawArray* invocation_dispatcher_cache_; // Cache for dispatcher functions.
667 RawArray* cha_codes_; // CHA optimized codes. 666 RawArray* cha_codes_; // CHA optimized codes.
668 RawCode* allocation_stub_; // Stub code for allocation of instances. 667 RawCode* allocation_stub_; // Stub code for allocation of instances.
669 RawObject** to() { 668 RawObject** to() {
670 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_); 669 return reinterpret_cast<RawObject**>(&ptr()->allocation_stub_);
671 } 670 }
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); 968 RAW_HEAP_OBJECT_IMPLEMENTATION(Library);
970 969
971 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 970 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
972 RawString* name_; 971 RawString* name_;
973 RawString* url_; 972 RawString* url_;
974 RawScript* script_; 973 RawScript* script_;
975 RawString* private_key_; 974 RawString* private_key_;
976 RawArray* dictionary_; // Top-level names in this library. 975 RawArray* dictionary_; // Top-level names in this library.
977 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. 976 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc.
978 RawArray* anonymous_classes_; // Classes containing top-level elements. 977 RawArray* anonymous_classes_; // Classes containing top-level elements.
978 RawGrowableObjectArray* patch_classes_;
979 RawArray* imports_; // List of Namespaces imported without prefix. 979 RawArray* imports_; // List of Namespaces imported without prefix.
980 RawArray* exports_; // List of re-exported Namespaces. 980 RawArray* exports_; // List of re-exported Namespaces.
981 RawInstance* load_error_; // Error iff load_state_ == kLoadError. 981 RawInstance* load_error_; // Error iff load_state_ == kLoadError.
982 RawObject** to_snapshot() { 982 RawObject** to_snapshot() {
983 return reinterpret_cast<RawObject**>(&ptr()->load_error_); 983 return reinterpret_cast<RawObject**>(&ptr()->load_error_);
984 } 984 }
985 RawArray* resolved_names_; // Cache of resolved names in library scope. 985 RawArray* resolved_names_; // Cache of resolved names in library scope.
986 RawArray* loaded_scripts_; // Array of scripts loaded in this library. 986 RawArray* loaded_scripts_; // Array of scripts loaded in this library.
987 RawObject** to() { 987 RawObject** to() {
988 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); 988 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2265 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2266 kTypedDataInt8ArrayViewCid + 15); 2266 kTypedDataInt8ArrayViewCid + 15);
2267 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2267 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2268 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2268 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2269 return (kNullCid - kTypedDataInt8ArrayCid); 2269 return (kNullCid - kTypedDataInt8ArrayCid);
2270 } 2270 }
2271 2271
2272 } // namespace dart 2272 } // namespace dart
2273 2273
2274 #endif // VM_RAW_OBJECT_H_ 2274 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698