Index: src/runtime/runtime.h |
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h |
index 46f5c4add0a6240d996a83f5e3b8e20b9955f3cb..e17a6885896f9629280ff31cf0aece038cc8f093 100644 |
--- a/src/runtime/runtime.h |
+++ b/src/runtime/runtime.h |
@@ -1152,6 +1152,18 @@ class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
STATIC_ASSERT(LANGUAGE_END == 2); |
class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; |
+// A set of bits returned by Runtime_GetOptimizationStatus. |
+// These bits must be in sync with bits defined in test/mjsunit/mjsunit.js |
+enum class OptimizationStatus { |
+ kIsFunction = 1 << 0, |
+ kNeverOptimize = 1 << 1, |
+ kAlwaysOptimize = 1 << 2, |
+ kMaybeDeopted = 1 << 3, |
+ kOptimized = 1 << 4, |
+ kTurboFanned = 1 << 5, |
+ kInterpreted = 1 << 6, |
+}; |
+ |
} // namespace internal |
} // namespace v8 |