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

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

Issue 1144303003: Use signature inheritance when method types are unchanged (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Remove empty signatures 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') | no next file with comments »
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 15 matching lines...) Expand all
26 if (arg10 === void 0) 26 if (arg10 === void 0)
27 arg10 = null; 27 arg10 = null;
28 if (arg11 === void 0) 28 if (arg11 === void 0)
29 arg11 = null; 29 arg11 = null;
30 } 30 }
31 dart.fn(JS, dart.dynamic, [core.String, core.String], [dart.dynamic, dart.dyna mic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart. dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic]); 31 dart.fn(JS, dart.dynamic, [core.String, core.String], [dart.dynamic, dart.dyna mic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart. dynamic, dart.dynamic, dart.dynamic, dart.dynamic, dart.dynamic]);
32 function JS_CURRENT_ISOLATE_CONTEXT() { 32 function JS_CURRENT_ISOLATE_CONTEXT() {
33 } 33 }
34 dart.fn(JS_CURRENT_ISOLATE_CONTEXT, () => dart.functionType(IsolateContext, [] )); 34 dart.fn(JS_CURRENT_ISOLATE_CONTEXT, () => dart.functionType(IsolateContext, [] ));
35 class IsolateContext extends core.Object {} 35 class IsolateContext extends core.Object {}
36 dart.setSignature(IsolateContext, {});
37 function JS_CALL_IN_ISOLATE(isolate, func) { 36 function JS_CALL_IN_ISOLATE(isolate, func) {
38 } 37 }
39 dart.fn(JS_CALL_IN_ISOLATE, dart.dynamic, [dart.dynamic, core.Function]); 38 dart.fn(JS_CALL_IN_ISOLATE, dart.dynamic, [dart.dynamic, core.Function]);
40 function DART_CLOSURE_TO_JS(func) { 39 function DART_CLOSURE_TO_JS(func) {
41 } 40 }
42 dart.fn(DART_CLOSURE_TO_JS, dart.dynamic, [core.Function]); 41 dart.fn(DART_CLOSURE_TO_JS, dart.dynamic, [core.Function]);
43 function RAW_DART_FUNCTION_REF(func) { 42 function RAW_DART_FUNCTION_REF(func) {
44 } 43 }
45 dart.fn(RAW_DART_FUNCTION_REF, dart.dynamic, [core.Function]); 44 dart.fn(RAW_DART_FUNCTION_REF, dart.dynamic, [core.Function]);
46 function JS_SET_CURRENT_ISOLATE(isolate) { 45 function JS_SET_CURRENT_ISOLATE(isolate) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 dart.fn(JS_GET_FLAG, core.bool, [core.String]); 110 dart.fn(JS_GET_FLAG, core.bool, [core.String]);
112 function JS_EFFECT(code) { 111 function JS_EFFECT(code) {
113 dart.dcall(code, null); 112 dart.dcall(code, null);
114 } 113 }
115 dart.fn(JS_EFFECT, dart.void, [core.Function]); 114 dart.fn(JS_EFFECT, dart.void, [core.Function]);
116 class JS_CONST extends core.Object { 115 class JS_CONST extends core.Object {
117 JS_CONST(code) { 116 JS_CONST(code) {
118 this.code = code; 117 this.code = code;
119 } 118 }
120 } 119 }
121 dart.setSignature(JS_CONST, {});
122 function JS_STRING_CONCAT(a, b) { 120 function JS_STRING_CONCAT(a, b) {
123 return a + b; 121 return a + b;
124 } 122 }
125 dart.fn(JS_STRING_CONCAT, core.String, [core.String, core.String]); 123 dart.fn(JS_STRING_CONCAT, core.String, [core.String, core.String]);
126 // Exports: 124 // Exports:
127 exports.JS = JS; 125 exports.JS = JS;
128 exports.JS_CURRENT_ISOLATE_CONTEXT = JS_CURRENT_ISOLATE_CONTEXT; 126 exports.JS_CURRENT_ISOLATE_CONTEXT = JS_CURRENT_ISOLATE_CONTEXT;
129 exports.IsolateContext = IsolateContext; 127 exports.IsolateContext = IsolateContext;
130 exports.JS_CALL_IN_ISOLATE = JS_CALL_IN_ISOLATE; 128 exports.JS_CALL_IN_ISOLATE = JS_CALL_IN_ISOLATE;
131 exports.DART_CLOSURE_TO_JS = DART_CLOSURE_TO_JS; 129 exports.DART_CLOSURE_TO_JS = DART_CLOSURE_TO_JS;
(...skipping 17 matching lines...) Expand all
149 exports.JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG = JS_FUNCTION_TYPE_REQUIRED_P ARAMETERS_TAG; 147 exports.JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG = JS_FUNCTION_TYPE_REQUIRED_P ARAMETERS_TAG;
150 exports.JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG = JS_FUNCTION_TYPE_OPTIONAL_P ARAMETERS_TAG; 148 exports.JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG = JS_FUNCTION_TYPE_OPTIONAL_P ARAMETERS_TAG;
151 exports.JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG = JS_FUNCTION_TYPE_NAMED_PARAMET ERS_TAG; 149 exports.JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG = JS_FUNCTION_TYPE_NAMED_PARAMET ERS_TAG;
152 exports.JS_GET_NAME = JS_GET_NAME; 150 exports.JS_GET_NAME = JS_GET_NAME;
153 exports.JS_EMBEDDED_GLOBAL = JS_EMBEDDED_GLOBAL; 151 exports.JS_EMBEDDED_GLOBAL = JS_EMBEDDED_GLOBAL;
154 exports.JS_GET_FLAG = JS_GET_FLAG; 152 exports.JS_GET_FLAG = JS_GET_FLAG;
155 exports.JS_EFFECT = JS_EFFECT; 153 exports.JS_EFFECT = JS_EFFECT;
156 exports.JS_CONST = JS_CONST; 154 exports.JS_CONST = JS_CONST;
157 exports.JS_STRING_CONCAT = JS_STRING_CONCAT; 155 exports.JS_STRING_CONCAT = JS_STRING_CONCAT;
158 })(_foreign_helper, core); 156 })(_foreign_helper, core);
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_interceptors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698