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

Unified Diff: sdk/lib/_internal/compiler/js_lib/js_names.dart

Issue 944423002: Revert "Use an enum in embedded_names as input to JS_GET_NAME." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/js_lib/js_names.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/js_names.dart b/sdk/lib/_internal/compiler/js_lib/js_names.dart
index 95f7e4902e5acf094b9a1902d3c7ce0f25d03d68..3933e787245a3b25727d7a977dd0d5c52a1b49bb 100644
--- a/sdk/lib/_internal/compiler/js_lib/js_names.dart
+++ b/sdk/lib/_internal/compiler/js_lib/js_names.dart
@@ -5,7 +5,6 @@
library dart._js_names;
import 'dart:_js_embedded_names' show
- JsGetName,
MANGLED_GLOBAL_NAMES,
MANGLED_NAMES;
@@ -54,9 +53,9 @@ Map<String, String> computeMangledNames(jsMangledNames, bool isGlobal) {
preserveNames();
var keys = extractKeys(jsMangledNames);
var result = <String, String>{};
- String getterPrefix = JS_GET_NAME(JsGetName.GETTER_PREFIX);
+ String getterPrefix = JS_GET_NAME('GETTER_PREFIX');
int getterPrefixLength = getterPrefix.length;
- String setterPrefix = JS_GET_NAME(JsGetName.SETTER_PREFIX);
+ String setterPrefix = JS_GET_NAME('SETTER_PREFIX');
for (String key in keys) {
String value = JS('String', '#[#]', jsMangledNames, key);
result[key] = value;
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_mirrors.dart ('k') | sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698