| 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); |
| 72 | 73 |
| 73 void NextTempVar() { temp_cnt_++; } | 74 void NextTempVar() { temp_cnt_++; } |
| 74 | 75 |
| 75 Isolate* isolate() const { return isolate_; } | 76 Isolate* isolate() const { return isolate_; } |
| 76 | 77 |
| 77 SequenceNode* preamble_; | 78 SequenceNode* preamble_; |
| 78 int32_t temp_cnt_; | 79 int32_t temp_cnt_; |
| 79 AstNode* result_; | 80 AstNode* result_; |
| 80 const Library& library_; | 81 const Library& library_; |
| 81 ParsedFunction* const parsed_function_; | 82 ParsedFunction* const parsed_function_; |
| 82 | 83 |
| 83 Isolate* isolate_; | 84 Isolate* isolate_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(AwaitTransformer); | 86 DISALLOW_COPY_AND_ASSIGN(AwaitTransformer); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace dart | 89 } // namespace dart |
| 89 | 90 |
| 90 #endif // VM_AST_TRANSFORMER_H_ | 91 #endif // VM_AST_TRANSFORMER_H_ |
| OLD | NEW |