Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 611a41ba80bd47c639a5cc921075a5c0e0b3bd47..e3b6afa6f91a278475adcf9d545fa9fdcdafb8f3 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -90,7 +90,8 @@ class CompilationInfo { |
kTypingEnabled = 1 << 18, |
kDisableFutureOptimization = 1 << 19, |
kModule = 1 << 20, |
- kToplevel = 1 << 21 |
+ kToplevel = 1 << 21, |
+ kSplittingEnabled = 1 << 22 |
}; |
CompilationInfo(Handle<JSFunction> closure, Zone* zone); |
@@ -222,6 +223,10 @@ class CompilationInfo { |
bool is_toplevel() const { return GetFlag(kToplevel); } |
+ void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } |
+ |
+ bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } |
+ |
bool IsCodePreAgingActive() const { |
return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
!is_debug(); |