| 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
|
|
|