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

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

Issue 961513002: Flesh out dynamic invocation code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Streamline ++ and -- in fallback case 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
« no previous file with comments | « test/codegen/expect/dart/convert.js ('k') | test/codegen/expect/dart/math.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 core; 1 var core;
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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 return `0000${n}`; 429 return `0000${n}`;
430 return `00000${n}`; 430 return `00000${n}`;
431 } 431 }
432 // Function twoDigits: (int) → String 432 // Function twoDigits: (int) → String
433 function twoDigits(n) { 433 function twoDigits(n) {
434 if (dart.notNull(n) >= 10) 434 if (dart.notNull(n) >= 10)
435 return `${n}`; 435 return `${n}`;
436 return `0${n}`; 436 return `0${n}`;
437 } 437 }
438 if (dart.notNull(this.inMicroseconds) < 0) { 438 if (dart.notNull(this.inMicroseconds) < 0) {
439 return `-${dart.throw_("Unimplemented PrefixExpression: -this")}`; 439 return `-${this['unary-']()}`;
440 } 440 }
441 let twoDigitMinutes = twoDigits(this.inMinutes.remainder(MINUTES_PER_HOUR) ); 441 let twoDigitMinutes = twoDigits(this.inMinutes.remainder(MINUTES_PER_HOUR) );
442 let twoDigitSeconds = twoDigits(this.inSeconds.remainder(SECONDS_PER_MINUT E)); 442 let twoDigitSeconds = twoDigits(this.inSeconds.remainder(SECONDS_PER_MINUT E));
443 let sixDigitUs = sixDigits(this.inMicroseconds.remainder(MICROSECONDS_PER_ SECOND)); 443 let sixDigitUs = sixDigits(this.inMicroseconds.remainder(MICROSECONDS_PER_ SECOND));
444 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs }`; 444 return `${this.inHours}:${twoDigitMinutes}:${twoDigitSeconds}.${sixDigitUs }`;
445 } 445 }
446 get isNegative() { 446 get isNegative() {
447 return dart.notNull(this[_duration]) < 0; 447 return dart.notNull(this[_duration]) < 0;
448 } 448 }
449 abs() { 449 abs() {
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 if (query !== null) 2306 if (query !== null)
2307 return _normalize(query, start, end, dart.as(_queryCharTable, List$(int) )); 2307 return _normalize(query, start, end, dart.as(_queryCharTable, List$(int) ));
2308 let result = new StringBuffer(); 2308 let result = new StringBuffer();
2309 let first = true; 2309 let first = true;
2310 queryParameters.forEach(((key, value) => { 2310 queryParameters.forEach(((key, value) => {
2311 if (!dart.notNull(first)) { 2311 if (!dart.notNull(first)) {
2312 result.write("&"); 2312 result.write("&");
2313 } 2313 }
2314 first = false; 2314 first = false;
2315 result.write(Uri.encodeQueryComponent(dart.as(key, String))); 2315 result.write(Uri.encodeQueryComponent(dart.as(key, String)));
2316 if (dart.notNull(value !== null) && dart.notNull(dart.throw_("Unimplemen ted PrefixExpression: !value.isEmpty"))) { 2316 if (dart.notNull(value !== null) && dart.notNull(dart.dunary('!', dart.d load(value, 'isEmpty')))) {
2317 result.write("="); 2317 result.write("=");
2318 result.write(Uri.encodeQueryComponent(dart.as(value, String))); 2318 result.write(Uri.encodeQueryComponent(dart.as(value, String)));
2319 } 2319 }
2320 }).bind(this)); 2320 }).bind(this));
2321 return result.toString(); 2321 return result.toString();
2322 } 2322 }
2323 static [_makeFragment](fragment, start, end) { 2323 static [_makeFragment](fragment, start, end) {
2324 if (fragment === null) 2324 if (fragment === null)
2325 return null; 2325 return null;
2326 return _normalize(fragment, start, end, dart.as(_queryCharTable, List$(int ))); 2326 return _normalize(fragment, start, end, dart.as(_queryCharTable, List$(int )));
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
3031 exports.Stopwatch = Stopwatch; 3031 exports.Stopwatch = Stopwatch;
3032 exports.String = String; 3032 exports.String = String;
3033 exports.Runes = Runes; 3033 exports.Runes = Runes;
3034 exports.RuneIterator = RuneIterator; 3034 exports.RuneIterator = RuneIterator;
3035 exports.StringBuffer = StringBuffer; 3035 exports.StringBuffer = StringBuffer;
3036 exports.StringSink = StringSink; 3036 exports.StringSink = StringSink;
3037 exports.Symbol = Symbol; 3037 exports.Symbol = Symbol;
3038 exports.Type = Type; 3038 exports.Type = Type;
3039 exports.Uri = Uri; 3039 exports.Uri = Uri;
3040 })(core || (core = {})); 3040 })(core || (core = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/convert.js ('k') | test/codegen/expect/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698