Index: runtime/vm/intermediate_language_mips.cc |
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc |
index 248ab411f4c9020253fcf637a7b6a3a13a2cf151..0905a5d049ed88872e40ade5bad098898e935e33 100644 |
--- a/runtime/vm/intermediate_language_mips.cc |
+++ b/runtime/vm/intermediate_language_mips.cc |
@@ -1837,16 +1837,14 @@ class BoxAllocationSlowPath : public SlowPathCode { |
result_(result) { } |
virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
- Isolate* isolate = compiler->isolate(); |
- |
if (Assembler::EmittingComments()) { |
__ Comment("%s slow path allocation of %s", |
instruction_->DebugName(), |
String::Handle(cls_.PrettyName()).ToCString()); |
} |
__ Bind(entry_label()); |
- const Code& stub = |
- Code::Handle(isolate, StubCode::GetAllocationStubForClass(cls_)); |
+ const Code& stub = Code::ZoneHandle( |
+ compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); |
const StubEntry stub_entry(stub); |
LocationSummary* locs = instruction_->locs(); |
@@ -2246,8 +2244,8 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
} |
__ Bind(&slow_path); |
- const Code& stub = Code::Handle(compiler->isolate(), |
- StubCode::AllocateArray_entry()->code()); |
+ const Code& stub = Code::ZoneHandle(compiler->zone(), |
+ StubCode::AllocateArray_entry()->code()); |
compiler->AddStubCallTarget(stub); |
compiler->GenerateCall(token_pos(), |
*StubCode::AllocateArray_entry(), |
@@ -2498,8 +2496,8 @@ class AllocateContextSlowPath : public SlowPathCode { |
compiler->SaveLiveRegisters(locs); |
__ LoadImmediate(T1, instruction_->num_context_variables()); |
- const Code& stub = Code::Handle(compiler->isolate(), |
- StubCode::AllocateContext_entry()->code()); |
+ const Code& stub = Code::ZoneHandle( |
+ compiler->zone(), StubCode::AllocateContext_entry()->code()); |
compiler->AddStubCallTarget(stub); |
compiler->GenerateCall(instruction_->token_pos(), |
*StubCode::AllocateContext_entry(), |
@@ -5545,9 +5543,8 @@ LocationSummary* AllocateObjectInstr::MakeLocationSummary(Zone* zone, |
void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
__ Comment("AllocateObjectInstr"); |
- Isolate* isolate = compiler->isolate(); |
- const Code& stub = Code::Handle(isolate, |
- StubCode::GetAllocationStubForClass(cls())); |
+ const Code& stub = Code::ZoneHandle( |
+ compiler->zone(), StubCode::GetAllocationStubForClass(cls())); |
const StubEntry stub_entry(stub); |
compiler->GenerateCall(token_pos(), |
stub_entry, |