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

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

Issue 1060813008: Handle symbol literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add comment 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/src/codegen/js_codegen.dart » ('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 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 let names = ''; 2033 let names = '';
2034 if (dart.notNull(namedArguments != null) && !dart.notNull(namedArguments.i sEmpty)) { 2034 if (dart.notNull(namedArguments != null) && !dart.notNull(namedArguments.i sEmpty)) {
2035 namedArguments.forEach((name, argument) => { 2035 namedArguments.forEach((name, argument) => {
2036 names = `${names}$${name}`; 2036 names = `${names}$${name}`;
2037 namedArgumentList[core.$add](name); 2037 namedArgumentList[core.$add](name);
2038 arguments$[core.$add](argument); 2038 arguments$[core.$add](argument);
2039 argumentCount = dart.notNull(argumentCount) + 1; 2039 argumentCount = dart.notNull(argumentCount) + 1;
2040 }); 2040 });
2041 } 2041 }
2042 let selectorName = `${_foreign_helper.JS_GET_NAME("CALL_PREFIX")}$${argume ntCount}${names}`; 2042 let selectorName = `${_foreign_helper.JS_GET_NAME("CALL_PREFIX")}$${argume ntCount}${names}`;
2043 return dart.dsend(func, 'noSuchMethod', createUnmangledInvocationMirror(da rt.throw_("Unimplemented SymbolLiteral: #call"), selectorName, JSInvocationMirro r.METHOD, arguments$, namedArgumentList)); 2043 return dart.dsend(func, 'noSuchMethod', createUnmangledInvocationMirror(/* Unimplemented const */new _internal.Symbol("call"), selectorName, JSInvocationM irror.METHOD, arguments$, namedArgumentList));
2044 } 2044 }
2045 static applyFunction(func, positionalArguments, namedArguments) { 2045 static applyFunction(func, positionalArguments, namedArguments) {
2046 return namedArguments == null ? Primitives.applyFunctionWithPositionalArgu ments(func, positionalArguments) : Primitives.applyFunctionWithNamedArguments(fu nc, positionalArguments, namedArguments); 2046 return namedArguments == null ? Primitives.applyFunctionWithPositionalArgu ments(func, positionalArguments) : Primitives.applyFunctionWithNamedArguments(fu nc, positionalArguments, namedArguments);
2047 } 2047 }
2048 static applyFunctionWithPositionalArguments(func, positionalArguments) { 2048 static applyFunctionWithPositionalArguments(func, positionalArguments) {
2049 let argumentCount = 0; 2049 let argumentCount = 0;
2050 let arguments$ = null; 2050 let arguments$ = null;
2051 if (positionalArguments != null) { 2051 if (positionalArguments != null) {
2052 if (positionalArguments instanceof Array) { 2052 if (positionalArguments instanceof Array) {
2053 arguments$ = positionalArguments; 2053 arguments$ = positionalArguments;
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
4044 exports.jsonEncodeNative = jsonEncodeNative; 4044 exports.jsonEncodeNative = jsonEncodeNative;
4045 exports.getIsolateAffinityTag = getIsolateAffinityTag; 4045 exports.getIsolateAffinityTag = getIsolateAffinityTag;
4046 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; 4046 exports.LoadLibraryFunctionType = LoadLibraryFunctionType;
4047 exports.DeferredLoadCallback = DeferredLoadCallback; 4047 exports.DeferredLoadCallback = DeferredLoadCallback;
4048 exports.loadDeferredLibrary = loadDeferredLibrary; 4048 exports.loadDeferredLibrary = loadDeferredLibrary;
4049 exports.MainError = MainError; 4049 exports.MainError = MainError;
4050 exports.missingMain = missingMain; 4050 exports.missingMain = missingMain;
4051 exports.badMain = badMain; 4051 exports.badMain = badMain;
4052 exports.mainHasTooManyParameters = mainHasTooManyParameters; 4052 exports.mainHasTooManyParameters = mainHasTooManyParameters;
4053 })(_js_helper || (_js_helper = {})); 4053 })(_js_helper || (_js_helper = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698