| 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 #if !defined(DART_PRECOMPILED_RUNTIME) | |
| 6 | |
| 7 #include "vm/ast_transformer.h" | 5 #include "vm/ast_transformer.h" |
| 8 | 6 |
| 9 #include "vm/object_store.h" | 7 #include "vm/object_store.h" |
| 10 #include "vm/parser.h" | 8 #include "vm/parser.h" |
| 11 #include "vm/thread.h" | 9 #include "vm/thread.h" |
| 12 | 10 |
| 13 namespace dart { | 11 namespace dart { |
| 14 | 12 |
| 15 // Quick access to the current thread. | 13 // Quick access to the current thread. |
| 16 #define T (thread()) | 14 #define T (thread()) |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 result_ = Transform(node->nodes()[last_node_index]); | 488 result_ = Transform(node->nodes()[last_node_index]); |
| 491 } | 489 } |
| 492 | 490 |
| 493 void AwaitTransformer::VisitThrowNode(ThrowNode* node) { | 491 void AwaitTransformer::VisitThrowNode(ThrowNode* node) { |
| 494 AstNode* new_exception = Transform(node->exception()); | 492 AstNode* new_exception = Transform(node->exception()); |
| 495 result_ = MakeName( | 493 result_ = MakeName( |
| 496 new (Z) ThrowNode(node->token_pos(), new_exception, node->stacktrace())); | 494 new (Z) ThrowNode(node->token_pos(), new_exception, node->stacktrace())); |
| 497 } | 495 } |
| 498 | 496 |
| 499 } // namespace dart | 497 } // namespace dart |
| 500 | |
| 501 #endif // !defined(DART_PRECOMPILED_RUNTIME) | |
| OLD | NEW |