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

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

Issue 8509031: Revert r1380 that is breaking frog. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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/dart_api_impl.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) 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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/dart.h" 9 #include "vm/dart.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 return exception_handlers_class_; 238 return exception_handlers_class_;
239 } 239 }
240 static RawClass* context_class() { return context_class_; } 240 static RawClass* context_class() { return context_class_; }
241 static RawClass* context_scope_class() { return context_scope_class_; } 241 static RawClass* context_scope_class() { return context_scope_class_; }
242 static RawClass* api_failure_class() { return api_failure_class_; } 242 static RawClass* api_failure_class() { return api_failure_class_; }
243 243
244 static int GetSingletonClassIndex(const RawClass* raw_class); 244 static int GetSingletonClassIndex(const RawClass* raw_class);
245 static RawClass* GetSingletonClass(int index); 245 static RawClass* GetSingletonClass(int index);
246 static const char* GetSingletonClassName(int index); 246 static const char* GetSingletonClassName(int index);
247 247
248 static RawClass* CreateAndRegisterCoreInterface(const char* cname,
249 const Script& script,
250 const Library& core_lib);
251 static void RegisterCoreImplClass(const Class& cls,
252 const char* cname,
253 const Script& impl_script,
254 const Library& core_impl_lib);
255
256 static void Init(Isolate* isolate); 248 static void Init(Isolate* isolate);
257 static void InitFromSnapshot(Isolate* isolate); 249 static void InitFromSnapshot(Isolate* isolate);
258 static void InitOnce(); 250 static void InitOnce();
259 251
260 static intptr_t InstanceSize() { 252 static intptr_t InstanceSize() {
261 return RoundedAllocationSize(sizeof(RawObject)); 253 return RoundedAllocationSize(sizeof(RawObject));
262 } 254 }
263 255
264 static const ObjectKind kInstanceKind = kObject; 256 static const ObjectKind kInstanceKind = kObject;
265 257
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 734
743 // Check if this type represents the 'String' interface. 735 // Check if this type represents the 'String' interface.
744 bool IsStringInterface() const; 736 bool IsStringInterface() const;
745 737
746 // Check if this type represents the 'Function' interface. 738 // Check if this type represents the 'Function' interface.
747 bool IsFunctionInterface() const; 739 bool IsFunctionInterface() const;
748 740
749 // Check if this type represents the 'List' interface. 741 // Check if this type represents the 'List' interface.
750 bool IsListInterface() const; 742 bool IsListInterface() const;
751 743
752 // Check if this type represents a signature type.
753 bool IsSignatureType() const;
754
755 // Check if this type is an interface type. 744 // Check if this type is an interface type.
756 bool IsInterfaceType() const { 745 bool IsInterfaceType() const {
757 if (!HasResolvedTypeClass()) { 746 if (!HasResolvedTypeClass()) {
758 return false; 747 return false;
759 } 748 }
760 const Class& cls = Class::Handle(type_class()); 749 const Class& cls = Class::Handle(type_class());
761 return !cls.IsNull() && cls.is_interface(); 750 return !cls.IsNull() && cls.is_interface();
762 } 751 }
763 752
764 // Check the "more specific than" relationship. 753 // Check the "more specific than" relationship.
(...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after
3011 } 3000 }
3012 3001
3013 3002
3014 void Context::SetAt(intptr_t index, const Instance& value) const { 3003 void Context::SetAt(intptr_t index, const Instance& value) const {
3015 StorePointer(InstanceAddr(index), value.raw()); 3004 StorePointer(InstanceAddr(index), value.raw());
3016 } 3005 }
3017 3006
3018 } // namespace dart 3007 } // namespace dart
3019 3008
3020 #endif // VM_OBJECT_H_ 3009 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698