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

Side by Side Diff: runtime/vm/ast_transformer.cc

Issue 2976723003: Eliminate dependencies on assemblers and code stubs in precompiled runtime. (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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 #include "vm/ast_transformer.h" 5 #include "vm/ast_transformer.h"
6 6
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/parser.h" 8 #include "vm/parser.h"
9 #include "vm/thread.h" 9 #include "vm/thread.h"
10 10
11 #if !defined(DART_PRECOMPILED_RUNTIME)
12
11 namespace dart { 13 namespace dart {
12 14
13 // Quick access to the current thread. 15 // Quick access to the current thread.
14 #define T (thread()) 16 #define T (thread())
15 17
16 // Quick access to the current zone. 18 // Quick access to the current zone.
17 #define Z (thread()->zone()) 19 #define Z (thread()->zone())
18 20
19 // Quick synthetic token position. 21 // Quick synthetic token position.
20 #define ST(token_pos) ((token_pos).ToSynthetic()) 22 #define ST(token_pos) ((token_pos).ToSynthetic())
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 } 523 }
522 524
523 525
524 void AwaitTransformer::VisitThrowNode(ThrowNode* node) { 526 void AwaitTransformer::VisitThrowNode(ThrowNode* node) {
525 AstNode* new_exception = Transform(node->exception()); 527 AstNode* new_exception = Transform(node->exception());
526 result_ = MakeName( 528 result_ = MakeName(
527 new (Z) ThrowNode(node->token_pos(), new_exception, node->stacktrace())); 529 new (Z) ThrowNode(node->token_pos(), new_exception, node->stacktrace()));
528 } 530 }
529 531
530 } // namespace dart 532 } // namespace dart
533
534 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698