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

Side by Side Diff: test/codegen/expect/dart/convert.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/async.js ('k') | test/codegen/expect/dart/core.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 convert; 1 var convert;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let _processed = Symbol('_processed'); 4 let _processed = Symbol('_processed');
5 let _original = Symbol('_original'); 5 let _original = Symbol('_original');
6 // Function _convertJsonToDart: (dynamic, (dynamic, dynamic) → dynamic) → dyna mic 6 // Function _convertJsonToDart: (dynamic, (dynamic, dynamic) → dynamic) → dyna mic
7 function _convertJsonToDart(json, reviver) { 7 function _convertJsonToDart(json, reviver) {
8 dart.assert(reviver !== null); 8 dart.assert(reviver !== null);
9 // Function walk: (dynamic) → dynamic 9 // Function walk: (dynamic) → dynamic
10 function walk(e) { 10 function walk(e) {
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 throw new JsonUnsupportedObjectError(object); 1182 throw new JsonUnsupportedObjectError(object);
1183 } 1183 }
1184 this[_removeSeen](object); 1184 this[_removeSeen](object);
1185 } catch (e) { 1185 } catch (e) {
1186 throw new JsonUnsupportedObjectError(object, {cause: e}); 1186 throw new JsonUnsupportedObjectError(object, {cause: e});
1187 } 1187 }
1188 1188
1189 } 1189 }
1190 writeJsonValue(object) { 1190 writeJsonValue(object) {
1191 if (dart.is(object, core.num)) { 1191 if (dart.is(object, core.num)) {
1192 if (dart.throw_("Unimplemented PrefixExpression: !object.isFinite")) 1192 if (dart.dunary('!', dart.dload(object, 'isFinite')))
1193 return false; 1193 return false;
1194 this.writeNumber(dart.as(object, core.num)); 1194 this.writeNumber(dart.as(object, core.num));
1195 return true; 1195 return true;
1196 } else if (core.identical(object, true)) { 1196 } else if (core.identical(object, true)) {
1197 this.writeString('true'); 1197 this.writeString('true');
1198 return true; 1198 return true;
1199 } else if (core.identical(object, false)) { 1199 } else if (core.identical(object, false)) {
1200 this.writeString('false'); 1200 this.writeString('false');
1201 return true; 1201 return true;
1202 } else if (object === null) { 1202 } else if (object === null) {
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 exports.ClosableStringSink = ClosableStringSink; 2321 exports.ClosableStringSink = ClosableStringSink;
2322 exports.StringConversionSinkBase = StringConversionSinkBase; 2322 exports.StringConversionSinkBase = StringConversionSinkBase;
2323 exports.StringConversionSinkMixin = StringConversionSinkMixin; 2323 exports.StringConversionSinkMixin = StringConversionSinkMixin;
2324 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E; 2324 exports.UNICODE_REPLACEMENT_CHARACTER_RUNE = UNICODE_REPLACEMENT_CHARACTER_RUN E;
2325 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE; 2325 exports.UNICODE_BOM_CHARACTER_RUNE = UNICODE_BOM_CHARACTER_RUNE;
2326 exports.UTF8 = UTF8; 2326 exports.UTF8 = UTF8;
2327 exports.Utf8Codec = Utf8Codec; 2327 exports.Utf8Codec = Utf8Codec;
2328 exports.Utf8Encoder = Utf8Encoder; 2328 exports.Utf8Encoder = Utf8Encoder;
2329 exports.Utf8Decoder = Utf8Decoder; 2329 exports.Utf8Decoder = Utf8Decoder;
2330 })(convert || (convert = {})); 2330 })(convert || (convert = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/async.js ('k') | test/codegen/expect/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698