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

Side by Side Diff: test/codegen/expect/dart/_interceptors.js

Issue 961513002: Flesh out dynamic invocation code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix ++ and -- Created 5 years, 9 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 var _interceptors; 1 var _interceptors;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 // Function _symbolToString: (Symbol) → String 4 // Function _symbolToString: (Symbol) → String
5 function _symbolToString(symbol) { 5 function _symbolToString(symbol) {
6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); 6 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol));
7 } 7 }
8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic 8 // Function _symbolMapToStringMap: (Map<Symbol, dynamic>) → dynamic
9 function _symbolMapToStringMap(map) { 9 function _symbolMapToStringMap(map) {
10 if (map === null) 10 if (map === null)
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 return this['&'](1) === 1; 891 return this['&'](1) === 1;
892 } 892 }
893 toUnsigned(width) { 893 toUnsigned(width) {
894 return this['&']((1 << dart.notNull(width)) - 1); 894 return this['&']((1 << dart.notNull(width)) - 1);
895 } 895 }
896 toSigned(width) { 896 toSigned(width) {
897 let signMask = 1 << dart.notNull(width) - 1; 897 let signMask = 1 << dart.notNull(width) - 1;
898 return dart.notNull(this['&'](dart.notNull(signMask) - 1)) - dart.notNull( this['&'](signMask)); 898 return dart.notNull(this['&'](dart.notNull(signMask) - 1)) - dart.notNull( this['&'](signMask));
899 } 899 }
900 get bitLength() { 900 get bitLength() {
901 let nonneg = this['<'](0) ? dart.notNull(dart.throw_("Unimplemented Prefix Expression: -this")) - 1 : this; 901 let nonneg = this['<'](0) ? dart.notNull(this['unary-']()) - 1 : this;
902 if (dart.notNull(nonneg) >= 4294967296) { 902 if (dart.notNull(nonneg) >= 4294967296) {
903 nonneg = (dart.notNull(nonneg) / 4294967296).truncate(); 903 nonneg = (dart.notNull(nonneg) / 4294967296).truncate();
904 return dart.notNull(_bitCount(_spread(nonneg))) + 32; 904 return dart.notNull(_bitCount(_spread(nonneg))) + 32;
905 } 905 }
906 return _bitCount(_spread(nonneg)); 906 return _bitCount(_spread(nonneg));
907 } 907 }
908 static [_bitCount](i) { 908 static [_bitCount](i) {
909 i = dart.as(dart.dbinary(_shru(i, 0), '-', dart.dbinary(_shru(i, 1), '&', 1431655765)), core.int); 909 i = dart.as(dart.dbinary(_shru(i, 0), '-', dart.dbinary(_shru(i, 1), '&', 1431655765)), core.int);
910 i = (dart.notNull(i) & 858993459)['+'](dart.dbinary(_shru(i, 2), '&', 8589 93459)); 910 i = (dart.notNull(i) & 858993459)['+'](dart.dbinary(_shru(i, 2), '&', 8589 93459));
911 i = 252645135 & i['+'](_shru(i, 4)); 911 i = 252645135 & i['+'](_shru(i, 4));
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 exports.JSExtendableArray = JSExtendableArray; 1410 exports.JSExtendableArray = JSExtendableArray;
1411 exports.JSExtendableArray$ = JSExtendableArray$; 1411 exports.JSExtendableArray$ = JSExtendableArray$;
1412 exports.JSNumber = JSNumber; 1412 exports.JSNumber = JSNumber;
1413 exports.JSInt = JSInt; 1413 exports.JSInt = JSInt;
1414 exports.JSDouble = JSDouble; 1414 exports.JSDouble = JSDouble;
1415 exports.JSPositiveInt = JSPositiveInt; 1415 exports.JSPositiveInt = JSPositiveInt;
1416 exports.JSUInt32 = JSUInt32; 1416 exports.JSUInt32 = JSUInt32;
1417 exports.JSUInt31 = JSUInt31; 1417 exports.JSUInt31 = JSUInt31;
1418 exports.JSString = JSString; 1418 exports.JSString = JSString;
1419 })(_interceptors || (_interceptors = {})); 1419 })(_interceptors || (_interceptors = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698