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

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

Issue 1011153002: js: fix core.Object, output order, static const fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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/constructors.js ('k') | test/codegen/expect/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; 1 var _foreign_helper;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 // Function JS: (String, String, [dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic]) → dynamic 4 // Function JS: (String, String, [dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic]) → dynamic
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 13 matching lines...) Expand all
24 if (arg9 === void 0) 24 if (arg9 === void 0)
25 arg9 = null; 25 arg9 = null;
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 // Function JS_CURRENT_ISOLATE_CONTEXT: () → IsolateContext 31 // Function JS_CURRENT_ISOLATE_CONTEXT: () → IsolateContext
32 function JS_CURRENT_ISOLATE_CONTEXT() { 32 function JS_CURRENT_ISOLATE_CONTEXT() {
33 } 33 }
34 class IsolateContext extends dart.Object { 34 class IsolateContext extends core.Object {
35 } 35 }
36 // Function JS_CALL_IN_ISOLATE: (dynamic, Function) → dynamic 36 // Function JS_CALL_IN_ISOLATE: (dynamic, Function) → dynamic
37 function JS_CALL_IN_ISOLATE(isolate, function) { 37 function JS_CALL_IN_ISOLATE(isolate, function) {
38 } 38 }
39 // Function DART_CLOSURE_TO_JS: (Function) → dynamic 39 // Function DART_CLOSURE_TO_JS: (Function) → dynamic
40 function DART_CLOSURE_TO_JS(function) { 40 function DART_CLOSURE_TO_JS(function) {
41 } 41 }
42 // Function RAW_DART_FUNCTION_REF: (Function) → dynamic 42 // Function RAW_DART_FUNCTION_REF: (Function) → dynamic
43 function RAW_DART_FUNCTION_REF(function) { 43 function RAW_DART_FUNCTION_REF(function) {
44 } 44 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Function JS_EMBEDDED_GLOBAL: (String, String) → dynamic 105 // Function JS_EMBEDDED_GLOBAL: (String, String) → dynamic
106 function JS_EMBEDDED_GLOBAL(typeDescription, name) { 106 function JS_EMBEDDED_GLOBAL(typeDescription, name) {
107 } 107 }
108 // Function JS_GET_FLAG: (String) → bool 108 // Function JS_GET_FLAG: (String) → bool
109 function JS_GET_FLAG(name) { 109 function JS_GET_FLAG(name) {
110 } 110 }
111 // Function JS_EFFECT: (Function) → void 111 // Function JS_EFFECT: (Function) → void
112 function JS_EFFECT(code) { 112 function JS_EFFECT(code) {
113 dart.dinvokef(code, null); 113 dart.dinvokef(code, null);
114 } 114 }
115 class JS_CONST extends dart.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 // Function JS_STRING_CONCAT: (String, String) → String 120 // Function JS_STRING_CONCAT: (String, String) → String
121 function JS_STRING_CONCAT(a, b) { 121 function JS_STRING_CONCAT(a, b) {
122 return a + b; 122 return a + b;
123 } 123 }
124 // Exports: 124 // Exports:
125 exports.JS = JS; 125 exports.JS = JS;
(...skipping 21 matching lines...) Expand all
147 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;
148 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;
149 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;
150 exports.JS_GET_NAME = JS_GET_NAME; 150 exports.JS_GET_NAME = JS_GET_NAME;
151 exports.JS_EMBEDDED_GLOBAL = JS_EMBEDDED_GLOBAL; 151 exports.JS_EMBEDDED_GLOBAL = JS_EMBEDDED_GLOBAL;
152 exports.JS_GET_FLAG = JS_GET_FLAG; 152 exports.JS_GET_FLAG = JS_GET_FLAG;
153 exports.JS_EFFECT = JS_EFFECT; 153 exports.JS_EFFECT = JS_EFFECT;
154 exports.JS_CONST = JS_CONST; 154 exports.JS_CONST = JS_CONST;
155 exports.JS_STRING_CONCAT = JS_STRING_CONCAT; 155 exports.JS_STRING_CONCAT = JS_STRING_CONCAT;
156 })(_foreign_helper || (_foreign_helper = {})); 156 })(_foreign_helper || (_foreign_helper = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/dart/_interceptors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698