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

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

Issue 1040093002: Change the collection of continuation jumps. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated review comments, rebased. 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | no next file » | 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) 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 String name = tokens.read(); 405 String name = tokens.read();
406 bool isRecursive = name == "rec"; 406 bool isRecursive = name == "rec";
407 if (isRecursive) name = tokens.read(); 407 if (isRecursive) name = tokens.read();
408 408
409 Continuation cont = name2variable[name]; 409 Continuation cont = name2variable[name];
410 assert(cont != null); 410 assert(cont != null);
411 411
412 List<Primitive> args = parsePrimitiveList(); 412 List<Primitive> args = parsePrimitiveList();
413 413
414 tokens.consumeEnd(); 414 tokens.consumeEnd();
415 return new InvokeContinuation(cont, args, recursive: isRecursive); 415 return new InvokeContinuation(cont, args, isRecursive: isRecursive);
416 } 416 }
417 417
418 /// (InvokeMethod receiver method (args) cont) 418 /// (InvokeMethod receiver method (args) cont)
419 InvokeMethod parseInvokeMethod() { 419 InvokeMethod parseInvokeMethod() {
420 tokens.consumeStart(INVOKE_METHOD); 420 tokens.consumeStart(INVOKE_METHOD);
421 421
422 Definition receiver = name2variable[tokens.read()]; 422 Definition receiver = name2variable[tokens.read()];
423 assert(receiver != null); 423 assert(receiver != null);
424 424
425 String methodName = tokens.read(); 425 String methodName = tokens.read();
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 return new ReifyTypeVar(type); 730 return new ReifyTypeVar(type);
731 } 731 }
732 732
733 /// (This) 733 /// (This)
734 This parseThis() { 734 This parseThis() {
735 tokens.consumeStart(THIS); 735 tokens.consumeStart(THIS);
736 tokens.consumeEnd(); 736 tokens.consumeEnd();
737 return new This(); 737 return new This();
738 } 738 }
739 } 739 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698