| Index: runtime/vm/stub_code.cc
|
| diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
|
| index c42c21a1e1fed204289fc680d55b5b4e3bcd219f..7c8fe78127aa21da377f15a4d349287fe576d982 100644
|
| --- a/runtime/vm/stub_code.cc
|
| +++ b/runtime/vm/stub_code.cc
|
| @@ -95,13 +95,13 @@ bool StubCode::InJumpToExceptionHandlerStub(uword pc) {
|
|
|
| RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
|
| Thread* thread = Thread::Current();
|
| - Isolate* isolate = thread->isolate();
|
| - const Error& error = Error::Handle(isolate, cls.EnsureIsFinalized(thread));
|
| + Zone* zone = thread->zone();
|
| + const Error& error = Error::Handle(zone, cls.EnsureIsFinalized(thread));
|
| ASSERT(error.IsNull());
|
| if (cls.id() == kArrayCid) {
|
| return AllocateArray_entry()->code();
|
| }
|
| - Code& stub = Code::Handle(isolate, cls.allocation_stub());
|
| + Code& stub = Code::Handle(zone, cls.allocation_stub());
|
| if (stub.IsNull()) {
|
| Assembler assembler;
|
| const char* name = cls.ToCString();
|
|
|