Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index d6905cf4d365fb7efec1c95f9eb3f2ec901d153c..47613d3b55eb2ab5c1a72f26469d50caf14ad1cf 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -160,6 +160,7 @@ class CompilationInfo { |
kSourcePositionsEnabled = 1 << 15, |
kEffectSchedulingEnabled = 1 << 16, |
kBailoutOnUninitialized = 1 << 17, |
+ kOptimizeFromBytecode = 1 << 18, |
}; |
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); |
@@ -304,6 +305,12 @@ class CompilationInfo { |
return GetFlag(kBailoutOnUninitialized); |
} |
+ void MarkAsOptimizeFromBytecode() { SetFlag(kOptimizeFromBytecode); } |
+ |
+ bool is_optimizing_from_bytecode() const { |
+ return GetFlag(kOptimizeFromBytecode); |
+ } |
+ |
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, |