| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_COMPILER_H_ | 5 #ifndef VM_COMPILER_H_ |
| 6 #define VM_COMPILER_H_ | 6 #define VM_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 static RawError* CompileAllFunctions(const Class& cls); | 83 static RawError* CompileAllFunctions(const Class& cls); |
| 84 | 84 |
| 85 // The following global flags are changed by --noopt handler; | 85 // The following global flags are changed by --noopt handler; |
| 86 // the flags are changed when generating best unoptimized code (no runtime | 86 // the flags are changed when generating best unoptimized code (no runtime |
| 87 // feedback, no deoptimization). | 87 // feedback, no deoptimization). |
| 88 | 88 |
| 89 // Default: false. | 89 // Default: false. |
| 90 static bool always_optimize() { return always_optimize_; } | 90 static bool always_optimize() { return always_optimize_; } |
| 91 static void set_always_optimize(bool value) { always_optimize_ = value; } | 91 static void set_always_optimize(bool value) { always_optimize_ = value; } |
| 92 | 92 |
| 93 static bool allow_recompilation() { return allow_recompilation_; } |
| 94 static void set_allow_recompilation(bool value) { |
| 95 allow_recompilation_ = value; |
| 96 } |
| 97 |
| 93 private: | 98 private: |
| 94 static bool always_optimize_; | 99 static bool always_optimize_; |
| 100 static bool allow_recompilation_; |
| 95 }; | 101 }; |
| 96 | 102 |
| 97 } // namespace dart | 103 } // namespace dart |
| 98 | 104 |
| 99 #endif // VM_COMPILER_H_ | 105 #endif // VM_COMPILER_H_ |
| OLD | NEW |