Chromium Code Reviews| Index: runtime/vm/object.h |
| =================================================================== |
| --- runtime/vm/object.h (revision 44266) |
| +++ runtime/vm/object.h (working copy) |
| @@ -2135,6 +2135,7 @@ |
| bool IsImplicitStaticClosureFunction() const { |
| return is_static() && IsImplicitClosureFunction(); |
| } |
| + bool static IsImplicitStaticClosureFunction(RawFunction* func); |
| // Returns true if this function represents an implicit instance closure |
| // function. |
| @@ -2377,6 +2378,7 @@ |
| FINAL_HEAP_OBJECT_IMPLEMENTATION(Function, Object); |
| friend class Class; |
| + friend class SnapshotWriter; |
| friend class Parser; // For set_eval_script. |
| // RawFunction::VisitFunctionPointers accesses the private constructor of |
| // Function. |
| @@ -7335,8 +7337,13 @@ |
| // Indicates this class cannot be extended by dart code. |
| return -kWordSize; |
| } |
| + static RawFunction* function(RawObject* obj) { |
|
regis
2015/03/05 23:35:19
Are you overloading function()? There is already a
siva
2015/03/06 00:30:55
True, let me rename this to GetFunction
|
| + return *(reinterpret_cast<RawFunction**>( |
| + reinterpret_cast<intptr_t>(obj->ptr()) + function_offset())); |
| + } |
| friend class Class; |
| + friend class SnapshotWriter; |
| }; |