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

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

Issue 1152583002: Add constructors to signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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/_interceptors.js » ('j') | lib/runtime/dart/core.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _foreign_helper = dart.defineLibrary(_foreign_helper, {}); 1 var _foreign_helper = dart.defineLibrary(_foreign_helper, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 (function(exports, core) { 3 (function(exports, core) {
4 'use strict'; 4 'use strict';
5 function JS(typeDescription, codeTemplate, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) { 5 function JS(typeDescription, codeTemplate, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
6 if (arg0 === void 0) 6 if (arg0 === void 0)
7 arg0 = null; 7 arg0 = null;
8 if (arg1 === void 0) 8 if (arg1 === void 0)
9 arg1 = null; 9 arg1 = null;
10 if (arg2 === void 0) 10 if (arg2 === void 0)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 dart.fn(JS_GET_FLAG, core.bool, [core.String]); 110 dart.fn(JS_GET_FLAG, core.bool, [core.String]);
111 function JS_EFFECT(code) { 111 function JS_EFFECT(code) {
112 dart.dcall(code, null); 112 dart.dcall(code, null);
113 } 113 }
114 dart.fn(JS_EFFECT, dart.void, [core.Function]); 114 dart.fn(JS_EFFECT, dart.void, [core.Function]);
115 class JS_CONST extends core.Object { 115 class JS_CONST extends core.Object {
116 JS_CONST(code) { 116 JS_CONST(code) {
117 this.code = code; 117 this.code = code;
118 } 118 }
119 } 119 }
120 dart.setSignature(JS_CONST, {
121 constructors: () => ({JS_CONST: [JS_CONST, [core.String]]})
122 });
120 function JS_STRING_CONCAT(a, b) { 123 function JS_STRING_CONCAT(a, b) {
121 return a + b; 124 return a + b;
122 } 125 }
123 dart.fn(JS_STRING_CONCAT, core.String, [core.String, core.String]); 126 dart.fn(JS_STRING_CONCAT, core.String, [core.String, core.String]);
124 // Exports: 127 // Exports:
125 exports.JS = JS; 128 exports.JS = JS;
126 exports.JS_CURRENT_ISOLATE_CONTEXT = JS_CURRENT_ISOLATE_CONTEXT; 129 exports.JS_CURRENT_ISOLATE_CONTEXT = JS_CURRENT_ISOLATE_CONTEXT;
127 exports.IsolateContext = IsolateContext; 130 exports.IsolateContext = IsolateContext;
128 exports.JS_CALL_IN_ISOLATE = JS_CALL_IN_ISOLATE; 131 exports.JS_CALL_IN_ISOLATE = JS_CALL_IN_ISOLATE;
129 exports.DART_CLOSURE_TO_JS = DART_CLOSURE_TO_JS; 132 exports.DART_CLOSURE_TO_JS = DART_CLOSURE_TO_JS;
(...skipping 17 matching lines...) Expand all
147 exports.JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG = JS_FUNCTION_TYPE_REQUIRED_P ARAMETERS_TAG; 150 exports.JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG = JS_FUNCTION_TYPE_REQUIRED_P ARAMETERS_TAG;
148 exports.JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG = JS_FUNCTION_TYPE_OPTIONAL_P ARAMETERS_TAG; 151 exports.JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG = JS_FUNCTION_TYPE_OPTIONAL_P ARAMETERS_TAG;
149 exports.JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG = JS_FUNCTION_TYPE_NAMED_PARAMET ERS_TAG; 152 exports.JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG = JS_FUNCTION_TYPE_NAMED_PARAMET ERS_TAG;
150 exports.JS_GET_NAME = JS_GET_NAME; 153 exports.JS_GET_NAME = JS_GET_NAME;
151 exports.JS_EMBEDDED_GLOBAL = JS_EMBEDDED_GLOBAL; 154 exports.JS_EMBEDDED_GLOBAL = JS_EMBEDDED_GLOBAL;
152 exports.JS_GET_FLAG = JS_GET_FLAG; 155 exports.JS_GET_FLAG = JS_GET_FLAG;
153 exports.JS_EFFECT = JS_EFFECT; 156 exports.JS_EFFECT = JS_EFFECT;
154 exports.JS_CONST = JS_CONST; 157 exports.JS_CONST = JS_CONST;
155 exports.JS_STRING_CONCAT = JS_STRING_CONCAT; 158 exports.JS_STRING_CONCAT = JS_STRING_CONCAT;
156 })(_foreign_helper, core); 159 })(_foreign_helper, core);
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_interceptors.js » ('j') | lib/runtime/dart/core.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698