Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: runtime/vm/parser.h

Issue 10871005: Make ClassFinalizer indifferent on whether we are generating a snapshot or not. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698