Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 6a3c5b2b08a65ea23afce0d7ea0ccffa68fec192..f87a3399401cd067dba1ca72e1537bc0d753138b 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -128,7 +128,8 @@ class CompilationInfo { |
kSplittingEnabled = 1 << 13, |
kTypeFeedbackEnabled = 1 << 14, |
kDeoptimizationEnabled = 1 << 15, |
- kSourcePositionsEnabled = 1 << 16 |
+ kSourcePositionsEnabled = 1 << 16, |
+ kFirstCompile = 1 << 17, |
}; |
explicit CompilationInfo(ParseInfo* parse_info); |
@@ -246,6 +247,10 @@ class CompilationInfo { |
bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } |
+ void MarkAsFirstCompile() { SetFlag(kFirstCompile); } |
+ |
+ bool is_first_compile() const { return GetFlag(kFirstCompile); } |
+ |
bool IsCodePreAgingActive() const { |
return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && |
!is_debug(); |
@@ -646,9 +651,8 @@ class Compiler : public AllStatic { |
int source_length); |
// Create a shared function info object (the code may be lazily compiled). |
- static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
- Handle<Script> script, |
- CompilationInfo* outer); |
+ static Handle<SharedFunctionInfo> GetSharedFunctionInfo( |
+ FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer); |
enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; |