Index: runtime/vm/intermediate_language_x64.cc |
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc |
index 84afa6fe150a94d6e6dd77e19fa61203df4d6e92..927c699aa8398986e4c776b25634c9202139025d 100644 |
--- a/runtime/vm/intermediate_language_x64.cc |
+++ b/runtime/vm/intermediate_language_x64.cc |
@@ -2127,6 +2127,9 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
} |
__ Bind(&slow_path); |
+ const Code& stub = Code::Handle(compiler->isolate(), |
+ StubCode::AllocateArray_entry()->code()); |
+ compiler->AddStubCallTarget(stub); |
compiler->GenerateCall(token_pos(), |
*StubCode::AllocateArray_entry(), |
RawPcDescriptors::kOther, |
@@ -2397,6 +2400,9 @@ class AllocateContextSlowPath : public SlowPathCode { |
compiler->SaveLiveRegisters(locs); |
__ LoadImmediate(R10, Immediate(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, |