Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index ea93f408c653127fe2c3cd58bf49140df3efdf6b..a0b0346520e12dce3edd551bea9512f711075314 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -82,7 +82,8 @@ class CompilationInfo { |
kSerializing = 1 << 15, |
kContextSpecializing = 1 << 16, |
kInliningEnabled = 1 << 17, |
- kTypingEnabled = 1 << 18 |
+ kTypingEnabled = 1 << 18, |
+ kToplevel = 1 << 19 |
}; |
CompilationInfo(Handle<JSFunction> closure, Zone* zone); |
@@ -205,6 +206,10 @@ class CompilationInfo { |
bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } |
+ void MarkAsToplevel() { SetFlag(kToplevel); } |
+ |
+ bool is_toplevel() const { return GetFlag(kToplevel); } |
+ |
bool IsCodePreAgingActive() const { |
return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
!is_debug(); |