| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 33044)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -4607,27 +4607,6 @@
|
| }
|
|
|
|
|
| -RawCode* Function::closure_allocation_stub() const {
|
| - if (IsClosureFunction()) {
|
| - const Object& obj = Object::Handle(raw_ptr()->data_);
|
| - ASSERT(!obj.IsNull());
|
| - return ClosureData::Cast(obj).closure_allocation_stub();
|
| - }
|
| - return Code::null();
|
| -}
|
| -
|
| -
|
| -void Function::set_closure_allocation_stub(const Code& value) const {
|
| - if (IsClosureFunction()) {
|
| - const Object& obj = Object::Handle(raw_ptr()->data_);
|
| - ASSERT(!obj.IsNull());
|
| - ClosureData::Cast(obj).set_closure_allocation_stub(value);
|
| - return;
|
| - }
|
| - UNREACHABLE();
|
| -}
|
| -
|
| -
|
| RawFunction* Function::extracted_method_closure() const {
|
| ASSERT(kind() == RawFunction::kMethodExtractor);
|
| const Object& obj = Object::Handle(raw_ptr()->data_);
|
| @@ -6128,13 +6107,6 @@
|
| }
|
|
|
|
|
| -void ClosureData::set_closure_allocation_stub(const Code& value) const {
|
| - ASSERT(!value.IsNull());
|
| - ASSERT(raw_ptr()->closure_allocation_stub_ == Code::null());
|
| - StorePointer(&raw_ptr()->closure_allocation_stub_, value.raw());
|
| -}
|
| -
|
| -
|
| void ClosureData::set_parent_function(const Function& value) const {
|
| StorePointer(&raw_ptr()->parent_function_, value.raw());
|
| }
|
|
|