| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 40156)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -3617,6 +3617,15 @@
|
| }
|
|
|
|
|
| +void Class::DisableAllocationStub() const {
|
| + const Code& alloc_stub = Code::Handle(allocation_stub());
|
| + if (!alloc_stub.IsNull()) {
|
| + CodePatcher::PatchEntry(alloc_stub);
|
| + StorePointer(&raw_ptr()->allocation_stub_, Code::null());
|
| + }
|
| +}
|
| +
|
| +
|
| bool Class::IsFunctionClass() const {
|
| return raw() == Type::Handle(Type::Function()).type_class();
|
| }
|
|
|