| OLD | NEW |
| 1 var _interceptors = dart.defineLibrary(_interceptors, {}); | 1 var _interceptors = dart.defineLibrary(_interceptors, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var _js_helper = dart.lazyImport(_js_helper); | 3 var _js_helper = dart.lazyImport(_js_helper); |
| 4 var _internal = dart.import(_internal); | 4 var _internal = dart.import(_internal); |
| 5 var _foreign_helper = dart.import(_foreign_helper); | 5 var _foreign_helper = dart.import(_foreign_helper); |
| 6 var _js_embedded_names = dart.import(_js_embedded_names); | 6 var _js_embedded_names = dart.import(_js_embedded_names); |
| 7 (function(exports, core, _js_helper, _internal, _foreign_helper, _js_embedded_na
mes) { | 7 (function(exports, core, _js_helper, _internal, _foreign_helper, _js_embedded_na
mes) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 let JSArray = Array; | 9 let JSArray = Array; |
| 10 let JSMutableArray$ = dart.generic(function(E) { | 10 let JSMutableArray$ = dart.generic(function(E) { |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 toStringAsFixed: [core.String, [core.int]], | 381 toStringAsFixed: [core.String, [core.int]], |
| 382 toStringAsExponential: [core.String, [], [core.int]], | 382 toStringAsExponential: [core.String, [], [core.int]], |
| 383 toStringAsPrecision: [core.String, [core.int]], | 383 toStringAsPrecision: [core.String, [core.int]], |
| 384 toRadixString: [core.String, [core.int]], | 384 toRadixString: [core.String, [core.int]], |
| 385 'unary-': [core.num, []], | 385 'unary-': [core.num, []], |
| 386 '+': [core.num, [core.num]], | 386 '+': [core.num, [core.num]], |
| 387 '-': [core.num, [core.num]], | 387 '-': [core.num, [core.num]], |
| 388 '/': [core.double, [core.num]], | 388 '/': [core.double, [core.num]], |
| 389 '*': [core.num, [core.num]], | 389 '*': [core.num, [core.num]], |
| 390 '%': [core.num, [core.num]], | 390 '%': [core.num, [core.num]], |
| 391 [_isInt32]: [core.bool, [dart.dynamic]], | 391 [_isInt32]: [core.bool, [core.Object]], |
| 392 '~/': [core.int, [core.num]], | 392 '~/': [core.int, [core.num]], |
| 393 [_tdivFast]: [core.int, [core.num]], | 393 [_tdivFast]: [core.int, [core.num]], |
| 394 [_tdivSlow]: [core.int, [core.num]], | 394 [_tdivSlow]: [core.int, [core.num]], |
| 395 '<<': [core.num, [core.num]], | 395 '<<': [core.num, [core.num]], |
| 396 [_shlPositive]: [core.num, [core.num]], | 396 [_shlPositive]: [core.num, [core.num]], |
| 397 '>>': [core.num, [core.num]], | 397 '>>': [core.num, [core.num]], |
| 398 [_shrOtherPositive]: [core.num, [core.num]], | 398 [_shrOtherPositive]: [core.num, [core.num]], |
| 399 [_shrReceiverPositive]: [core.num, [core.num]], | 399 [_shrReceiverPositive]: [core.num, [core.num]], |
| 400 [_shrBothPositive]: [core.num, [core.num]], | 400 [_shrBothPositive]: [core.num, [core.num]], |
| 401 '&': [core.num, [core.num]], | 401 '&': [core.num, [core.num]], |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 } | 470 } |
| 471 JSInt[dart.implements] = () => [core.int, core.double]; | 471 JSInt[dart.implements] = () => [core.int, core.double]; |
| 472 dart.setSignature(JSInt, { | 472 dart.setSignature(JSInt, { |
| 473 methods: () => ({ | 473 methods: () => ({ |
| 474 toUnsigned: [core.int, [core.int]], | 474 toUnsigned: [core.int, [core.int]], |
| 475 toSigned: [core.int, [core.int]], | 475 toSigned: [core.int, [core.int]], |
| 476 '~': [core.int, []] | 476 '~': [core.int, []] |
| 477 }), | 477 }), |
| 478 statics: () => ({ | 478 statics: () => ({ |
| 479 _bitCount: [core.int, [core.int]], | 479 _bitCount: [core.int, [core.int]], |
| 480 _shru: [dart.dynamic, [core.int, core.int]], | 480 _shru: [core.Object, [core.int, core.int]], |
| 481 _shrs: [dart.dynamic, [core.int, core.int]], | 481 _shrs: [core.Object, [core.int, core.int]], |
| 482 _ors: [dart.dynamic, [core.int, core.int]], | 482 _ors: [core.Object, [core.int, core.int]], |
| 483 _spread: [core.int, [core.int]] | 483 _spread: [core.int, [core.int]] |
| 484 }), | 484 }), |
| 485 names: ['_bitCount', '_shru', '_shrs', '_ors', '_spread'] | 485 names: ['_bitCount', '_shru', '_shrs', '_ors', '_spread'] |
| 486 }); | 486 }); |
| 487 class JSDouble extends JSNumber { | 487 class JSDouble extends JSNumber { |
| 488 JSDouble() { | 488 JSDouble() { |
| 489 super.JSNumber(); | 489 super.JSNumber(); |
| 490 } | 490 } |
| 491 get runtimeType() { | 491 get runtimeType() { |
| 492 return core.double; | 492 return core.double; |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 dart.setSignature(_CodeUnits, { | 970 dart.setSignature(_CodeUnits, { |
| 971 methods: () => ({[core.$get]: [core.int, [core.int]]}) | 971 methods: () => ({[core.$get]: [core.int, [core.int]]}) |
| 972 }); | 972 }); |
| 973 function _symbolToString(symbol) { | 973 function _symbolToString(symbol) { |
| 974 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 974 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 975 } | 975 } |
| 976 dart.fn(_symbolToString, core.String, [core.Symbol]); | 976 dart.fn(_symbolToString, core.String, [core.Symbol]); |
| 977 function _symbolMapToStringMap(map) { | 977 function _symbolMapToStringMap(map) { |
| 978 if (map == null) | 978 if (map == null) |
| 979 return null; | 979 return null; |
| 980 let result = new (core.Map$(core.String, dart.dynamic))(); | 980 let result = new (core.Map$(core.String, core.Object))(); |
| 981 map.forEach(dart.fn((key, value) => { | 981 map.forEach(dart.fn((key, value) => { |
| 982 result.set(_symbolToString(key), value); | 982 result.set(_symbolToString(key), value); |
| 983 }, dart.dynamic, [core.Symbol, dart.dynamic])); | 983 }, core.Object, [core.Symbol, core.Object])); |
| 984 return result; | 984 return result; |
| 985 } | 985 } |
| 986 dart.fn(_symbolMapToStringMap, dart.dynamic, [core.Map$(core.Symbol, dart.dyna
mic)]); | 986 dart.fn(_symbolMapToStringMap, core.Object, [core.Map$(core.Symbol, core.Objec
t)]); |
| 987 function getInterceptor(object) { | 987 function getInterceptor(object) { |
| 988 return void 0; | 988 return void 0; |
| 989 } | 989 } |
| 990 dart.fn(getInterceptor); | 990 dart.fn(getInterceptor); |
| 991 function getDispatchProperty(object) { | 991 function getDispatchProperty(object) { |
| 992 return object[_foreign_helper.JS_EMBEDDED_GLOBAL('String', _js_embedded_name
s.DISPATCH_PROPERTY_NAME)]; | 992 return object[_foreign_helper.JS_EMBEDDED_GLOBAL('String', _js_embedded_name
s.DISPATCH_PROPERTY_NAME)]; |
| 993 } | 993 } |
| 994 dart.fn(getDispatchProperty); | 994 dart.fn(getDispatchProperty); |
| 995 function setDispatchProperty(object, value) { | 995 function setDispatchProperty(object, value) { |
| 996 _js_helper.defineProperty(object, dart.as(_foreign_helper.JS_EMBEDDED_GLOBAL
('String', _js_embedded_names.DISPATCH_PROPERTY_NAME), core.String), value); | 996 _js_helper.defineProperty(object, dart.as(_foreign_helper.JS_EMBEDDED_GLOBAL
('String', _js_embedded_names.DISPATCH_PROPERTY_NAME), core.String), value); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 return null; | 1069 return null; |
| 1070 } | 1070 } |
| 1071 dart.fn(findIndexForNativeSubclassType, core.int, [core.Type]); | 1071 dart.fn(findIndexForNativeSubclassType, core.int, [core.Type]); |
| 1072 function findInterceptorConstructorForType(type) { | 1072 function findInterceptorConstructorForType(type) { |
| 1073 let index = findIndexForNativeSubclassType(type); | 1073 let index = findIndexForNativeSubclassType(type); |
| 1074 if (index == null) | 1074 if (index == null) |
| 1075 return null; | 1075 return null; |
| 1076 let map = dart.as(exports.mapTypeToInterceptor, core.List); | 1076 let map = dart.as(exports.mapTypeToInterceptor, core.List); |
| 1077 return map[core.$get](dart.notNull(index) + 1); | 1077 return map[core.$get](dart.notNull(index) + 1); |
| 1078 } | 1078 } |
| 1079 dart.fn(findInterceptorConstructorForType, dart.dynamic, [core.Type]); | 1079 dart.fn(findInterceptorConstructorForType, core.Object, [core.Type]); |
| 1080 function findConstructorForNativeSubclassType(type, name) { | 1080 function findConstructorForNativeSubclassType(type, name) { |
| 1081 let index = findIndexForNativeSubclassType(type); | 1081 let index = findIndexForNativeSubclassType(type); |
| 1082 if (index == null) | 1082 if (index == null) |
| 1083 return null; | 1083 return null; |
| 1084 let map = dart.as(exports.mapTypeToInterceptor, core.List); | 1084 let map = dart.as(exports.mapTypeToInterceptor, core.List); |
| 1085 let constructorMap = map[core.$get](dart.notNull(index) + 2); | 1085 let constructorMap = map[core.$get](dart.notNull(index) + 2); |
| 1086 let constructorFn = constructorMap[name]; | 1086 let constructorFn = constructorMap[name]; |
| 1087 return constructorFn; | 1087 return constructorFn; |
| 1088 } | 1088 } |
| 1089 dart.fn(findConstructorForNativeSubclassType, dart.dynamic, [core.Type, core.S
tring]); | 1089 dart.fn(findConstructorForNativeSubclassType, core.Object, [core.Type, core.St
ring]); |
| 1090 function findInterceptorForType(type) { | 1090 function findInterceptorForType(type) { |
| 1091 let constructor = findInterceptorConstructorForType(type); | 1091 let constructor = findInterceptorConstructorForType(type); |
| 1092 if (constructor == null) | 1092 if (constructor == null) |
| 1093 return null; | 1093 return null; |
| 1094 return constructor.prototype; | 1094 return constructor.prototype; |
| 1095 } | 1095 } |
| 1096 dart.fn(findInterceptorForType, dart.dynamic, [core.Type]); | 1096 dart.fn(findInterceptorForType, core.Object, [core.Type]); |
| 1097 class JSBool extends Interceptor { | 1097 class JSBool extends Interceptor { |
| 1098 JSBool() { | 1098 JSBool() { |
| 1099 super.Interceptor(); | 1099 super.Interceptor(); |
| 1100 } | 1100 } |
| 1101 toString() { | 1101 toString() { |
| 1102 return String(this); | 1102 return String(this); |
| 1103 } | 1103 } |
| 1104 get hashCode() { | 1104 get hashCode() { |
| 1105 return this ? 2 * 3 * 23 * 3761 : 269 * 811; | 1105 return this ? 2 * 3 * 23 * 3761 : 269 * 811; |
| 1106 } | 1106 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1124 } | 1124 } |
| 1125 get runtimeType() { | 1125 get runtimeType() { |
| 1126 return core.Null; | 1126 return core.Null; |
| 1127 } | 1127 } |
| 1128 noSuchMethod(invocation) { | 1128 noSuchMethod(invocation) { |
| 1129 return super.noSuchMethod(invocation); | 1129 return super.noSuchMethod(invocation); |
| 1130 } | 1130 } |
| 1131 } | 1131 } |
| 1132 JSNull[dart.implements] = () => [core.Null]; | 1132 JSNull[dart.implements] = () => [core.Null]; |
| 1133 dart.setSignature(JSNull, { | 1133 dart.setSignature(JSNull, { |
| 1134 methods: () => ({'==': [core.bool, [dart.dynamic]]}) | 1134 methods: () => ({'==': [core.bool, [core.Object]]}) |
| 1135 }); | 1135 }); |
| 1136 class JSIndexable extends core.Object {} | 1136 class JSIndexable extends core.Object {} |
| 1137 class JSMutableIndexable extends JSIndexable {} | 1137 class JSMutableIndexable extends JSIndexable {} |
| 1138 class JSObject extends core.Object {} | 1138 class JSObject extends core.Object {} |
| 1139 class JavaScriptObject extends Interceptor { | 1139 class JavaScriptObject extends Interceptor { |
| 1140 JavaScriptObject() { | 1140 JavaScriptObject() { |
| 1141 super.Interceptor(); | 1141 super.Interceptor(); |
| 1142 } | 1142 } |
| 1143 get hashCode() { | 1143 get hashCode() { |
| 1144 return 0; | 1144 return 0; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 exports.findInterceptorForType = findInterceptorForType; | 1192 exports.findInterceptorForType = findInterceptorForType; |
| 1193 exports.JSBool = JSBool; | 1193 exports.JSBool = JSBool; |
| 1194 exports.JSNull = JSNull; | 1194 exports.JSNull = JSNull; |
| 1195 exports.JSIndexable = JSIndexable; | 1195 exports.JSIndexable = JSIndexable; |
| 1196 exports.JSMutableIndexable = JSMutableIndexable; | 1196 exports.JSMutableIndexable = JSMutableIndexable; |
| 1197 exports.JSObject = JSObject; | 1197 exports.JSObject = JSObject; |
| 1198 exports.JavaScriptObject = JavaScriptObject; | 1198 exports.JavaScriptObject = JavaScriptObject; |
| 1199 exports.PlainJavaScriptObject = PlainJavaScriptObject; | 1199 exports.PlainJavaScriptObject = PlainJavaScriptObject; |
| 1200 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; | 1200 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; |
| 1201 })(_interceptors, core, _js_helper, _internal, _foreign_helper, _js_embedded_nam
es); | 1201 })(_interceptors, core, _js_helper, _internal, _foreign_helper, _js_embedded_nam
es); |
| OLD | NEW |