Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index c358cce411816b2ca31476eef4e3c4f54c0ea2f6..fb91a9e2f5e1383927814c4c0b1e1273417d2934 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -124,7 +124,8 @@ class CompilationInfo { |
kTypingEnabled = 1 << 11, |
kDisableFutureOptimization = 1 << 12, |
kSplittingEnabled = 1 << 13, |
- kBuiltinInliningEnabled = 1 << 14 |
+ kBuiltinInliningEnabled = 1 << 14, |
+ kTypeFeedbackEnabled = 1 << 15 |
}; |
explicit CompilationInfo(ParseInfo* parse_info); |
@@ -209,6 +210,12 @@ class CompilationInfo { |
bool is_context_specializing() const { return GetFlag(kContextSpecializing); } |
+ void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } |
+ |
+ bool is_type_feedback_enabled() const { |
+ return GetFlag(kTypeFeedbackEnabled); |
+ } |
+ |
void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } |
bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } |