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

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

Issue 1043003002: keep mixin and interface implementation info at runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 | « lib/runtime/dart/_isolate_helper.js ('k') | lib/runtime/dart/_native_typed_data.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 _js_helper; 1 var _js_helper;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class NoSideEffects extends core.Object { 4 class NoSideEffects extends core.Object {
5 NoSideEffects() { 5 NoSideEffects() {
6 } 6 }
7 } 7 }
8 class NoThrows extends core.Object { 8 class NoThrows extends core.Object {
9 NoThrows() { 9 NoThrows() {
10 } 10 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 remove(key) { 50 remove(key) {
51 return dart.as(this[_throwUnmodifiable](), V); 51 return dart.as(this[_throwUnmodifiable](), V);
52 } 52 }
53 clear() { 53 clear() {
54 return this[_throwUnmodifiable](); 54 return this[_throwUnmodifiable]();
55 } 55 }
56 addAll(other) { 56 addAll(other) {
57 return this[_throwUnmodifiable](); 57 return this[_throwUnmodifiable]();
58 } 58 }
59 } 59 }
60 ConstantMap[dart.implements] = [core.Map$(K, V)];
60 dart.defineNamedConstructor(ConstantMap, _$); 61 dart.defineNamedConstructor(ConstantMap, _$);
61 return ConstantMap; 62 return ConstantMap;
62 }); 63 });
63 let ConstantMap = ConstantMap$(dart.dynamic, dart.dynamic); 64 let ConstantMap = ConstantMap$(dart.dynamic, dart.dynamic);
64 let _jsObject = Symbol('_jsObject'); 65 let _jsObject = Symbol('_jsObject');
65 let _keys = Symbol('_keys'); 66 let _keys = Symbol('_keys');
66 let _fetch = Symbol('_fetch'); 67 let _fetch = Symbol('_fetch');
67 let ConstantStringMap$ = dart.generic(function(K, V) { 68 let ConstantStringMap$ = dart.generic(function(K, V) {
68 class ConstantStringMap extends ConstantMap$(K, V) { 69 class ConstantStringMap extends ConstantMap$(K, V) {
69 [_$](length, jsObject$, keys$) { 70 [_$](length, jsObject$, keys$) {
(...skipping 27 matching lines...) Expand all
97 f(dart.as(key, K), dart.as(this[_fetch](key), V)); 98 f(dart.as(key, K), dart.as(this[_fetch](key), V));
98 } 99 }
99 } 100 }
100 get keys() { 101 get keys() {
101 return new _ConstantMapKeyIterable(this); 102 return new _ConstantMapKeyIterable(this);
102 } 103 }
103 get values() { 104 get values() {
104 return new _internal.MappedIterable(this[_keys], dart.closureWrap(((key) => this[_fetch](key)).bind(this), "(K) → V")); 105 return new _internal.MappedIterable(this[_keys], dart.closureWrap(((key) => this[_fetch](key)).bind(this), "(K) → V"));
105 } 106 }
106 } 107 }
108 ConstantStringMap[dart.implements] = [_internal.EfficientLength];
107 dart.defineNamedConstructor(ConstantStringMap, _$); 109 dart.defineNamedConstructor(ConstantStringMap, _$);
108 return ConstantStringMap; 110 return ConstantStringMap;
109 }); 111 });
110 let ConstantStringMap = ConstantStringMap$(dart.dynamic, dart.dynamic); 112 let ConstantStringMap = ConstantStringMap$(dart.dynamic, dart.dynamic);
111 let _protoValue = Symbol('_protoValue'); 113 let _protoValue = Symbol('_protoValue');
112 let ConstantProtoMap$ = dart.generic(function(K, V) { 114 let ConstantProtoMap$ = dart.generic(function(K, V) {
113 class ConstantProtoMap extends ConstantStringMap$(K, V) { 115 class ConstantProtoMap extends ConstantStringMap$(K, V) {
114 [_$](length, jsObject, keys, protoValue) { 116 [_$](length, jsObject, keys, protoValue) {
115 this[_protoValue] = protoValue; 117 this[_protoValue] = protoValue;
116 super[_$](dart.as(length, core.int), jsObject, dart.as(keys, core.List$( K))); 118 super[_$](dart.as(length, core.int), jsObject, dart.as(keys, core.List$( K)));
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 } 571 }
570 return this[_execAnchored](string, start); 572 return this[_execAnchored](string, start);
571 } 573 }
572 get isMultiLine() { 574 get isMultiLine() {
573 return this[_isMultiLine]; 575 return this[_isMultiLine];
574 } 576 }
575 get isCaseSensitive() { 577 get isCaseSensitive() {
576 return this[_isCaseSensitive]; 578 return this[_isCaseSensitive];
577 } 579 }
578 } 580 }
581 JSSyntaxRegExp[dart.implements] = [core.RegExp];
579 let _match = Symbol('_match'); 582 let _match = Symbol('_match');
580 class _MatchImplementation extends core.Object { 583 class _MatchImplementation extends core.Object {
581 _MatchImplementation(pattern, match$) { 584 _MatchImplementation(pattern, match$) {
582 this.pattern = pattern; 585 this.pattern = pattern;
583 this[_match] = match$; 586 this[_match] = match$;
584 dart.assert(typeof this[_match].input == 'string'); 587 dart.assert(typeof this[_match].input == 'string');
585 dart.assert(typeof this[_match].index == 'number'); 588 dart.assert(typeof this[_match].index == 'number');
586 } 589 }
587 get input() { 590 get input() {
588 return this[_match].input; 591 return this[_match].input;
(...skipping 14 matching lines...) Expand all
603 return dart.notNull(this[_match].length) - 1; 606 return dart.notNull(this[_match].length) - 1;
604 } 607 }
605 groups(groups) { 608 groups(groups) {
606 let out = dart.as(new core.List.from([]), core.List$(core.String)); 609 let out = dart.as(new core.List.from([]), core.List$(core.String));
607 for (let i of groups) { 610 for (let i of groups) {
608 out.add(this.group(i)); 611 out.add(this.group(i));
609 } 612 }
610 return out; 613 return out;
611 } 614 }
612 } 615 }
616 _MatchImplementation[dart.implements] = [core.Match];
613 let _re = Symbol('_re'); 617 let _re = Symbol('_re');
614 let _string = Symbol('_string'); 618 let _string = Symbol('_string');
615 let _start = Symbol('_start'); 619 let _start = Symbol('_start');
616 class _AllMatchesIterable extends collection.IterableBase$(core.Match) { 620 class _AllMatchesIterable extends collection.IterableBase$(core.Match) {
617 _AllMatchesIterable(re$, string$, start$) { 621 _AllMatchesIterable(re$, string$, start$) {
618 this[_re] = re$; 622 this[_re] = re$;
619 this[_string] = string$; 623 this[_string] = string$;
620 this[_start] = start$; 624 this[_start] = start$;
621 super.IterableBase(); 625 super.IterableBase();
622 } 626 }
(...skipping 27 matching lines...) Expand all
650 } 654 }
651 this[_nextIndex] = nextIndex; 655 this[_nextIndex] = nextIndex;
652 return true; 656 return true;
653 } 657 }
654 } 658 }
655 this[_current] = null; 659 this[_current] = null;
656 this[_string] = null; 660 this[_string] = null;
657 return false; 661 return false;
658 } 662 }
659 } 663 }
664 _AllMatchesIterator[dart.implements] = [core.Iterator$(core.Match)];
660 // Function firstMatchAfter: (JSSyntaxRegExp, String, int) → Match 665 // Function firstMatchAfter: (JSSyntaxRegExp, String, int) → Match
661 function firstMatchAfter(regExp, string, start) { 666 function firstMatchAfter(regExp, string, start) {
662 return regExp._execGlobal(string, start); 667 return regExp._execGlobal(string, start);
663 } 668 }
664 class StringMatch extends core.Object { 669 class StringMatch extends core.Object {
665 StringMatch(start, input, pattern) { 670 StringMatch(start, input, pattern) {
666 this.start = start; 671 this.start = start;
667 this.input = input; 672 this.input = input;
668 this.pattern = pattern; 673 this.pattern = pattern;
669 } 674 }
(...skipping 13 matching lines...) Expand all
683 return this.pattern; 688 return this.pattern;
684 } 689 }
685 groups(groups_) { 690 groups(groups_) {
686 let result = new core.List(); 691 let result = new core.List();
687 for (let g of groups_) { 692 for (let g of groups_) {
688 result.add(this.group(g)); 693 result.add(this.group(g));
689 } 694 }
690 return result; 695 return result;
691 } 696 }
692 } 697 }
698 StringMatch[dart.implements] = [core.Match];
693 // Function allMatchesInStringUnchecked: (String, String, int) → List<Match> 699 // Function allMatchesInStringUnchecked: (String, String, int) → List<Match>
694 function allMatchesInStringUnchecked(needle, haystack, startIndex) { 700 function allMatchesInStringUnchecked(needle, haystack, startIndex) {
695 let result = new core.List(); 701 let result = new core.List();
696 let length = haystack.length; 702 let length = haystack.length;
697 let patternLength = needle.length; 703 let patternLength = needle.length;
698 while (true) { 704 while (true) {
699 let position = haystack.indexOf(needle, startIndex); 705 let position = haystack.indexOf(needle, startIndex);
700 if (position === -1) { 706 if (position === -1) {
701 break; 707 break;
702 } 708 }
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 let unmangledName = _js_names.unmangleAllIdentifiersIfPreservedAnyways(thi s[_typeName]); 887 let unmangledName = _js_names.unmangleAllIdentifiersIfPreservedAnyways(thi s[_typeName]);
882 return this[_unmangledName] = unmangledName; 888 return this[_unmangledName] = unmangledName;
883 } 889 }
884 get hashCode() { 890 get hashCode() {
885 return this[_typeName].hashCode; 891 return this[_typeName].hashCode;
886 } 892 }
887 ['=='](other) { 893 ['=='](other) {
888 return dart.notNull(dart.is(other, TypeImpl)) && dart.notNull(dart.equals( this[_typeName], dart.dload(other, '_typeName'))); 894 return dart.notNull(dart.is(other, TypeImpl)) && dart.notNull(dart.equals( this[_typeName], dart.dload(other, '_typeName')));
889 } 895 }
890 } 896 }
897 TypeImpl[dart.implements] = [core.Type];
891 class TypeVariable extends core.Object { 898 class TypeVariable extends core.Object {
892 TypeVariable(owner, name, bound) { 899 TypeVariable(owner, name, bound) {
893 this.owner = owner; 900 this.owner = owner;
894 this.name = name; 901 this.name = name;
895 this.bound = bound; 902 this.bound = bound;
896 } 903 }
897 } 904 }
898 // Function getMangledTypeName: (TypeImpl) → dynamic 905 // Function getMangledTypeName: (TypeImpl) → dynamic
899 function getMangledTypeName(type) { 906 function getMangledTypeName(type) {
900 return type[_typeName]; 907 return type[_typeName];
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 if (dart.dload(cached, 'isNoSuchMethod')) { 1510 if (dart.dload(cached, 'isNoSuchMethod')) {
1504 return dart.dinvoke(cached, 'invokeOn', victim, invocation); 1511 return dart.dinvoke(cached, 'invokeOn', victim, invocation);
1505 } else { 1512 } else {
1506 return dart.dinvoke(cached, 'invokeOn', victim, invocation[_arguments]); 1513 return dart.dinvoke(cached, 'invokeOn', victim, invocation[_arguments]);
1507 } 1514 }
1508 } 1515 }
1509 static getCachedInvocation(invocation, victim) { 1516 static getCachedInvocation(invocation, victim) {
1510 return invocation._getCachedInvocation(victim); 1517 return invocation._getCachedInvocation(victim);
1511 } 1518 }
1512 } 1519 }
1520 JSInvocationMirror[dart.implements] = [core.Invocation];
1513 JSInvocationMirror.METHOD = 0; 1521 JSInvocationMirror.METHOD = 0;
1514 JSInvocationMirror.GETTER = 1; 1522 JSInvocationMirror.GETTER = 1;
1515 JSInvocationMirror.SETTER = 2; 1523 JSInvocationMirror.SETTER = 2;
1516 class CachedInvocation extends core.Object { 1524 class CachedInvocation extends core.Object {
1517 CachedInvocation(mangledName, jsFunction, isIntercepted, cachedInterceptor) { 1525 CachedInvocation(mangledName, jsFunction, isIntercepted, cachedInterceptor) {
1518 this.mangledName = mangledName; 1526 this.mangledName = mangledName;
1519 this.jsFunction = jsFunction; 1527 this.jsFunction = jsFunction;
1520 this.isIntercepted = isIntercepted; 1528 this.isIntercepted = isIntercepted;
1521 this.cachedInterceptor = cachedInterceptor; 1529 this.cachedInterceptor = cachedInterceptor;
1522 } 1530 }
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 this[_message] = message$; 2390 this[_message] = message$;
2383 this[_method] = dart.as(match === null ? null : match.method, core.String) ; 2391 this[_method] = dart.as(match === null ? null : match.method, core.String) ;
2384 super.Error(); 2392 super.Error();
2385 } 2393 }
2386 toString() { 2394 toString() {
2387 if (this[_method] === null) 2395 if (this[_method] === null)
2388 return `NullError: ${this[_message]}`; 2396 return `NullError: ${this[_message]}`;
2389 return `NullError: Cannot call "${this[_method]}" on null`; 2397 return `NullError: Cannot call "${this[_method]}" on null`;
2390 } 2398 }
2391 } 2399 }
2400 NullError[dart.implements] = [core.NoSuchMethodError];
2392 class JsNoSuchMethodError extends core.Error { 2401 class JsNoSuchMethodError extends core.Error {
2393 JsNoSuchMethodError(message$, match) { 2402 JsNoSuchMethodError(message$, match) {
2394 this[_message] = message$; 2403 this[_message] = message$;
2395 this[_method] = dart.as(match === null ? null : match.method, core.String) ; 2404 this[_method] = dart.as(match === null ? null : match.method, core.String) ;
2396 this[_receiver] = dart.as(match === null ? null : match.receiver, core.Str ing); 2405 this[_receiver] = dart.as(match === null ? null : match.receiver, core.Str ing);
2397 super.Error(); 2406 super.Error();
2398 } 2407 }
2399 toString() { 2408 toString() {
2400 if (this[_method] === null) 2409 if (this[_method] === null)
2401 return `NoSuchMethodError: ${this[_message]}`; 2410 return `NoSuchMethodError: ${this[_message]}`;
2402 if (this[_receiver] === null) { 2411 if (this[_receiver] === null) {
2403 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa ge]})`; 2412 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa ge]})`;
2404 } 2413 }
2405 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece iver]}" ` + `(${this[_message]})`; 2414 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece iver]}" ` + `(${this[_message]})`;
2406 } 2415 }
2407 } 2416 }
2417 JsNoSuchMethodError[dart.implements] = [core.NoSuchMethodError];
2408 class UnknownJsTypeError extends core.Error { 2418 class UnknownJsTypeError extends core.Error {
2409 UnknownJsTypeError(message$) { 2419 UnknownJsTypeError(message$) {
2410 this[_message] = message$; 2420 this[_message] = message$;
2411 super.Error(); 2421 super.Error();
2412 } 2422 }
2413 toString() { 2423 toString() {
2414 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; 2424 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`;
2415 } 2425 }
2416 } 2426 }
2417 // Function unwrapException: (dynamic) → dynamic 2427 // Function unwrapException: (dynamic) → dynamic
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 toString() { 2513 toString() {
2504 if (this[_trace] !== null) 2514 if (this[_trace] !== null)
2505 return this[_trace]; 2515 return this[_trace];
2506 let trace = null; 2516 let trace = null;
2507 if (typeof this[_exception] === "object") { 2517 if (typeof this[_exception] === "object") {
2508 trace = dart.as(this[_exception].stack, core.String); 2518 trace = dart.as(this[_exception].stack, core.String);
2509 } 2519 }
2510 return this[_trace] = trace === null ? '' : trace; 2520 return this[_trace] = trace === null ? '' : trace;
2511 } 2521 }
2512 } 2522 }
2523 _StackTrace[dart.implements] = [core.StackTrace];
2513 // Function objectHashCode: (dynamic) → int 2524 // Function objectHashCode: (dynamic) → int
2514 function objectHashCode(object) { 2525 function objectHashCode(object) {
2515 if (dart.notNull(object === null) || typeof object != 'object') { 2526 if (dart.notNull(object === null) || typeof object != 'object') {
2516 return dart.as(dart.dload(object, 'hashCode'), core.int); 2527 return dart.as(dart.dload(object, 'hashCode'), core.int);
2517 } else { 2528 } else {
2518 return Primitives.objectHashCode(object); 2529 return Primitives.objectHashCode(object);
2519 } 2530 }
2520 } 2531 }
2521 // Function fillLiteralMap: (dynamic, Map<dynamic, dynamic>) → dynamic 2532 // Function fillLiteralMap: (dynamic, Map<dynamic, dynamic>) → dynamic
2522 function fillLiteralMap(keyValuePairs, result) { 2533 function fillLiteralMap(keyValuePairs, result) {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 return new Function('return function(){' + `return this.${selfField}.${s tubName}(this.${receiverField});` + `${((x$) => Closure.functionCounter = dart.n otNull(x$) + 1, x$)(Closure.functionCounter)}` + '}')(); 2803 return new Function('return function(){' + `return this.${selfField}.${s tubName}(this.${receiverField});` + `${((x$) => Closure.functionCounter = dart.n otNull(x$) + 1, x$)(Closure.functionCounter)}` + '}')();
2793 } 2804 }
2794 dart.assert(1 < dart.notNull(arity) && dart.notNull(arity) < 28); 2805 dart.assert(1 < dart.notNull(arity) && dart.notNull(arity) < 28);
2795 let arguments$ = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, dart.not Null(arity) - 1).join(","); 2806 let arguments$ = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, dart.not Null(arity) - 1).join(",");
2796 return new Function(`return function(${arguments$}){` + `return this.${sel fField}.${stubName}(this.${receiverField}, ${arguments$});` + `${((x$) => Closur e.functionCounter = dart.notNull(x$) + 1, x$)(Closure.functionCounter)}` + '}')( ); 2807 return new Function(`return function(${arguments$}){` + `return this.${sel fField}.${stubName}(this.${receiverField}, ${arguments$});` + `${((x$) => Closur e.functionCounter = dart.notNull(x$) + 1, x$)(Closure.functionCounter)}` + '}')( );
2797 } 2808 }
2798 toString() { 2809 toString() {
2799 return "Closure"; 2810 return "Closure";
2800 } 2811 }
2801 } 2812 }
2813 Closure[dart.implements] = [core.Function];
2802 Closure.FUNCTION_INDEX = 0; 2814 Closure.FUNCTION_INDEX = 0;
2803 Closure.NAME_INDEX = 1; 2815 Closure.NAME_INDEX = 1;
2804 Closure.CALL_NAME_INDEX = 2; 2816 Closure.CALL_NAME_INDEX = 2;
2805 Closure.REQUIRED_PARAMETER_INDEX = 3; 2817 Closure.REQUIRED_PARAMETER_INDEX = 3;
2806 Closure.OPTIONAL_PARAMETER_INDEX = 4; 2818 Closure.OPTIONAL_PARAMETER_INDEX = 4;
2807 Closure.DEFAULT_ARGUMENTS_INDEX = 5; 2819 Closure.DEFAULT_ARGUMENTS_INDEX = 5;
2808 Closure.functionCounter = 0; 2820 Closure.functionCounter = 0;
2809 // Function closureFromTearOff: (dynamic, dynamic, dynamic, dynamic, dynamic, dynamic) → dynamic 2821 // Function closureFromTearOff: (dynamic, dynamic, dynamic, dynamic, dynamic, dynamic) → dynamic
2810 function closureFromTearOff(receiver, functions, reflectionInfo, isStatic, jsA rguments, name) { 2822 function closureFromTearOff(receiver, functions, reflectionInfo, isStatic, jsA rguments, name) {
2811 return Closure.fromTearOff(receiver, _interceptors.JSArray.markFixedList(dar t.as(functions, core.List)), _interceptors.JSArray.markFixedList(dart.as(reflect ionInfo, core.List)), !!isStatic, jsArguments, name); 2823 return Closure.fromTearOff(receiver, _interceptors.JSArray.markFixedList(dar t.as(functions, core.List)), _interceptors.JSArray.markFixedList(dart.as(reflect ionInfo, core.List)), !!isStatic, jsArguments, name);
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
3181 super.Error(); 3193 super.Error();
3182 } 3194 }
3183 fromMessage(message) { 3195 fromMessage(message) {
3184 this.message = message; 3196 this.message = message;
3185 super.Error(); 3197 super.Error();
3186 } 3198 }
3187 toString() { 3199 toString() {
3188 return this.message; 3200 return this.message;
3189 } 3201 }
3190 } 3202 }
3203 TypeErrorImplementation[dart.implements] = [core.TypeError];
3191 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage'); 3204 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage');
3192 class CastErrorImplementation extends core.Error { 3205 class CastErrorImplementation extends core.Error {
3193 CastErrorImplementation(actualType, expectedType) { 3206 CastErrorImplementation(actualType, expectedType) {
3194 this.message = `CastError: Casting value of type ${actualType} to` + ` inc ompatible type ${expectedType}`; 3207 this.message = `CastError: Casting value of type ${actualType} to` + ` inc ompatible type ${expectedType}`;
3195 super.Error(); 3208 super.Error();
3196 } 3209 }
3197 toString() { 3210 toString() {
3198 return this.message; 3211 return this.message;
3199 } 3212 }
3200 } 3213 }
3214 CastErrorImplementation[dart.implements] = [core.CastError];
3201 class FallThroughErrorImplementation extends core.FallThroughError { 3215 class FallThroughErrorImplementation extends core.FallThroughError {
3202 FallThroughErrorImplementation() { 3216 FallThroughErrorImplementation() {
3203 super.FallThroughError(); 3217 super.FallThroughError();
3204 } 3218 }
3205 toString() { 3219 toString() {
3206 return "Switch case fall-through."; 3220 return "Switch case fall-through.";
3207 } 3221 }
3208 } 3222 }
3209 // Function assertHelper: (dynamic) → void 3223 // Function assertHelper: (dynamic) → void
3210 function assertHelper(condition) { 3224 function assertHelper(condition) {
(...skipping 27 matching lines...) Expand all
3238 } 3252 }
3239 class DeferredNotLoadedError extends core.Error { 3253 class DeferredNotLoadedError extends core.Error {
3240 DeferredNotLoadedError(libraryName) { 3254 DeferredNotLoadedError(libraryName) {
3241 this.libraryName = libraryName; 3255 this.libraryName = libraryName;
3242 super.Error(); 3256 super.Error();
3243 } 3257 }
3244 toString() { 3258 toString() {
3245 return `Deferred library ${this.libraryName} was not loaded.`; 3259 return `Deferred library ${this.libraryName} was not loaded.`;
3246 } 3260 }
3247 } 3261 }
3262 DeferredNotLoadedError[dart.implements] = [core.NoSuchMethodError];
3248 class RuntimeType extends core.Object { 3263 class RuntimeType extends core.Object {
3249 RuntimeType() { 3264 RuntimeType() {
3250 } 3265 }
3251 } 3266 }
3252 let _isTest = Symbol('_isTest'); 3267 let _isTest = Symbol('_isTest');
3253 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom'); 3268 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom');
3254 let _asCheck = Symbol('_asCheck'); 3269 let _asCheck = Symbol('_asCheck');
3255 let _check = Symbol('_check'); 3270 let _check = Symbol('_check');
3256 let _assertCheck = Symbol('_assertCheck'); 3271 let _assertCheck = Symbol('_assertCheck');
3257 class RuntimeFunctionType extends RuntimeType { 3272 class RuntimeFunctionType extends RuntimeType {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
3612 } 3627 }
3613 class UnimplementedNoSuchMethodError extends core.Error { 3628 class UnimplementedNoSuchMethodError extends core.Error {
3614 UnimplementedNoSuchMethodError(message$) { 3629 UnimplementedNoSuchMethodError(message$) {
3615 this[_message] = message$; 3630 this[_message] = message$;
3616 super.Error(); 3631 super.Error();
3617 } 3632 }
3618 toString() { 3633 toString() {
3619 return `Unsupported operation: ${this[_message]}`; 3634 return `Unsupported operation: ${this[_message]}`;
3620 } 3635 }
3621 } 3636 }
3637 UnimplementedNoSuchMethodError[dart.implements] = [core.NoSuchMethodError];
3622 // Function random64: () → int 3638 // Function random64: () → int
3623 function random64() { 3639 function random64() {
3624 let int32a = Math.random() * 0x100000000 >>> 0; 3640 let int32a = Math.random() * 0x100000000 >>> 0;
3625 let int32b = Math.random() * 0x100000000 >>> 0; 3641 let int32b = Math.random() * 0x100000000 >>> 0;
3626 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296; 3642 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296;
3627 } 3643 }
3628 // Function jsonEncodeNative: (String) → String 3644 // Function jsonEncodeNative: (String) → String
3629 function jsonEncodeNative(string) { 3645 function jsonEncodeNative(string) {
3630 return JSON.stringify(string); 3646 return JSON.stringify(string);
3631 } 3647 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
3744 } 3760 }
3745 class MainError extends core.Error { 3761 class MainError extends core.Error {
3746 MainError(message$) { 3762 MainError(message$) {
3747 this[_message] = message$; 3763 this[_message] = message$;
3748 super.Error(); 3764 super.Error();
3749 } 3765 }
3750 toString() { 3766 toString() {
3751 return `NoSuchMethodError: ${this[_message]}`; 3767 return `NoSuchMethodError: ${this[_message]}`;
3752 } 3768 }
3753 } 3769 }
3770 MainError[dart.implements] = [core.NoSuchMethodError];
3754 // Function missingMain: () → void 3771 // Function missingMain: () → void
3755 function missingMain() { 3772 function missingMain() {
3756 throw new MainError("No top-level function named 'main'."); 3773 throw new MainError("No top-level function named 'main'.");
3757 } 3774 }
3758 // Function badMain: () → void 3775 // Function badMain: () → void
3759 function badMain() { 3776 function badMain() {
3760 throw new MainError("'main' is not a function."); 3777 throw new MainError("'main' is not a function.");
3761 } 3778 }
3762 // Function mainHasTooManyParameters: () → void 3779 // Function mainHasTooManyParameters: () → void
3763 function mainHasTooManyParameters() { 3780 function mainHasTooManyParameters() {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3985 exports.UnimplementedNoSuchMethodError = UnimplementedNoSuchMethodError; 4002 exports.UnimplementedNoSuchMethodError = UnimplementedNoSuchMethodError;
3986 exports.random64 = random64; 4003 exports.random64 = random64;
3987 exports.jsonEncodeNative = jsonEncodeNative; 4004 exports.jsonEncodeNative = jsonEncodeNative;
3988 exports.getIsolateAffinityTag = getIsolateAffinityTag; 4005 exports.getIsolateAffinityTag = getIsolateAffinityTag;
3989 exports.loadDeferredLibrary = loadDeferredLibrary; 4006 exports.loadDeferredLibrary = loadDeferredLibrary;
3990 exports.MainError = MainError; 4007 exports.MainError = MainError;
3991 exports.missingMain = missingMain; 4008 exports.missingMain = missingMain;
3992 exports.badMain = badMain; 4009 exports.badMain = badMain;
3993 exports.mainHasTooManyParameters = mainHasTooManyParameters; 4010 exports.mainHasTooManyParameters = mainHasTooManyParameters;
3994 })(_js_helper || (_js_helper = {})); 4011 })(_js_helper || (_js_helper = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/_isolate_helper.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698