Index: runtime/vm/parser.h |
=================================================================== |
--- runtime/vm/parser.h (revision 11113) |
+++ runtime/vm/parser.h (working copy) |
@@ -28,7 +28,7 @@ |
struct FieldInitExpression; |
// The class ParsedFunction holds the result of parsing a function. |
-class ParsedFunction : ValueObject { |
+class ParsedFunction : public ValueObject { |
public: |
static const int kFirstLocalSlotIndex = -2; |
@@ -105,15 +105,18 @@ |
}; |
-class Parser : ValueObject { |
+class Parser : public ValueObject { |
public: |
- Parser(const Script& script, const Library& library); |
+ Parser(const Script& script, |
+ const Library& library, |
+ bool generating_snapshot); |
Parser(const Script& script, const Function& function, intptr_t token_pos); |
// Parse the top level of a whole script file and register declared classes |
// and interfaces in the given library. |
static void ParseCompilationUnit(const Library& library, |
- const Script& script); |
+ const Script& script, |
+ bool generating_snapshot); |
static void ParseFunction(ParsedFunction* parsed_function); |
@@ -591,6 +594,9 @@ |
// Allocate temporary only once per function. |
LocalVariable* expression_temp_; |
+ // Current class finalizer. |
+ ClassFinalizer class_finalizer_; |
+ |
DISALLOW_COPY_AND_ASSIGN(Parser); |
}; |