Index: runtime/vm/intermediate_language_ia32.cc |
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc |
index 3ceb83c939f4c96311eecbf8a91a56405e56baa2..4890d41e59d2b3f915890af567504bca74712924 100644 |
--- a/runtime/vm/intermediate_language_ia32.cc |
+++ b/runtime/vm/intermediate_language_ia32.cc |
@@ -820,8 +820,6 @@ 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; |
// Push the result place holder initialized to NULL. |
__ PushObject(Object::null_object()); |
@@ -839,7 +837,7 @@ void NativeCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
stub_entry = StubCode::CallBootstrapCFunction_entry(); |
__ movl(ECX, Immediate(NativeEntry::LinkNativeCallEntry())); |
} else { |
- stub_entry = (is_bootstrap_native() || is_leaf_call) ? |
+ stub_entry = (is_bootstrap_native()) ? |
StubCode::CallBootstrapCFunction_entry() : |
StubCode::CallNativeCFunction_entry(); |
const ExternalLabel label(reinterpret_cast<uword>(native_c_function())); |