Index: src/compilation-info.h |
diff --git a/src/compilation-info.h b/src/compilation-info.h |
index 2abf624fdf1b002b4bb6d68f839d6285f08a369b..863183b5cd3516b2007e05463b615d805b93d788 100644 |
--- a/src/compilation-info.h |
+++ b/src/compilation-info.h |
@@ -49,6 +49,7 @@ class CompilationInfo final { |
kSourcePositionsEnabled = 1 << 13, |
kBailoutOnUninitialized = 1 << 14, |
kOptimizeFromBytecode = 1 << 15, |
+ kLoopPeelingEnabled = 1 << 16, |
}; |
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); |
@@ -172,6 +173,10 @@ class CompilationInfo final { |
return GetFlag(kOptimizeFromBytecode); |
} |
+ void MarkAsLoopPeelingEnabled() { SetFlag(kLoopPeelingEnabled); } |
+ |
+ bool is_loop_peeling_enabled() const { return GetFlag(kLoopPeelingEnabled); } |
+ |
bool GeneratePreagedPrologue() const { |
// Generate a pre-aged prologue if we are optimizing for size, which |
// will make code flushing more aggressive. Only apply to Code::FUNCTION, |