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

Unified Diff: runtime/vm/compiler.h

Issue 1149713002: With --noopt run unoptimized code through optimizer, more optimizations can be done later. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: m Created 5 years, 7 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 1e92e7102c8b8c957bd41f1f67df24f6d7a2c900..c510cd2978e62d6a1c03b16fa1213094f1467c31 100644
--- a/runtime/vm/compiler.h
+++ b/runtime/vm/compiler.h
@@ -81,6 +81,22 @@ 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; }
+
+ // Default: true.
+ static bool guess_other_cid() { return guess_other_cid_; }
+ static void set_guess_other_cid(bool value) { guess_other_cid_ = value; }
+
+ private:
+ static bool always_optimize_;
+ static bool guess_other_cid_;
};
} // namespace dart
« 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