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

Side by Side Diff: lib/runtime/dart/_interceptors.js

Issue 1121993004: Inference through conditional expressions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _interceptors; 1 var _interceptors;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let JSArray = Array; 4 let JSArray = Array;
5 let JSMutableArray$ = dart.generic(function(E) { 5 let JSMutableArray$ = dart.generic(function(E) {
6 class JSMutableArray extends JSArray$(E) { 6 class JSMutableArray extends JSArray$(E) {
7 JSMutableArray() { 7 JSMutableArray() {
8 super.JSArray(); 8 super.JSArray();
9 } 9 }
10 } 10 }
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 return (this / other).toInt(); 285 return (this / other).toInt();
286 } 286 }
287 ['<<'](other) { 287 ['<<'](other) {
288 if (!dart.is(other, core.num)) 288 if (!dart.is(other, core.num))
289 throw new core.ArgumentError(other); 289 throw new core.ArgumentError(other);
290 if (other < 0) 290 if (other < 0)
291 throw new core.ArgumentError(other); 291 throw new core.ArgumentError(other);
292 return this[_shlPositive](other); 292 return this[_shlPositive](other);
293 } 293 }
294 [_shlPositive](other) { 294 [_shlPositive](other) {
295 return dart.as(other > 31 ? 0 : this << other >>> 0, core.num); 295 return other > 31 ? 0 : dart.as(this << other >>> 0, core.num);
296 } 296 }
297 ['>>'](other) { 297 ['>>'](other) {
298 if (false) 298 if (false)
299 this[_shrReceiverPositive](other); 299 this[_shrReceiverPositive](other);
300 if (!dart.is(other, core.num)) 300 if (!dart.is(other, core.num))
301 throw new core.ArgumentError(other); 301 throw new core.ArgumentError(other);
302 if (other < 0) 302 if (other < 0)
303 throw new core.ArgumentError(other); 303 throw new core.ArgumentError(other);
304 return this[_shrOtherPositive](other); 304 return this[_shrOtherPositive](other);
305 } 305 }
306 [_shrOtherPositive](other) { 306 [_shrOtherPositive](other) {
307 return dart.as(this > 0 ? this[_shrBothPositive](other) : this >> (dart.no tNull(other) > 31 ? 31 : other) >>> 0, core.num); 307 return this > 0 ? this[_shrBothPositive](other) : dart.as(this >> (dart.no tNull(other) > 31 ? 31 : other) >>> 0, core.num);
308 } 308 }
309 [_shrReceiverPositive](other) { 309 [_shrReceiverPositive](other) {
310 if (other < 0) 310 if (other < 0)
311 throw new core.ArgumentError(other); 311 throw new core.ArgumentError(other);
312 return this[_shrBothPositive](other); 312 return this[_shrBothPositive](other);
313 } 313 }
314 [_shrBothPositive](other) { 314 [_shrBothPositive](other) {
315 return dart.as(other > 31 ? 0 : this >>> other, core.num); 315 return other > 31 ? 0 : dart.as(this >>> other, core.num);
316 } 316 }
317 ['&'](other) { 317 ['&'](other) {
318 if (!dart.is(other, core.num)) 318 if (!dart.is(other, core.num))
319 throw new core.ArgumentError(other); 319 throw new core.ArgumentError(other);
320 return dart.as((this & other) >>> 0, core.num); 320 return dart.as((this & other) >>> 0, core.num);
321 } 321 }
322 ['|'](other) { 322 ['|'](other) {
323 if (!dart.is(other, core.num)) 323 if (!dart.is(other, core.num))
324 throw new core.ArgumentError(other); 324 throw new core.ArgumentError(other);
325 return dart.as((this | other) >>> 0, core.num); 325 return dart.as((this | other) >>> 0, core.num);
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 exports.findInterceptorForType = findInterceptorForType; 1080 exports.findInterceptorForType = findInterceptorForType;
1081 exports.JSBool = JSBool; 1081 exports.JSBool = JSBool;
1082 exports.JSNull = JSNull; 1082 exports.JSNull = JSNull;
1083 exports.JSIndexable = JSIndexable; 1083 exports.JSIndexable = JSIndexable;
1084 exports.JSMutableIndexable = JSMutableIndexable; 1084 exports.JSMutableIndexable = JSMutableIndexable;
1085 exports.JSObject = JSObject; 1085 exports.JSObject = JSObject;
1086 exports.JavaScriptObject = JavaScriptObject; 1086 exports.JavaScriptObject = JavaScriptObject;
1087 exports.PlainJavaScriptObject = PlainJavaScriptObject; 1087 exports.PlainJavaScriptObject = PlainJavaScriptObject;
1088 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; 1088 exports.UnknownJavaScriptObject = UnknownJavaScriptObject;
1089 })(_interceptors || (_interceptors = {})); 1089 })(_interceptors || (_interceptors = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698