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

Unified Diff: runtime/vm/compiler.h

Issue 1657153002: Clean up global variables related to precompilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed unnecessary includes Created 4 years, 11 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/code_generator.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.h
diff --git a/runtime/vm/compiler.h b/runtime/vm/compiler.h
index 130567db4e3424e637c219638736375571674473..4aa4249e348c644f3686f8c4803cc1eddb548f22 100644
--- a/runtime/vm/compiler.h
+++ b/runtime/vm/compiler.h
@@ -93,22 +93,7 @@ class Compiler : public AllStatic {
// Returns Error::null() if there is no compilation error.
static RawError* CompileAllFunctions(const Class& cls);
- // The following global flags are changed by --noopt handler;
- // the flags are changed when generating best unoptimized code (no runtime
- // feedback, no deoptimization).
-
- // Default: false.
- static bool always_optimize() { return always_optimize_; }
- static void set_always_optimize(bool value) { always_optimize_ = value; }
-
- static bool allow_recompilation() { return allow_recompilation_; }
- static void set_allow_recompilation(bool value) {
- allow_recompilation_ = value;
- }
-
- private:
- static bool always_optimize_;
- static bool allow_recompilation_;
+ static bool always_optimize();
};
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698