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

Side by Side Diff: tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart

Issue 1068243002: Overhaul tree IR visitor and rename IR classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
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 // SExpressionUnstringifier implements the inverse operation to 5 // SExpressionUnstringifier implements the inverse operation to
6 // [SExpressionStringifier]. 6 // [SExpressionStringifier].
7 7
8 library sexpr_unstringifier; 8 library sexpr_unstringifier;
9 9
10 import 'package:compiler/src/constants/expressions.dart' 10 import 'package:compiler/src/constants/expressions.dart'
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // continuation 310 // continuation
311 String contName = tokens.read("return"); 311 String contName = tokens.read("return");
312 Continuation cont = name2variable[contName]; 312 Continuation cont = name2variable[contName];
313 assert(cont != null); 313 assert(cont != null);
314 314
315 // body 315 // body
316 Expression body = parseExpression(); 316 Expression body = parseExpression();
317 317
318 tokens.consumeEnd(); 318 tokens.consumeEnd();
319 return new FunctionDefinition(element, thisParameter, parameters, 319 return new FunctionDefinition(element, thisParameter, parameters,
320 new RunnableBody(body, cont), null, null); 320 new Body(body, cont), null, null);
321 } 321 }
322 322
323 /// (IsTrue arg) 323 /// (IsTrue arg)
324 Condition parseCondition() { 324 Condition parseCondition() {
325 // Handles IsTrue only for now. 325 // Handles IsTrue only for now.
326 tokens.consumeStart(IS_TRUE); 326 tokens.consumeStart(IS_TRUE);
327 327
328 Definition value = name2variable[tokens.read()]; 328 Definition value = name2variable[tokens.read()];
329 assert(value != null); 329 assert(value != null);
330 330
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 return new ReifyTypeVar(type); 729 return new ReifyTypeVar(type);
730 } 730 }
731 731
732 /// (This) 732 /// (This)
733 This parseThis() { 733 This parseThis() {
734 tokens.consumeStart(THIS); 734 tokens.consumeStart(THIS);
735 tokens.consumeEnd(); 735 tokens.consumeEnd();
736 return new This(); 736 return new This();
737 } 737 }
738 } 738 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698