Index: runtime/vm/intermediate_language_dbc.cc |
diff --git a/runtime/vm/intermediate_language_dbc.cc b/runtime/vm/intermediate_language_dbc.cc |
index 2f64861a0de662bc3ecac805d2d8519eb5f5f935..1f8380438f08e94de7daadb082adf8888537f7ff 100644 |
--- a/runtime/vm/intermediate_language_dbc.cc |
+++ b/runtime/vm/intermediate_language_dbc.cc |
@@ -969,8 +969,10 @@ EMIT_NATIVE_CODE(NativeCall, |
__ PushConstant(argc_tag_kidx); |
if (is_bootstrap_native()) { |
__ NativeBootstrapCall(); |
+ } else if (is_auto_scope()) { |
+ __ NativeAutoScopeCall(); |
} else { |
- __ NativeCall(); |
+ __ NativeNoScopeCall(); |
} |
compiler->RecordSafepoint(locs()); |
compiler->AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, |