| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_AST_TRANSFORMER_H_ | 5 #ifndef VM_AST_TRANSFORMER_H_ |
| 6 #define VM_AST_TRANSFORMER_H_ | 6 #define VM_AST_TRANSFORMER_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 AstNode* Transform(AstNode* expr); | 63 AstNode* Transform(AstNode* expr); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 LocalVariable* EnsureCurrentTempVar(); | 66 LocalVariable* EnsureCurrentTempVar(); |
| 67 LocalVariable* AddToPreambleNewTempVar(AstNode* node); | 67 LocalVariable* AddToPreambleNewTempVar(AstNode* node); |
| 68 ArgumentListNode* TransformArguments(ArgumentListNode* node); | 68 ArgumentListNode* TransformArguments(ArgumentListNode* node); |
| 69 AstNode* LazyTransform(const Token::Kind kind, | 69 AstNode* LazyTransform(const Token::Kind kind, |
| 70 AstNode* new_left, | 70 AstNode* new_left, |
| 71 AstNode* right); | 71 AstNode* right); |
| 72 LocalScope* NewScope(LocalScope* parent); | |
| 73 | 72 |
| 74 void NextTempVar() { temp_cnt_++; } | 73 void NextTempVar() { temp_cnt_++; } |
| 75 | 74 |
| 76 Isolate* isolate() const { return isolate_; } | 75 Isolate* isolate() const { return isolate_; } |
| 77 | 76 |
| 78 SequenceNode* preamble_; | 77 SequenceNode* preamble_; |
| 79 int32_t temp_cnt_; | 78 int32_t temp_cnt_; |
| 80 AstNode* result_; | 79 AstNode* result_; |
| 81 const Library& library_; | 80 const Library& library_; |
| 82 ParsedFunction* const parsed_function_; | 81 ParsedFunction* const parsed_function_; |
| 83 | 82 |
| 84 Isolate* isolate_; | 83 Isolate* isolate_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(AwaitTransformer); | 85 DISALLOW_COPY_AND_ASSIGN(AwaitTransformer); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace dart | 88 } // namespace dart |
| 90 | 89 |
| 91 #endif // VM_AST_TRANSFORMER_H_ | 90 #endif // VM_AST_TRANSFORMER_H_ |
| OLD | NEW |