Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 64bc88d4981d510be7d5039ede91714c6c58e96f..e0ebd453781f4a7102c007aec79edde0ac7efa6b 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -146,6 +146,7 @@ class CompilationInfo final { |
kSourcePositionsEnabled = 1 << 15, |
kBailoutOnUninitialized = 1 << 16, |
kOptimizeFromBytecode = 1 << 17, |
+ kTypeFeedbackEnabled = 1 << 18, |
}; |
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); |
@@ -256,6 +257,12 @@ class CompilationInfo final { |
return GetFlag(kDeoptimizationEnabled); |
} |
+ void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } |
+ |
+ bool is_type_feedback_enabled() const { |
+ return GetFlag(kTypeFeedbackEnabled); |
+ } |
+ |
void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } |
bool is_source_positions_enabled() const { |