Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 608b4a537699fa6685d0367b63b65cecb3ba7732..82c0b874c4f1229d9e9af45d94a7a4e02f918384 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -80,7 +80,8 @@ class CompilationInfo { |
kCompilingForDebugging = 1 << 13, |
kParseRestriction = 1 << 14, |
kSerializing = 1 << 15, |
- kContextSpecializing = 1 << 16 |
+ kContextSpecializing = 1 << 16, |
+ kInliningEnabled = 1 << 17 |
}; |
CompilationInfo(Handle<JSFunction> closure, Zone* zone); |
@@ -186,6 +187,10 @@ class CompilationInfo { |
bool is_context_specializing() const { return GetFlag(kContextSpecializing); } |
+ void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } |
+ |
+ bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } |
+ |
bool IsCodePreAgingActive() const { |
return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
!is_debug(); |