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

Side by Side Diff: tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart

Issue 827763003: Reapply "Allow LetCont to bind multiple continuations." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | « tests/compiler/dart2js/backend_dart/sexpr_unstringifier.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 // VMOptions=-DUSE_CPS_IR=true 4 // VMOptions=-DUSE_CPS_IR=true
5 5
6 // Tests for basic functionality. 6 // Tests for basic functionality.
7 7
8 library basic_tests; 8 library basic_tests;
9 9
10 import 'js_backend_cps_ir.dart'; 10 import 'js_backend_cps_ir.dart';
11 11
12 const List<TestEntry> tests = const [ 12 const List<TestEntry> tests = const [
13 const TestEntry(""" 13 const TestEntry("""
14 foo(a, [b = "b"]) => b; 14 foo(a, [b = "b"]) => b;
15 bar(a, {b: "b", c: "c"}) => c; 15 bar(a, {b: "b", c: "c"}) => c;
16 main() { 16 main() {
17 foo(0); 17 foo(0);
18 foo(0, 1); 18 foo(1, 2);
19 bar(0); 19 bar(3);
20 bar(0, b: 1); 20 bar(4, b: 5);
21 bar(0, c: 1); 21 bar(6, c: 7);
22 bar(0, b: 1, c: 2); 22 bar(8, b: 9, c: 10);
23 } 23 }
24 """, 24 """,
25 """ 25 """
26 function() { 26 function() {
27 V.foo(0, "b"); 27 V.foo(0, "b");
28 V.foo(0, 1); 28 V.foo(1, 2);
29 V.bar(0, "b", "c"); 29 V.bar(3, "b", "c");
30 V.bar(0, 1, "c"); 30 V.bar(4, 5, "c");
31 V.bar(0, "b", 1); 31 V.bar(6, "b", 7);
32 V.bar(0, 1, 2); 32 V.bar(8, 9, 10);
33 return null; 33 return null;
34 }"""), 34 }"""),
35 const TestEntry( 35 const TestEntry(
36 """ 36 """
37 foo(a) { 37 foo(a) {
38 return a; 38 return a;
39 } 39 }
40 main() { 40 main() {
41 var a = 10; 41 var a = 10;
42 var b = 1; 42 var b = 1;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 function() { 100 function() {
101 P.print(P.DateTime$now().isBefore$1(P.DateTime$now())); 101 P.print(P.DateTime$now().isBefore$1(P.DateTime$now()));
102 return null; 102 return null;
103 }"""), 103 }"""),
104 ]; 104 ];
105 105
106 106
107 void main() { 107 void main() {
108 runTests(tests); 108 runTests(tests);
109 } 109 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698