Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index 1db4ad1b6c238ee93b4709cd9f2cc1af28d69990..cc2ebcd45f340474062c864a79543ba5ee6adc5b 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -2393,6 +2393,9 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
return; |
} |
} |
+ const Code& stub = Code::Handle(compiler->isolate(), |
+ StubCode::AllocateArray_entry()->code()); |
+ compiler->AddStubCallTarget(stub); |
compiler->GenerateCall(token_pos(), |
*StubCode::AllocateArray_entry(), |
RawPcDescriptors::kOther, |
@@ -2680,6 +2683,9 @@ class AllocateContextSlowPath : public SlowPathCode { |
compiler->SaveLiveRegisters(locs); |
__ LoadImmediate(R1, instruction_->num_context_variables()); |
+ const Code& stub = Code::Handle(compiler->isolate(), |
+ StubCode::AllocateContext_entry()->code()); |
+ compiler->AddStubCallTarget(stub); |
compiler->GenerateCall(instruction_->token_pos(), |
*StubCode::AllocateContext_entry(), |
RawPcDescriptors::kOther, |