Chromium Code Reviews| Index: runtime/vm/object.h |
| =================================================================== |
| --- runtime/vm/object.h (revision 11192) |
| +++ runtime/vm/object.h (working copy) |
| @@ -875,13 +875,13 @@ |
| bool IsDoubleInterface() const; |
| // Check if this type represents the 'num' interface. |
|
regis
2012/08/23 03:53:10
s/interface/type/
hausner
2012/08/23 18:34:10
Done.
|
| - bool IsNumberInterface() const; |
| + bool IsNumberType() const; |
| // Check if this type represents the 'String' interface. |
| bool IsStringInterface() const; |
| - // Check if this type represents the 'Function' interface. |
| - bool IsFunctionInterface() const; |
| + // Check if this type represents the 'Function' type. |
| + bool IsFunctionType() const; |
| // Check if this type represents the 'List' interface. |
| bool IsListInterface() const; |
| @@ -993,13 +993,13 @@ |
| static RawType* DoubleInterface(); |
| // The 'num' interface type. |
| - static RawType* NumberInterface(); |
| + static RawType* Number(); |
| // The 'String' interface type. |
| static RawType* StringInterface(); |
| // The 'Function' interface type. |
| - static RawType* FunctionInterface(); |
| + static RawType* Function(); |
| // The 'List' interface type. |
| static RawType* ListInterface(); |
| @@ -3142,6 +3142,7 @@ |
| return false; |
| } |
| OBJECT_IMPLEMENTATION(Number, Instance); |
| + friend class Class; |
| }; |
| @@ -5227,6 +5228,15 @@ |
| }; |
| +// DartFunction represents the abstract Dart class 'Function'. |
| +class DartFunction : public Instance { |
| + private: |
| + HEAP_OBJECT_IMPLEMENTATION(DartFunction, Instance); |
| + friend class Class; |
| + friend class Instance; |
| +}; |
| + |
| + |
| class Closure : public Instance { |
| public: |
| RawFunction* function() const { return raw_ptr()->function_; } |