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

Side by Side Diff: test/codegen/expect/notnull.js

Issue 1924413002: Fix modulo and bitwise operators. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 dart_library.library('notnull', null, /* Imports */[ 1 dart_library.library('notnull', null, /* Imports */[
2 'dart_sdk' 2 'dart_sdk'
3 ], function(exports, dart_sdk) { 3 ], function(exports, dart_sdk) {
4 'use strict'; 4 'use strict';
5 const core = dart_sdk.core; 5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
8 const notnull = Object.create(null); 8 const notnull = Object.create(null);
9 notnull.intAssignments = function() { 9 notnull.intAssignments = function() {
10 let i = 0; 10 let i = 0;
11 i = i & 1; 11 i = (i & 1) >>> 0;
12 i = i | 1; 12 i = (i | 1) >>> 0;
13 i = i ^ 1; 13 i = (i ^ 1) >>> 0;
14 i = i >> 1; 14 i = i[dartx['>>']](1);
15 i = i << 1; 15 i = i[dartx['<<']](1);
16 i = i - 1; 16 i = i - 1;
17 i = i % 1; 17 i = i[dartx['%']](1);
18 i = i + 1; 18 i = i + 1;
19 let t = i; 19 let t = i;
20 t == null ? i = 1 : t; 20 t == null ? i = 1 : t;
21 i = i * 1; 21 i = i * 1;
22 i = (i / 1)[dartx.truncate](); 22 i = (i / 1)[dartx.truncate]();
23 i++; 23 i++;
24 --i; 24 --i;
25 core.print(i + 1); 25 core.print(i + 1);
26 let j = 1; 26 let j = 1;
27 j = i < 10 ? 1 : 2; 27 j = i < 10 ? 1 : 2;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 notnull.localEscapes(); 254 notnull.localEscapes();
255 notnull.controlFlow(); 255 notnull.controlFlow();
256 notnull.cascadesOnNull(); 256 notnull.cascadesOnNull();
257 notnull.nullableCycle(); 257 notnull.nullableCycle();
258 notnull.nonNullableCycle(); 258 notnull.nonNullableCycle();
259 }; 259 };
260 dart.fn(notnull.main); 260 dart.fn(notnull.main);
261 // Exports: 261 // Exports:
262 exports.notnull = notnull; 262 exports.notnull = notnull;
263 }); 263 });
OLDNEW
« test/browser/language_tests.js ('K') | « test/codegen/expect/expect/expect.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698