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

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

Issue 2153143002: Rework how enums are implemented and reloaded (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/isolate_reload_test.cc ('k') | runtime/vm/object.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) 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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 RawFunction* LookupConstructorAllowPrivate(const String& name) const; 1187 RawFunction* LookupConstructorAllowPrivate(const String& name) const;
1188 RawFunction* LookupFactory(const String& name) const; 1188 RawFunction* LookupFactory(const String& name) const;
1189 RawFunction* LookupFactoryAllowPrivate(const String& name) const; 1189 RawFunction* LookupFactoryAllowPrivate(const String& name) const;
1190 RawFunction* LookupFunction(const String& name) const; 1190 RawFunction* LookupFunction(const String& name) const;
1191 RawFunction* LookupFunctionAllowPrivate(const String& name) const; 1191 RawFunction* LookupFunctionAllowPrivate(const String& name) const;
1192 RawFunction* LookupGetterFunction(const String& name) const; 1192 RawFunction* LookupGetterFunction(const String& name) const;
1193 RawFunction* LookupSetterFunction(const String& name) const; 1193 RawFunction* LookupSetterFunction(const String& name) const;
1194 RawField* LookupInstanceField(const String& name) const; 1194 RawField* LookupInstanceField(const String& name) const;
1195 RawField* LookupStaticField(const String& name) const; 1195 RawField* LookupStaticField(const String& name) const;
1196 RawField* LookupField(const String& name) const; 1196 RawField* LookupField(const String& name) const;
1197 RawField* LookupFieldAllowPrivate(const String& name) const; 1197 RawField* LookupFieldAllowPrivate(const String& name,
1198 bool instance_only = false) const;
1198 RawField* LookupInstanceFieldAllowPrivate(const String& name) const; 1199 RawField* LookupInstanceFieldAllowPrivate(const String& name) const;
1199 RawField* LookupStaticFieldAllowPrivate(const String& name) const; 1200 RawField* LookupStaticFieldAllowPrivate(const String& name) const;
1200 1201
1201 RawLibraryPrefix* LookupLibraryPrefix(const String& name) const; 1202 RawLibraryPrefix* LookupLibraryPrefix(const String& name) const;
1202 1203
1203 // Returns an instance of Double or Double::null(). 1204 // Returns an instance of Double or Double::null().
1204 // 'index' points to either: 1205 // 'index' points to either:
1205 // - constants_list_ position of found element, or 1206 // - constants_list_ position of found element, or
1206 // - constants_list_ position where new canonical can be inserted. 1207 // - constants_list_ position where new canonical can be inserted.
1207 RawDouble* LookupCanonicalDouble(Zone* zone, 1208 RawDouble* LookupCanonicalDouble(Zone* zone,
(...skipping 7449 matching lines...) Expand 10 before | Expand all | Expand 10 after
8657 8658
8658 inline void TypeArguments::SetHash(intptr_t value) const { 8659 inline void TypeArguments::SetHash(intptr_t value) const {
8659 // This is only safe because we create a new Smi, which does not cause 8660 // This is only safe because we create a new Smi, which does not cause
8660 // heap allocation. 8661 // heap allocation.
8661 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8662 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8662 } 8663 }
8663 8664
8664 } // namespace dart 8665 } // namespace dart
8665 8666
8666 #endif // VM_OBJECT_H_ 8667 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698