Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 2194bfed7a5432049e873caedb6cbb043430bcc3..608b4a537699fa6685d0367b63b65cecb3ba7732 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -79,7 +79,8 @@ class CompilationInfo { |
kDebug = 1 << 12, |
kCompilingForDebugging = 1 << 13, |
kParseRestriction = 1 << 14, |
- kSerializing = 1 << 15 |
+ kSerializing = 1 << 15, |
+ kContextSpecializing = 1 << 16 |
}; |
CompilationInfo(Handle<JSFunction> closure, Zone* zone); |
@@ -181,6 +182,10 @@ class CompilationInfo { |
bool will_serialize() const { return GetFlag(kSerializing); } |
+ void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } |
+ |
+ bool is_context_specializing() const { return GetFlag(kContextSpecializing); } |
+ |
bool IsCodePreAgingActive() const { |
return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
!is_debug(); |