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

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

Issue 1099333002: canonicalize const (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 | « no previous file | lib/runtime/dart/_internal.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[dart.implements] = () => [JSMutableIndexable]; 7 JSMutableArray[dart.implements] = () => [JSMutableIndexable];
8 return JSMutableArray; 8 return JSMutableArray;
9 }); 9 });
10 let JSMutableArray = JSMutableArray$(); 10 let JSMutableArray = JSMutableArray$();
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 if (endIndex == 0) 713 if (endIndex == 0)
714 return ""; 714 return "";
715 return result.substring(0, endIndex); 715 return result.substring(0, endIndex);
716 } 716 }
717 ['*'](times) { 717 ['*'](times) {
718 if (0 >= dart.notNull(times)) 718 if (0 >= dart.notNull(times))
719 return ''; 719 return '';
720 if (times == 1 || this.length == 0) 720 if (times == 1 || this.length == 0)
721 return this; 721 return this;
722 if (!dart.equals(times, times >>> 0)) { 722 if (!dart.equals(times, times >>> 0)) {
723 throw new core.OutOfMemoryError(); 723 throw dart.const(new core.OutOfMemoryError());
724 } 724 }
725 let result = ''; 725 let result = '';
726 let s = this; 726 let s = this;
727 while (true) { 727 while (true) {
728 if ((dart.notNull(times) & 1) == 1) 728 if ((dart.notNull(times) & 1) == 1)
729 result = s['+'](result); 729 result = s['+'](result);
730 times = dart.as(times >>> 1, core.int); 730 times = dart.as(times >>> 1, core.int);
731 if (times == 0) 731 if (times == 0)
732 break; 732 break;
733 s = s['+'](s); 733 s = s['+'](s);
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 exports.findInterceptorForType = findInterceptorForType; 1083 exports.findInterceptorForType = findInterceptorForType;
1084 exports.JSBool = JSBool; 1084 exports.JSBool = JSBool;
1085 exports.JSNull = JSNull; 1085 exports.JSNull = JSNull;
1086 exports.JSIndexable = JSIndexable; 1086 exports.JSIndexable = JSIndexable;
1087 exports.JSMutableIndexable = JSMutableIndexable; 1087 exports.JSMutableIndexable = JSMutableIndexable;
1088 exports.JSObject = JSObject; 1088 exports.JSObject = JSObject;
1089 exports.JavaScriptObject = JavaScriptObject; 1089 exports.JavaScriptObject = JavaScriptObject;
1090 exports.PlainJavaScriptObject = PlainJavaScriptObject; 1090 exports.PlainJavaScriptObject = PlainJavaScriptObject;
1091 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; 1091 exports.UnknownJavaScriptObject = UnknownJavaScriptObject;
1092 })(_interceptors || (_interceptors = {})); 1092 })(_interceptors || (_interceptors = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698