Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index ed49a3ccf32951909966398f40713e130128282e..0c56bc87f594bbb360f255a6c383fd59b4403c23 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, true, "Link native calls lazily"); |
rmacnak
2015/08/20 23:48:06
enable in the precompile flag handler
Florian Schneider
2015/08/21 07:58:17
Done.
We should look into how to test the precomp
|
DECLARE_FLAG(bool, lazy_dispatchers); |
DECLARE_FLAG(bool, load_deferred_eagerly); |
@@ -7338,7 +7339,8 @@ void Parser::ParseNativeFunctionBlock(const ParamList* params, |
native_name, |
native_function, |
current_block_->scope, |
- is_bootstrap_native))); |
+ is_bootstrap_native, |
+ FLAG_link_natives_lazily))); |
} |