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* GetFunction(RawObject* obj) { |
+ return *(reinterpret_cast<RawFunction**>( |
+ reinterpret_cast<intptr_t>(obj->ptr()) + function_offset())); |
+ } |
friend class Class; |
+ friend class SnapshotWriter; |
}; |