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

Side by Side Diff: tests/compiler/dart2js/cps_ir/expected/argument_refinement_19.js

Issue 1668913002: dart2js cps: More aggressive operator specialization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update test expectations Created 4 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
OLDNEW
1 // Expectation for test: 1 // Expectation for test:
2 // main() { 2 // main() {
3 // var x = int.parse('1233'); 3 // var x = int.parse('1233');
4 // var y = int.parse('1234'); 4 // var y = int.parse('1234');
5 // print(x / 2); 5 // print(x / 2);
6 // print(x is num); 6 // print(x is num);
7 // print(y is num); 7 // print(y is num);
8 // print(x + y); 8 // print(x + y);
9 // print(y is num); 9 // print(y is num);
10 // } 10 // }
11 11
12 function() { 12 function() {
13 var x = P.int_parse("1233", null, null), y = P.int_parse("1234", null, null), v0 = typeof y === "number"; 13 var x = P.int_parse("1233", null, null), y = P.int_parse("1234", null, null);
14 P.print(J.$div$n(x, 2)); 14 P.print(x / 2);
15 P.print(true); 15 P.print(true);
16 P.print(v0); 16 P.print(typeof y === "number");
17 if (!v0) 17 if (typeof y !== "number")
18 throw H.wrapException(H.argumentErrorValue(y)); 18 return H.iae(y);
19 P.print(x + y); 19 P.print(x + y);
20 P.print(true); 20 P.print(true);
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698