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

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

Issue 1448993002: Switch ddc to use @JS instead of @JSName (Closed) Base URL: git://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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/js.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 dart_library.library('dart/_js_helper', null, /* Imports */[ 1 dart_library.library('dart/_js_helper', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core', 3 'dart/core',
4 'dart/collection', 4 'dart/collection',
5 'dart/_interceptors', 5 'dart/_interceptors',
6 'dart/_foreign_helper' 6 'dart/_foreign_helper'
7 ], /* Lazy imports */[ 7 ], /* Lazy imports */[
8 ], function(exports, dart, core, collection, _interceptors, _foreign_helper) { 8 ], function(exports, dart, core, collection, _interceptors, _foreign_helper) {
9 'use strict'; 9 'use strict';
10 let dartx = dart.dartx; 10 let dartx = dart.dartx;
(...skipping 12 matching lines...) Expand all
23 constructors: () => ({NoInline: [NoInline, []]}) 23 constructors: () => ({NoInline: [NoInline, []]})
24 }); 24 });
25 class Native extends core.Object { 25 class Native extends core.Object {
26 Native(name) { 26 Native(name) {
27 this.name = name; 27 this.name = name;
28 } 28 }
29 } 29 }
30 dart.setSignature(Native, { 30 dart.setSignature(Native, {
31 constructors: () => ({Native: [Native, [core.String]]}) 31 constructors: () => ({Native: [Native, [core.String]]})
32 }); 32 });
33 class JsName extends core.Object {
34 JsName(opts) {
35 let name = opts && 'name' in opts ? opts.name : null;
36 this.name = name;
37 }
38 }
39 dart.setSignature(JsName, {
40 constructors: () => ({JsName: [JsName, [], {name: core.String}]})
41 });
42 class JsPeerInterface extends core.Object { 33 class JsPeerInterface extends core.Object {
43 JsPeerInterface(opts) { 34 JsPeerInterface(opts) {
44 let name = opts && 'name' in opts ? opts.name : null; 35 let name = opts && 'name' in opts ? opts.name : null;
45 this.name = name; 36 this.name = name;
46 } 37 }
47 } 38 }
48 dart.setSignature(JsPeerInterface, { 39 dart.setSignature(JsPeerInterface, {
49 constructors: () => ({JsPeerInterface: [JsPeerInterface, [], {name: core.Str ing}]}) 40 constructors: () => ({JsPeerInterface: [JsPeerInterface, [], {name: core.Str ing}]})
50 }); 41 });
51 class SupportJsExtensionMethods extends core.Object { 42 class SupportJsExtensionMethods extends core.Object {
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 methods: () => ({[_jsIterator]: [dart.dynamic, []]}) 1173 methods: () => ({[_jsIterator]: [dart.dynamic, []]})
1183 }); 1174 });
1184 dart.defineExtensionMembers(SyncIterable, ['iterator']); 1175 dart.defineExtensionMembers(SyncIterable, ['iterator']);
1185 return SyncIterable; 1176 return SyncIterable;
1186 }); 1177 });
1187 let SyncIterable = SyncIterable$(); 1178 let SyncIterable = SyncIterable$();
1188 // Exports: 1179 // Exports:
1189 exports.NoThrows = NoThrows; 1180 exports.NoThrows = NoThrows;
1190 exports.NoInline = NoInline; 1181 exports.NoInline = NoInline;
1191 exports.Native = Native; 1182 exports.Native = Native;
1192 exports.JsName = JsName;
1193 exports.JsPeerInterface = JsPeerInterface; 1183 exports.JsPeerInterface = JsPeerInterface;
1194 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; 1184 exports.SupportJsExtensionMethods = SupportJsExtensionMethods;
1195 exports.defineProperty = defineProperty; 1185 exports.defineProperty = defineProperty;
1196 exports.regExpGetNative = regExpGetNative; 1186 exports.regExpGetNative = regExpGetNative;
1197 exports.regExpGetGlobalNative = regExpGetGlobalNative; 1187 exports.regExpGetGlobalNative = regExpGetGlobalNative;
1198 exports.regExpCaptureCount = regExpCaptureCount; 1188 exports.regExpCaptureCount = regExpCaptureCount;
1199 exports.JSSyntaxRegExp = JSSyntaxRegExp; 1189 exports.JSSyntaxRegExp = JSSyntaxRegExp;
1200 exports.firstMatchAfter = firstMatchAfter; 1190 exports.firstMatchAfter = firstMatchAfter;
1201 exports.StringMatch = StringMatch; 1191 exports.StringMatch = StringMatch;
1202 exports.allMatchesInStringUnchecked = allMatchesInStringUnchecked; 1192 exports.allMatchesInStringUnchecked = allMatchesInStringUnchecked;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 exports.CastErrorImplementation = CastErrorImplementation; 1232 exports.CastErrorImplementation = CastErrorImplementation;
1243 exports.FallThroughErrorImplementation = FallThroughErrorImplementation; 1233 exports.FallThroughErrorImplementation = FallThroughErrorImplementation;
1244 exports.RuntimeError = RuntimeError; 1234 exports.RuntimeError = RuntimeError;
1245 exports.random64 = random64; 1235 exports.random64 = random64;
1246 exports.jsonEncodeNative = jsonEncodeNative; 1236 exports.jsonEncodeNative = jsonEncodeNative;
1247 exports.SyncIterator$ = SyncIterator$; 1237 exports.SyncIterator$ = SyncIterator$;
1248 exports.SyncIterator = SyncIterator; 1238 exports.SyncIterator = SyncIterator;
1249 exports.SyncIterable$ = SyncIterable$; 1239 exports.SyncIterable$ = SyncIterable$;
1250 exports.SyncIterable = SyncIterable; 1240 exports.SyncIterable = SyncIterable;
1251 }); 1241 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/js.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698