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

Unified Diff: runtime/vm/ast_transformer.h

Issue 958243003: Fix async machinery (issue 22445 and possibly others to be triaged later). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/ast_transformer.h
===================================================================
--- runtime/vm/ast_transformer.h (revision 44105)
+++ runtime/vm/ast_transformer.h (working copy)
@@ -10,7 +10,6 @@
namespace dart {
-class ParsedFunction;
class Thread;
// Translate an AstNode containing an expression (that itself contains one or
@@ -40,9 +39,7 @@
//
class AwaitTransformer : public AstNodeVisitor {
public:
- AwaitTransformer(SequenceNode* preamble,
- const ParsedFunction& parsed_function,
- LocalScope* function_top);
+ AwaitTransformer(SequenceNode* preamble, LocalScope* function_top);
#define DECLARE_VISIT(BaseName) \
virtual void Visit##BaseName##Node(BaseName##Node* node);
@@ -52,6 +49,10 @@
AstNode* Transform(AstNode* expr);
+ static AstNode* RestoreSavedTryContext(Zone* zone,
+ LocalScope* scope,
+ int16_t try_index);
+
private:
LocalVariable* EnsureCurrentTempVar();
LocalVariable* AddToPreambleNewTempVar(AstNode* node);
@@ -69,7 +70,6 @@
SequenceNode* preamble_;
int32_t temp_cnt_;
AstNode* result_;
- const ParsedFunction& parsed_function_;
LocalScope* function_top_;
Thread* thread_;
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_transformer.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698