Index: runtime/vm/intermediate_language_arm64.cc |
diff --git a/runtime/vm/intermediate_language_arm64.cc b/runtime/vm/intermediate_language_arm64.cc |
index 892a2967853107eeabbaa743c06dfc9d78e9a1f3..7707e0b3d4c78515d666ce2c7c085c9bc3e71bf3 100644 |
--- a/runtime/vm/intermediate_language_arm64.cc |
+++ b/runtime/vm/intermediate_language_arm64.cc |
@@ -779,6 +779,7 @@ LocationSummary* NativeCallInstr::MakeLocationSummary(Zone* zone, |
void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
+ SetupNative(); |
const Register result = locs()->out(0).reg(); |
// Push the result place holder initialized to NULL. |
@@ -796,7 +797,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
uword entry; |
const intptr_t argc_tag = NativeArguments::ComputeArgcTag(function()); |
const bool is_leaf_call = |
- (argc_tag & NativeArguments::AutoSetupScopeMask()) == 0; |
+ (argc_tag & NativeArguments::AutoSetupScopeMask()) == 0; |
const StubEntry* stub_entry; |
if (link_lazily()) { |
stub_entry = StubCode::CallBootstrapCFunction_entry(); |