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

Side by Side Diff: dart/sdk/lib/_internal/compiler/js_lib/js_names.dart

Issue 803543002: Resolve libraries against their canonical URI. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42358. Created 6 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart._js_names; 5 library dart._js_names;
6 6
7 import 'shared/embedded_names.dart' show 7 import 'dart:_js_embedded_names' show
8 MANGLED_GLOBAL_NAMES, 8 MANGLED_GLOBAL_NAMES,
9 MANGLED_NAMES; 9 MANGLED_NAMES;
10 10
11 import 'dart:_foreign_helper' show 11 import 'dart:_foreign_helper' show
12 JS, 12 JS,
13 JS_EMBEDDED_GLOBAL, 13 JS_EMBEDDED_GLOBAL,
14 JS_GET_NAME; 14 JS_GET_NAME;
15 15
16 import 'dart:_js_helper' show 16 import 'dart:_js_helper' show
17 JsCache, 17 JsCache,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 return JsCache.fetch(names, name); 106 return JsCache.fetch(names, name);
107 } 107 }
108 108
109 String unmangleAllIdentifiersIfPreservedAnyways(String str) { 109 String unmangleAllIdentifiersIfPreservedAnyways(String str) {
110 return JS("String", 110 return JS("String",
111 r"(#).replace(/[^<,> ]+/g," 111 r"(#).replace(/[^<,> ]+/g,"
112 r"function(m) { return #[m] || m; })", 112 r"function(m) { return #[m] || m; })",
113 str, 113 str,
114 JS_EMBEDDED_GLOBAL('', MANGLED_GLOBAL_NAMES)); 114 JS_EMBEDDED_GLOBAL('', MANGLED_GLOBAL_NAMES));
115 } 115 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart ('k') | dart/sdk/lib/_internal/libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698