Index: runtime/vm/intermediate_language_x64.cc |
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc |
index cc1967501c1f76fd2e0159cacafc80d4ca2f7e80..3d30dc0a2e639f07f52c6257f1f226e9b2cf42af 100644 |
--- a/runtime/vm/intermediate_language_x64.cc |
+++ b/runtime/vm/intermediate_language_x64.cc |
@@ -772,10 +772,11 @@ LocationSummary* NativeCallInstr::MakeLocationSummary(Zone* zone, |
void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
+ SetupNative(); |
Register result = locs()->out(0).reg(); |
const intptr_t argc_tag = NativeArguments::ComputeArgcTag(function()); |
const bool is_leaf_call = |
- (argc_tag & NativeArguments::AutoSetupScopeMask()) == 0; |
+ (argc_tag & NativeArguments::AutoSetupScopeMask()) == 0; |
// Push the result place holder initialized to NULL. |
__ PushObject(Object::null_object()); |