Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 79a786af2b014e651eff49a4774195cbf8d05521..286fbe7c97da52bdfd5ff7d32fafc8f6d5d81e9f 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -45,6 +45,7 @@ DEFINE_FLAG(bool, load_deferred_eagerly, false, |
DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); |
DEFINE_FLAG(bool, supermixin, false, "Allow super calls in mixins."); |
DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef."); |
+DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); |
DECLARE_FLAG(bool, lazy_dispatchers); |
DECLARE_FLAG(bool, load_deferred_eagerly); |
@@ -7333,7 +7334,8 @@ void Parser::ParseNativeFunctionBlock(const ParamList* params, |
native_name, |
native_function, |
current_block_->scope, |
- is_bootstrap_native))); |
+ is_bootstrap_native, |
+ FLAG_link_natives_lazily))); |
} |