Index: src/parser.cc |
=================================================================== |
--- src/parser.cc (revision 2476) |
+++ src/parser.cc (working copy) |
@@ -834,12 +834,7 @@ |
return new CallEval(expression, arguments, pos); |
} |
- virtual Statement* EmptyStatement() { |
- // Use a statically allocated empty statement singleton to avoid |
- // allocating lots and lots of empty statements. |
- static v8::internal::EmptyStatement empty; |
- return ∅ |
- } |
+ virtual Statement* EmptyStatement(); |
}; |
@@ -1032,6 +1027,14 @@ |
} |
+Statement* AstBuildingParserFactory::EmptyStatement() { |
+ // Use a statically allocated empty statement singleton to avoid |
+ // allocating lots and lots of empty statements. |
+ static v8::internal::EmptyStatement empty; |
+ return ∅ |
+} |
+ |
+ |
Scope* ParserFactory::NewScope(Scope* parent, Scope::Type type, |
bool inside_with) { |
ASSERT(parent != NULL); |