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

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

Issue 1047203002: compute interfaces lazily (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 ConstantMap[dart.implements] = () => [core.Map$(K, V)];
61 dart.defineNamedConstructor(ConstantMap, _$); 61 dart.defineNamedConstructor(ConstantMap, _$);
62 return ConstantMap; 62 return ConstantMap;
63 }); 63 });
64 let ConstantMap = ConstantMap$(dart.dynamic, dart.dynamic); 64 let ConstantMap = ConstantMap$(dart.dynamic, dart.dynamic);
65 let _jsObject = Symbol('_jsObject'); 65 let _jsObject = Symbol('_jsObject');
66 let _keys = Symbol('_keys'); 66 let _keys = Symbol('_keys');
67 let _fetch = Symbol('_fetch'); 67 let _fetch = Symbol('_fetch');
68 let ConstantStringMap$ = dart.generic(function(K, V) { 68 let ConstantStringMap$ = dart.generic(function(K, V) {
69 class ConstantStringMap extends ConstantMap$(K, V) { 69 class ConstantStringMap extends ConstantMap$(K, V) {
70 [_$](length, jsObject$, keys$) { 70 [_$](length, jsObject$, keys$) {
(...skipping 27 matching lines...) Expand all
98 f(dart.as(key, K), dart.as(this[_fetch](key), V)); 98 f(dart.as(key, K), dart.as(this[_fetch](key), V));
99 } 99 }
100 } 100 }
101 get keys() { 101 get keys() {
102 return new _ConstantMapKeyIterable(this); 102 return new _ConstantMapKeyIterable(this);
103 } 103 }
104 get values() { 104 get values() {
105 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"));
106 } 106 }
107 } 107 }
108 ConstantStringMap[dart.implements] = [_internal.EfficientLength]; 108 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength];
109 dart.defineNamedConstructor(ConstantStringMap, _$); 109 dart.defineNamedConstructor(ConstantStringMap, _$);
110 return ConstantStringMap; 110 return ConstantStringMap;
111 }); 111 });
112 let ConstantStringMap = ConstantStringMap$(dart.dynamic, dart.dynamic); 112 let ConstantStringMap = ConstantStringMap$(dart.dynamic, dart.dynamic);
113 let _protoValue = Symbol('_protoValue'); 113 let _protoValue = Symbol('_protoValue');
114 let ConstantProtoMap$ = dart.generic(function(K, V) { 114 let ConstantProtoMap$ = dart.generic(function(K, V) {
115 class ConstantProtoMap extends ConstantStringMap$(K, V) { 115 class ConstantProtoMap extends ConstantStringMap$(K, V) {
116 [_$](length, jsObject, keys, protoValue) { 116 [_$](length, jsObject, keys, protoValue) {
117 this[_protoValue] = protoValue; 117 this[_protoValue] = protoValue;
118 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
571 } 571 }
572 return this[_execAnchored](string, start); 572 return this[_execAnchored](string, start);
573 } 573 }
574 get isMultiLine() { 574 get isMultiLine() {
575 return this[_isMultiLine]; 575 return this[_isMultiLine];
576 } 576 }
577 get isCaseSensitive() { 577 get isCaseSensitive() {
578 return this[_isCaseSensitive]; 578 return this[_isCaseSensitive];
579 } 579 }
580 } 580 }
581 JSSyntaxRegExp[dart.implements] = [core.RegExp]; 581 JSSyntaxRegExp[dart.implements] = () => [core.RegExp];
582 let _match = Symbol('_match'); 582 let _match = Symbol('_match');
583 class _MatchImplementation extends core.Object { 583 class _MatchImplementation extends core.Object {
584 _MatchImplementation(pattern, match$) { 584 _MatchImplementation(pattern, match$) {
585 this.pattern = pattern; 585 this.pattern = pattern;
586 this[_match] = match$; 586 this[_match] = match$;
587 dart.assert(typeof this[_match].input == 'string'); 587 dart.assert(typeof this[_match].input == 'string');
588 dart.assert(typeof this[_match].index == 'number'); 588 dart.assert(typeof this[_match].index == 'number');
589 } 589 }
590 get input() { 590 get input() {
591 return this[_match].input; 591 return this[_match].input;
(...skipping 14 matching lines...) Expand all
606 return dart.notNull(this[_match].length) - 1; 606 return dart.notNull(this[_match].length) - 1;
607 } 607 }
608 groups(groups) { 608 groups(groups) {
609 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));
610 for (let i of groups) { 610 for (let i of groups) {
611 out.add(this.group(i)); 611 out.add(this.group(i));
612 } 612 }
613 return out; 613 return out;
614 } 614 }
615 } 615 }
616 _MatchImplementation[dart.implements] = [core.Match]; 616 _MatchImplementation[dart.implements] = () => [core.Match];
617 let _re = Symbol('_re'); 617 let _re = Symbol('_re');
618 let _string = Symbol('_string'); 618 let _string = Symbol('_string');
619 let _start = Symbol('_start'); 619 let _start = Symbol('_start');
620 class _AllMatchesIterable extends collection.IterableBase$(core.Match) { 620 class _AllMatchesIterable extends collection.IterableBase$(core.Match) {
621 _AllMatchesIterable(re$, string$, start$) { 621 _AllMatchesIterable(re$, string$, start$) {
622 this[_re] = re$; 622 this[_re] = re$;
623 this[_string] = string$; 623 this[_string] = string$;
624 this[_start] = start$; 624 this[_start] = start$;
625 super.IterableBase(); 625 super.IterableBase();
626 } 626 }
(...skipping 27 matching lines...) Expand all
654 } 654 }
655 this[_nextIndex] = nextIndex; 655 this[_nextIndex] = nextIndex;
656 return true; 656 return true;
657 } 657 }
658 } 658 }
659 this[_current] = null; 659 this[_current] = null;
660 this[_string] = null; 660 this[_string] = null;
661 return false; 661 return false;
662 } 662 }
663 } 663 }
664 _AllMatchesIterator[dart.implements] = [core.Iterator$(core.Match)]; 664 _AllMatchesIterator[dart.implements] = () => [core.Iterator$(core.Match)];
665 // Function firstMatchAfter: (JSSyntaxRegExp, String, int) → Match 665 // Function firstMatchAfter: (JSSyntaxRegExp, String, int) → Match
666 function firstMatchAfter(regExp, string, start) { 666 function firstMatchAfter(regExp, string, start) {
667 return regExp._execGlobal(string, start); 667 return regExp._execGlobal(string, start);
668 } 668 }
669 class StringMatch extends core.Object { 669 class StringMatch extends core.Object {
670 StringMatch(start, input, pattern) { 670 StringMatch(start, input, pattern) {
671 this.start = start; 671 this.start = start;
672 this.input = input; 672 this.input = input;
673 this.pattern = pattern; 673 this.pattern = pattern;
674 } 674 }
(...skipping 13 matching lines...) Expand all
688 return this.pattern; 688 return this.pattern;
689 } 689 }
690 groups(groups_) { 690 groups(groups_) {
691 let result = new core.List(); 691 let result = new core.List();
692 for (let g of groups_) { 692 for (let g of groups_) {
693 result.add(this.group(g)); 693 result.add(this.group(g));
694 } 694 }
695 return result; 695 return result;
696 } 696 }
697 } 697 }
698 StringMatch[dart.implements] = [core.Match]; 698 StringMatch[dart.implements] = () => [core.Match];
699 // Function allMatchesInStringUnchecked: (String, String, int) → List<Match> 699 // Function allMatchesInStringUnchecked: (String, String, int) → List<Match>
700 function allMatchesInStringUnchecked(needle, haystack, startIndex) { 700 function allMatchesInStringUnchecked(needle, haystack, startIndex) {
701 let result = new core.List(); 701 let result = new core.List();
702 let length = haystack.length; 702 let length = haystack.length;
703 let patternLength = needle.length; 703 let patternLength = needle.length;
704 while (true) { 704 while (true) {
705 let position = haystack.indexOf(needle, startIndex); 705 let position = haystack.indexOf(needle, startIndex);
706 if (position == -1) { 706 if (position == -1) {
707 break; 707 break;
708 } 708 }
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 let unmangledName = _js_names.unmangleAllIdentifiersIfPreservedAnyways(thi s[_typeName]); 887 let unmangledName = _js_names.unmangleAllIdentifiersIfPreservedAnyways(thi s[_typeName]);
888 return this[_unmangledName] = unmangledName; 888 return this[_unmangledName] = unmangledName;
889 } 889 }
890 get hashCode() { 890 get hashCode() {
891 return this[_typeName].hashCode; 891 return this[_typeName].hashCode;
892 } 892 }
893 ['=='](other) { 893 ['=='](other) {
894 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')));
895 } 895 }
896 } 896 }
897 TypeImpl[dart.implements] = [core.Type]; 897 TypeImpl[dart.implements] = () => [core.Type];
898 class TypeVariable extends core.Object { 898 class TypeVariable extends core.Object {
899 TypeVariable(owner, name, bound) { 899 TypeVariable(owner, name, bound) {
900 this.owner = owner; 900 this.owner = owner;
901 this.name = name; 901 this.name = name;
902 this.bound = bound; 902 this.bound = bound;
903 } 903 }
904 } 904 }
905 // Function getMangledTypeName: (TypeImpl) → dynamic 905 // Function getMangledTypeName: (TypeImpl) → dynamic
906 function getMangledTypeName(type) { 906 function getMangledTypeName(type) {
907 return type[_typeName]; 907 return type[_typeName];
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 if (dart.dload(cached, 'isNoSuchMethod')) { 1510 if (dart.dload(cached, 'isNoSuchMethod')) {
1511 return dart.dinvoke(cached, 'invokeOn', victim, invocation); 1511 return dart.dinvoke(cached, 'invokeOn', victim, invocation);
1512 } else { 1512 } else {
1513 return dart.dinvoke(cached, 'invokeOn', victim, invocation[_arguments]); 1513 return dart.dinvoke(cached, 'invokeOn', victim, invocation[_arguments]);
1514 } 1514 }
1515 } 1515 }
1516 static getCachedInvocation(invocation, victim) { 1516 static getCachedInvocation(invocation, victim) {
1517 return invocation._getCachedInvocation(victim); 1517 return invocation._getCachedInvocation(victim);
1518 } 1518 }
1519 } 1519 }
1520 JSInvocationMirror[dart.implements] = [core.Invocation]; 1520 JSInvocationMirror[dart.implements] = () => [core.Invocation];
1521 JSInvocationMirror.METHOD = 0; 1521 JSInvocationMirror.METHOD = 0;
1522 JSInvocationMirror.GETTER = 1; 1522 JSInvocationMirror.GETTER = 1;
1523 JSInvocationMirror.SETTER = 2; 1523 JSInvocationMirror.SETTER = 2;
1524 class CachedInvocation extends core.Object { 1524 class CachedInvocation extends core.Object {
1525 CachedInvocation(mangledName, jsFunction, isIntercepted, cachedInterceptor) { 1525 CachedInvocation(mangledName, jsFunction, isIntercepted, cachedInterceptor) {
1526 this.mangledName = mangledName; 1526 this.mangledName = mangledName;
1527 this.jsFunction = jsFunction; 1527 this.jsFunction = jsFunction;
1528 this.isIntercepted = isIntercepted; 1528 this.isIntercepted = isIntercepted;
1529 this.cachedInterceptor = cachedInterceptor; 1529 this.cachedInterceptor = cachedInterceptor;
1530 } 1530 }
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 this[_message] = message$; 2390 this[_message] = message$;
2391 this[_method] = dart.as(match == null ? null : match.method, core.String); 2391 this[_method] = dart.as(match == null ? null : match.method, core.String);
2392 super.Error(); 2392 super.Error();
2393 } 2393 }
2394 toString() { 2394 toString() {
2395 if (this[_method] == null) 2395 if (this[_method] == null)
2396 return `NullError: ${this[_message]}`; 2396 return `NullError: ${this[_message]}`;
2397 return `NullError: Cannot call "${this[_method]}" on null`; 2397 return `NullError: Cannot call "${this[_method]}" on null`;
2398 } 2398 }
2399 } 2399 }
2400 NullError[dart.implements] = [core.NoSuchMethodError]; 2400 NullError[dart.implements] = () => [core.NoSuchMethodError];
2401 class JsNoSuchMethodError extends core.Error { 2401 class JsNoSuchMethodError extends core.Error {
2402 JsNoSuchMethodError(message$, match) { 2402 JsNoSuchMethodError(message$, match) {
2403 this[_message] = message$; 2403 this[_message] = message$;
2404 this[_method] = dart.as(match == null ? null : match.method, core.String); 2404 this[_method] = dart.as(match == null ? null : match.method, core.String);
2405 this[_receiver] = dart.as(match == null ? null : match.receiver, core.Stri ng); 2405 this[_receiver] = dart.as(match == null ? null : match.receiver, core.Stri ng);
2406 super.Error(); 2406 super.Error();
2407 } 2407 }
2408 toString() { 2408 toString() {
2409 if (this[_method] == null) 2409 if (this[_method] == null)
2410 return `NoSuchMethodError: ${this[_message]}`; 2410 return `NoSuchMethodError: ${this[_message]}`;
2411 if (this[_receiver] == null) { 2411 if (this[_receiver] == null) {
2412 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa ge]})`; 2412 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa ge]})`;
2413 } 2413 }
2414 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]})`;
2415 } 2415 }
2416 } 2416 }
2417 JsNoSuchMethodError[dart.implements] = [core.NoSuchMethodError]; 2417 JsNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodError];
2418 class UnknownJsTypeError extends core.Error { 2418 class UnknownJsTypeError extends core.Error {
2419 UnknownJsTypeError(message$) { 2419 UnknownJsTypeError(message$) {
2420 this[_message] = message$; 2420 this[_message] = message$;
2421 super.Error(); 2421 super.Error();
2422 } 2422 }
2423 toString() { 2423 toString() {
2424 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; 2424 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`;
2425 } 2425 }
2426 } 2426 }
2427 // Function unwrapException: (dynamic) → dynamic 2427 // Function unwrapException: (dynamic) → dynamic
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 toString() { 2513 toString() {
2514 if (this[_trace] != null) 2514 if (this[_trace] != null)
2515 return this[_trace]; 2515 return this[_trace];
2516 let trace = null; 2516 let trace = null;
2517 if (typeof this[_exception] === "object") { 2517 if (typeof this[_exception] === "object") {
2518 trace = dart.as(this[_exception].stack, core.String); 2518 trace = dart.as(this[_exception].stack, core.String);
2519 } 2519 }
2520 return this[_trace] = trace == null ? '' : trace; 2520 return this[_trace] = trace == null ? '' : trace;
2521 } 2521 }
2522 } 2522 }
2523 _StackTrace[dart.implements] = [core.StackTrace]; 2523 _StackTrace[dart.implements] = () => [core.StackTrace];
2524 // Function objectHashCode: (dynamic) → int 2524 // Function objectHashCode: (dynamic) → int
2525 function objectHashCode(object) { 2525 function objectHashCode(object) {
2526 if (dart.notNull(object == null) || typeof object != 'object') { 2526 if (dart.notNull(object == null) || typeof object != 'object') {
2527 return dart.as(dart.dload(object, 'hashCode'), core.int); 2527 return dart.as(dart.dload(object, 'hashCode'), core.int);
2528 } else { 2528 } else {
2529 return Primitives.objectHashCode(object); 2529 return Primitives.objectHashCode(object);
2530 } 2530 }
2531 } 2531 }
2532 // Function fillLiteralMap: (dynamic, Map<dynamic, dynamic>) → dynamic 2532 // Function fillLiteralMap: (dynamic, Map<dynamic, dynamic>) → dynamic
2533 function fillLiteralMap(keyValuePairs, result) { 2533 function fillLiteralMap(keyValuePairs, result) {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2803 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)}` + '}')();
2804 } 2804 }
2805 dart.assert(1 < dart.notNull(arity) && dart.notNull(arity) < 28); 2805 dart.assert(1 < dart.notNull(arity) && dart.notNull(arity) < 28);
2806 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(",");
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)}` + '}')( ); 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)}` + '}')( );
2808 } 2808 }
2809 toString() { 2809 toString() {
2810 return "Closure"; 2810 return "Closure";
2811 } 2811 }
2812 } 2812 }
2813 Closure[dart.implements] = [core.Function]; 2813 Closure[dart.implements] = () => [core.Function];
2814 Closure.FUNCTION_INDEX = 0; 2814 Closure.FUNCTION_INDEX = 0;
2815 Closure.NAME_INDEX = 1; 2815 Closure.NAME_INDEX = 1;
2816 Closure.CALL_NAME_INDEX = 2; 2816 Closure.CALL_NAME_INDEX = 2;
2817 Closure.REQUIRED_PARAMETER_INDEX = 3; 2817 Closure.REQUIRED_PARAMETER_INDEX = 3;
2818 Closure.OPTIONAL_PARAMETER_INDEX = 4; 2818 Closure.OPTIONAL_PARAMETER_INDEX = 4;
2819 Closure.DEFAULT_ARGUMENTS_INDEX = 5; 2819 Closure.DEFAULT_ARGUMENTS_INDEX = 5;
2820 Closure.functionCounter = 0; 2820 Closure.functionCounter = 0;
2821 // Function closureFromTearOff: (dynamic, dynamic, dynamic, dynamic, dynamic, dynamic) → dynamic 2821 // Function closureFromTearOff: (dynamic, dynamic, dynamic, dynamic, dynamic, dynamic) → dynamic
2822 function closureFromTearOff(receiver, functions, reflectionInfo, isStatic, jsA rguments, name) { 2822 function closureFromTearOff(receiver, functions, reflectionInfo, isStatic, jsA rguments, 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); 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
3193 super.Error(); 3193 super.Error();
3194 } 3194 }
3195 fromMessage(message) { 3195 fromMessage(message) {
3196 this.message = message; 3196 this.message = message;
3197 super.Error(); 3197 super.Error();
3198 } 3198 }
3199 toString() { 3199 toString() {
3200 return this.message; 3200 return this.message;
3201 } 3201 }
3202 } 3202 }
3203 TypeErrorImplementation[dart.implements] = [core.TypeError]; 3203 TypeErrorImplementation[dart.implements] = () => [core.TypeError];
3204 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage'); 3204 dart.defineNamedConstructor(TypeErrorImplementation, 'fromMessage');
3205 class CastErrorImplementation extends core.Error { 3205 class CastErrorImplementation extends core.Error {
3206 CastErrorImplementation(actualType, expectedType) { 3206 CastErrorImplementation(actualType, expectedType) {
3207 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}`;
3208 super.Error(); 3208 super.Error();
3209 } 3209 }
3210 toString() { 3210 toString() {
3211 return this.message; 3211 return this.message;
3212 } 3212 }
3213 } 3213 }
3214 CastErrorImplementation[dart.implements] = [core.CastError]; 3214 CastErrorImplementation[dart.implements] = () => [core.CastError];
3215 class FallThroughErrorImplementation extends core.FallThroughError { 3215 class FallThroughErrorImplementation extends core.FallThroughError {
3216 FallThroughErrorImplementation() { 3216 FallThroughErrorImplementation() {
3217 super.FallThroughError(); 3217 super.FallThroughError();
3218 } 3218 }
3219 toString() { 3219 toString() {
3220 return "Switch case fall-through."; 3220 return "Switch case fall-through.";
3221 } 3221 }
3222 } 3222 }
3223 // Function assertHelper: (dynamic) → void 3223 // Function assertHelper: (dynamic) → void
3224 function assertHelper(condition) { 3224 function assertHelper(condition) {
(...skipping 27 matching lines...) Expand all
3252 } 3252 }
3253 class DeferredNotLoadedError extends core.Error { 3253 class DeferredNotLoadedError extends core.Error {
3254 DeferredNotLoadedError(libraryName) { 3254 DeferredNotLoadedError(libraryName) {
3255 this.libraryName = libraryName; 3255 this.libraryName = libraryName;
3256 super.Error(); 3256 super.Error();
3257 } 3257 }
3258 toString() { 3258 toString() {
3259 return `Deferred library ${this.libraryName} was not loaded.`; 3259 return `Deferred library ${this.libraryName} was not loaded.`;
3260 } 3260 }
3261 } 3261 }
3262 DeferredNotLoadedError[dart.implements] = [core.NoSuchMethodError]; 3262 DeferredNotLoadedError[dart.implements] = () => [core.NoSuchMethodError];
3263 class RuntimeType extends core.Object { 3263 class RuntimeType extends core.Object {
3264 RuntimeType() { 3264 RuntimeType() {
3265 } 3265 }
3266 } 3266 }
3267 let _isTest = Symbol('_isTest'); 3267 let _isTest = Symbol('_isTest');
3268 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom'); 3268 let _extractFunctionTypeObjectFrom = Symbol('_extractFunctionTypeObjectFrom');
3269 let _asCheck = Symbol('_asCheck'); 3269 let _asCheck = Symbol('_asCheck');
3270 let _check = Symbol('_check'); 3270 let _check = Symbol('_check');
3271 let _assertCheck = Symbol('_assertCheck'); 3271 let _assertCheck = Symbol('_assertCheck');
3272 class RuntimeFunctionType extends RuntimeType { 3272 class RuntimeFunctionType extends RuntimeType {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
3627 } 3627 }
3628 class UnimplementedNoSuchMethodError extends core.Error { 3628 class UnimplementedNoSuchMethodError extends core.Error {
3629 UnimplementedNoSuchMethodError(message$) { 3629 UnimplementedNoSuchMethodError(message$) {
3630 this[_message] = message$; 3630 this[_message] = message$;
3631 super.Error(); 3631 super.Error();
3632 } 3632 }
3633 toString() { 3633 toString() {
3634 return `Unsupported operation: ${this[_message]}`; 3634 return `Unsupported operation: ${this[_message]}`;
3635 } 3635 }
3636 } 3636 }
3637 UnimplementedNoSuchMethodError[dart.implements] = [core.NoSuchMethodError]; 3637 UnimplementedNoSuchMethodError[dart.implements] = () => [core.NoSuchMethodErro r];
3638 // Function random64: () → int 3638 // Function random64: () → int
3639 function random64() { 3639 function random64() {
3640 let int32a = Math.random() * 0x100000000 >>> 0; 3640 let int32a = Math.random() * 0x100000000 >>> 0;
3641 let int32b = Math.random() * 0x100000000 >>> 0; 3641 let int32b = Math.random() * 0x100000000 >>> 0;
3642 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296; 3642 return dart.notNull(int32a) + dart.notNull(int32b) * 4294967296;
3643 } 3643 }
3644 // Function jsonEncodeNative: (String) → String 3644 // Function jsonEncodeNative: (String) → String
3645 function jsonEncodeNative(string) { 3645 function jsonEncodeNative(string) {
3646 return JSON.stringify(string); 3646 return JSON.stringify(string);
3647 } 3647 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
3760 } 3760 }
3761 class MainError extends core.Error { 3761 class MainError extends core.Error {
3762 MainError(message$) { 3762 MainError(message$) {
3763 this[_message] = message$; 3763 this[_message] = message$;
3764 super.Error(); 3764 super.Error();
3765 } 3765 }
3766 toString() { 3766 toString() {
3767 return `NoSuchMethodError: ${this[_message]}`; 3767 return `NoSuchMethodError: ${this[_message]}`;
3768 } 3768 }
3769 } 3769 }
3770 MainError[dart.implements] = [core.NoSuchMethodError]; 3770 MainError[dart.implements] = () => [core.NoSuchMethodError];
3771 // Function missingMain: () → void 3771 // Function missingMain: () → void
3772 function missingMain() { 3772 function missingMain() {
3773 throw new MainError("No top-level function named 'main'."); 3773 throw new MainError("No top-level function named 'main'.");
3774 } 3774 }
3775 // Function badMain: () → void 3775 // Function badMain: () → void
3776 function badMain() { 3776 function badMain() {
3777 throw new MainError("'main' is not a function."); 3777 throw new MainError("'main' is not a function.");
3778 } 3778 }
3779 // Function mainHasTooManyParameters: () → void 3779 // Function mainHasTooManyParameters: () → void
3780 function mainHasTooManyParameters() { 3780 function mainHasTooManyParameters() {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
4002 exports.UnimplementedNoSuchMethodError = UnimplementedNoSuchMethodError; 4002 exports.UnimplementedNoSuchMethodError = UnimplementedNoSuchMethodError;
4003 exports.random64 = random64; 4003 exports.random64 = random64;
4004 exports.jsonEncodeNative = jsonEncodeNative; 4004 exports.jsonEncodeNative = jsonEncodeNative;
4005 exports.getIsolateAffinityTag = getIsolateAffinityTag; 4005 exports.getIsolateAffinityTag = getIsolateAffinityTag;
4006 exports.loadDeferredLibrary = loadDeferredLibrary; 4006 exports.loadDeferredLibrary = loadDeferredLibrary;
4007 exports.MainError = MainError; 4007 exports.MainError = MainError;
4008 exports.missingMain = missingMain; 4008 exports.missingMain = missingMain;
4009 exports.badMain = badMain; 4009 exports.badMain = badMain;
4010 exports.mainHasTooManyParameters = mainHasTooManyParameters; 4010 exports.mainHasTooManyParameters = mainHasTooManyParameters;
4011 })(_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