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

Side by Side Diff: pkg/compiler/lib/src/ssa/ssa_tracer.dart

Issue 839323003: Implementation of async-await transformation on js ast. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa.dart ('k') | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library ssa.tracer; 5 library ssa.tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import 'ssa.dart'; 9 import 'ssa.dart';
10 import '../js_backend/js_backend.dart'; 10 import '../js_backend/js_backend.dart';
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 return "VoidType"; 512 return "VoidType";
513 } 513 }
514 514
515 String visitInterfaceType(HInterfaceType node) { 515 String visitInterfaceType(HInterfaceType node) {
516 return "InterfaceType: ${node.dartType}"; 516 return "InterfaceType: ${node.dartType}";
517 } 517 }
518 518
519 String visitDynamicType(HDynamicType node) { 519 String visitDynamicType(HDynamicType node) {
520 return "DynamicType"; 520 return "DynamicType";
521 } 521 }
522
523 String visitAwait(HAwait node) {
524 return "await ${temporaryId(node.inputs[0])}";
525 }
526
527 String visitYield(HYield node) {
528 return "yield${node.hasStar ? "*" : ""} ${temporaryId(node.inputs[0])}";
529 }
522 } 530 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa.dart ('k') | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698