| Index: runtime/vm/intermediate_language_arm64.cc
|
| diff --git a/runtime/vm/intermediate_language_arm64.cc b/runtime/vm/intermediate_language_arm64.cc
|
| index 55ab8605bd0d04ad2ca5044d986680eeeb5a4c0b..25a220e72e5740cfcf4a80138ba1d54ac78da0af 100644
|
| --- a/runtime/vm/intermediate_language_arm64.cc
|
| +++ b/runtime/vm/intermediate_language_arm64.cc
|
| @@ -837,8 +837,13 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| __ LoadImmediate(R1, argc_tag);
|
| ExternalLabel label(entry);
|
| __ LoadNativeEntry(R5, &label);
|
| - compiler->GenerateCall(token_pos(), *stub_entry, RawPcDescriptors::kOther,
|
| - locs());
|
| + if (link_lazily()) {
|
| + compiler->GeneratePatchableCall(token_pos(), *stub_entry,
|
| + RawPcDescriptors::kOther, locs());
|
| + } else {
|
| + compiler->GenerateCall(token_pos(), *stub_entry, RawPcDescriptors::kOther,
|
| + locs());
|
| + }
|
| __ Pop(result);
|
| }
|
|
|
|
|