| Index: runtime/vm/flow_graph_compiler.cc
|
| diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
|
| index 7ef76a662eb4d8ae57243cca85eb7b2a7cfd7724..325ac510ea47a1654d8f2ad9feb872101da790b1 100644
|
| --- a/runtime/vm/flow_graph_compiler.cc
|
| +++ b/runtime/vm/flow_graph_compiler.cc
|
| @@ -2,6 +2,8 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +#if !defined(DART_PRECOMPILED_RUNTIME)
|
| +
|
| #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
|
|
|
| #include "vm/flow_graph_compiler.h"
|
| @@ -52,57 +54,16 @@ DEFINE_FLAG(bool,
|
| DECLARE_FLAG(bool, code_comments);
|
| DECLARE_FLAG(charp, deoptimize_filter);
|
| DECLARE_FLAG(bool, intrinsify);
|
| -DECLARE_FLAG(bool, propagate_ic_data);
|
| DECLARE_FLAG(int, regexp_optimization_counter_threshold);
|
| DECLARE_FLAG(int, reoptimization_counter_threshold);
|
| DECLARE_FLAG(int, stacktrace_every);
|
| DECLARE_FLAG(charp, stacktrace_filter);
|
| DECLARE_FLAG(bool, trace_compiler);
|
| -DECLARE_FLAG(int, reload_every);
|
| -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;
|
| - FLAG_unbox_numeric_fields = false;
|
| - FLAG_enable_mirrors = 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_deoptimize_alot = false; // Used in some tests.
|
| - FLAG_deoptimize_every = 0; // Used in some tests.
|
| - FLAG_load_deferred_eagerly = true;
|
| - FLAG_print_stop_message = false;
|
| - FLAG_use_osr = false;
|
| -#endif
|
| - }
|
| -}
|
| -
|
| -DEFINE_FLAG_HANDLER(PrecompilationModeHandler,
|
| - precompilation,
|
| - "Precompilation mode");
|
|
|
| #ifdef DART_PRECOMPILED_RUNTIME
|
|
|
| COMPILE_ASSERT(!FLAG_collect_code);
|
| COMPILE_ASSERT(!FLAG_deoptimize_alot); // Used in some tests.
|
| -COMPILE_ASSERT(FLAG_precompiled_runtime);
|
| COMPILE_ASSERT(!FLAG_print_stop_message);
|
| COMPILE_ASSERT(!FLAG_use_osr);
|
| COMPILE_ASSERT(FLAG_deoptimize_every == 0); // Used in some tests.
|
| @@ -1952,3 +1913,5 @@ void FlowGraphCompiler::FrameStateClear() {
|
| #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC)
|
|
|
| } // namespace dart
|
| +
|
| +#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
|
|