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