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

Unified Diff: pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart

Issue 1198293002: dart2js: Use an abstract Name class for names in the generated JavaScript ast. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix tests Created 5 years, 6 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: pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
index 26d9a1339816acb8b7cd1b6671fd73f86c8cec13..1da1a032e8a139e1038df5c229835bf24c900560 100644
--- a/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
@@ -287,11 +287,11 @@ class InterceptorStubGenerator {
return null;
}
- jsAst.Expression generateOneShotInterceptor(String name) {
+ jsAst.Expression generateOneShotInterceptor(jsAst.Name name) {
Selector selector = backend.oneShotInterceptors[name];
Set<ClassElement> classes =
backend.getInterceptedClassesOn(selector.name);
- String getInterceptorName = namer.nameForGetInterceptor(classes);
+ jsAst.Name getInterceptorName = namer.nameForGetInterceptor(classes);
List<String> parameterNames = <String>[];
parameterNames.add('receiver');
@@ -304,7 +304,7 @@ class InterceptorStubGenerator {
}
}
- String invocationName = backend.namer.invocationName(selector);
+ jsAst.Name invocationName = backend.namer.invocationName(selector);
String globalObject = namer.globalObjectFor(backend.interceptorsLibrary);
jsAst.Statement optimizedPath =

Powered by Google App Engine
This is Rietveld 408576698