From af0ec65775a9172bfa693bbeeb8e5811e26a5c72 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 18 May 2016 11:31:58 -0700 Subject: [PATCH] Only use the Dart bytecode interpreter on iOS device targets. (#2697) --- engine/src/flutter/sky/tools/gn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/sky/tools/gn b/engine/src/flutter/sky/tools/gn index 71ab12a4d3c..019b2d8d608 100755 --- a/engine/src/flutter/sky/tools/gn +++ b/engine/src/flutter/sky/tools/gn @@ -85,7 +85,11 @@ def to_gn_args(args): if aot: gn_args['dart_target_arch'] = gn_args['target_cpu'] - gn_args['dart_experimental_interpreter'] = args.runtime_mode == 'debug' + # On iOS Devices, use the Dart bytecode interpreter so we don't incur + # snapshotting and linking costs of the precompiler during development. + # We can still use the JIT on the simulator though. + use_dbc = args.target_os == 'ios' and not args.simulator and args.runtime_mode == 'debug' + gn_args['dart_experimental_interpreter'] = use_dbc gn_args['flutter_product_mode'] = (gn_args['dart_runtime_mode'] == 'release')