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

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

Issue 538513002: Move js library back into compiler directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | 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 'dart:_foreign_helper' show 7 import 'dart:_foreign_helper' show
8 JS, 8 JS,
9 JS_GET_NAME; 9 JS_GET_NAME;
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 var names = JS('=Object', 'init.mangledGlobalNames'); 97 var names = JS('=Object', 'init.mangledGlobalNames');
98 return JsCache.fetch(names, name); 98 return JsCache.fetch(names, name);
99 } 99 }
100 100
101 String unmangleAllIdentifiersIfPreservedAnyways(String str) { 101 String unmangleAllIdentifiersIfPreservedAnyways(String str) {
102 return JS("String", 102 return JS("String",
103 r"(#).replace(/[^<,> ]+/g," 103 r"(#).replace(/[^<,> ]+/g,"
104 r"function(m) { return init.mangledGlobalNames[m] || m; })", 104 r"function(m) { return init.mangledGlobalNames[m] || m; })",
105 str); 105 str);
106 } 106 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_mirrors.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_number.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698