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

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

Issue 303303002: Address TODOs and remove obsolete ones. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/flow_graph_builder.cc ('k') | runtime/vm/parser.h » ('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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 void set_interfaces(const Array& value) const; 871 void set_interfaces(const Array& value) const;
872 static intptr_t interfaces_offset() { 872 static intptr_t interfaces_offset() {
873 return OFFSET_OF(RawClass, interfaces_); 873 return OFFSET_OF(RawClass, interfaces_);
874 } 874 }
875 875
876 // Returns the list of classes having this class as direct superclass. 876 // Returns the list of classes having this class as direct superclass.
877 RawGrowableObjectArray* direct_subclasses() const { 877 RawGrowableObjectArray* direct_subclasses() const {
878 return raw_ptr()->direct_subclasses_; 878 return raw_ptr()->direct_subclasses_;
879 } 879 }
880 void AddDirectSubclass(const Class& subclass) const; 880 void AddDirectSubclass(const Class& subclass) const;
881 // TODO(regis): Implement RemoveDirectSubclass for class unloading support.
882 881
883 // Check if this class represents the class of null. 882 // Check if this class represents the class of null.
884 bool IsNullClass() const { return id() == kNullCid; } 883 bool IsNullClass() const { return id() == kNullCid; }
885 884
886 // Check if this class represents the 'dynamic' class. 885 // Check if this class represents the 'dynamic' class.
887 bool IsDynamicClass() const { return id() == kDynamicCid; } 886 bool IsDynamicClass() const { return id() == kDynamicCid; }
888 887
889 // Check if this class represents the 'void' class. 888 // Check if this class represents the 'void' class.
890 bool IsVoidClass() const { return id() == kVoidCid; } 889 bool IsVoidClass() const { return id() == kVoidCid; }
891 890
(...skipping 6178 matching lines...) Expand 10 before | Expand all | Expand 10 after
7070 7069
7071 7070
7072 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7071 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7073 intptr_t index) { 7072 intptr_t index) {
7074 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7073 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7075 } 7074 }
7076 7075
7077 } // namespace dart 7076 } // namespace dart
7078 7077
7079 #endif // VM_OBJECT_H_ 7078 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698