Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: runtime/vm/compiler.cc

Issue 2976723003: Eliminate dependencies on assemblers and code stubs in precompiled runtime. (Closed)
Patch Set: Eliminate precompiled runtime flag Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/cha.cc ('k') | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 96d2fa8b48190da1869f9b760c93134c93365eb0..0a2833c3fdb2b1183a879b528d35ac52c4f374bf 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -107,6 +107,46 @@ DEFINE_FLAG(bool,
DECLARE_FLAG(bool, huge_method_cutoff_in_code_size);
DECLARE_FLAG(bool, trace_failed_optimization_attempts);
+DECLARE_FLAG(bool, unbox_numeric_fields);
+
+
+static void PrecompilationModeHandler(bool value) {
+ if (value) {
+#if defined(TARGET_ARCH_IA32)
+ FATAL("Precompilation not supported on IA32");
+#endif
+
+ FLAG_background_compilation = false;
+ FLAG_fields_may_be_reset = true;
+ FLAG_interpret_irregexp = true;
+ FLAG_lazy_dispatchers = false;
+ FLAG_link_natives_lazily = true;
+ FLAG_optimization_counter_threshold = -1;
+ FLAG_polymorphic_with_deopt = false;
+ FLAG_precompiled_mode = true;
+ FLAG_reorder_basic_blocks = false;
+ FLAG_use_field_guards = false;
+ FLAG_use_cha_deopt = false;
+
+#if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
+ // Set flags affecting runtime accordingly for dart_bootstrap.
+ // These flags are constants with PRODUCT and DART_PRECOMPILED_RUNTIME.
+ FLAG_collect_code = false;
+ FLAG_support_debugger = false;
+ FLAG_deoptimize_alot = false; // Used in some tests.
+ FLAG_deoptimize_every = 0; // Used in some tests.
+ FLAG_enable_mirrors = false;
+ FLAG_load_deferred_eagerly = true;
+ FLAG_print_stop_message = false;
+ FLAG_unbox_numeric_fields = false;
+ FLAG_use_osr = false;
+#endif
+ }
+}
+
+DEFINE_FLAG_HANDLER(PrecompilationModeHandler,
+ precompilation,
+ "Precompilation mode");
#ifndef DART_PRECOMPILED_RUNTIME
« no previous file with comments | « runtime/vm/cha.cc ('k') | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698