| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index 4d70090ad66de813a7ee693f871fccd01b32ffda..522d013c960e3699b06ebea9a65615f8c20313a0 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -1195,6 +1195,16 @@ class Function : public Object {
|
| RawCode* closure_allocation_stub() const;
|
| void set_closure_allocation_stub(const Code& value) const;
|
|
|
| + RawFunction* method_extractor() const;
|
| + void set_method_extractor(const Function& value) const;
|
| +
|
| + void set_extracted_method_closure(const Function& function) const;
|
| + RawFunction* extracted_method_closure() const;
|
| +
|
| + bool IsMethodExtractor() const {
|
| + return kind() == RawFunction::kMethodExtractor;
|
| + }
|
| +
|
| // Returns true iff an implicit closure function has been created
|
| // for this function.
|
| bool HasImplicitClosureFunction() const {
|
| @@ -1237,6 +1247,7 @@ class Function : public Object {
|
| case RawFunction::kSetterFunction:
|
| case RawFunction::kImplicitGetter:
|
| case RawFunction::kImplicitSetter:
|
| + case RawFunction::kMethodExtractor:
|
| return true;
|
| case RawFunction::kClosureFunction:
|
| case RawFunction::kConstructor:
|
| @@ -1611,6 +1622,11 @@ class ClosureData: public Object {
|
| }
|
| void set_closure_allocation_stub(const Code& value) const;
|
|
|
| + RawFunction* method_extractor() const {
|
| + return raw_ptr()->method_extractor_;
|
| + }
|
| + void set_method_extractor(const Function& value) const;
|
| +
|
| static RawClosureData* New();
|
|
|
| HEAP_OBJECT_IMPLEMENTATION(ClosureData, Object);
|
|
|