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

Unified Diff: lib/compiler/implementation/emitter.dart

Issue 10574046: Remove static fields in the namer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 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
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/emitter.dart
diff --git a/lib/compiler/implementation/emitter.dart b/lib/compiler/implementation/emitter.dart
index 728f07805d7a1d670bfe7a1179672fea837f23ea..f6afda53dc2eaaf8e7ec13c099be1dbf5e167999 100644
--- a/lib/compiler/implementation/emitter.dart
+++ b/lib/compiler/implementation/emitter.dart
@@ -639,7 +639,7 @@ function(collectedClasses) {
// create a fake element with the correct name.
// Note: the callElement will not have any enclosingElement.
FunctionElement callElement =
- new ClosureInvocationElement(Namer.CLOSURE_INVOCATION_NAME, element);
+ new ClosureInvocationElement(namer.CLOSURE_INVOCATION_NAME, element);
String staticName = namer.getName(element);
int parameterCount = element.parameterCount(compiler);
String invocationName =
@@ -652,7 +652,7 @@ function(collectedClasses) {
});
// If a static function is used as a closure we need to add its name
// in case it is used in spawnFunction.
- String fieldName = Namer.STATIC_CLOSURE_NAME_NAME;
+ String fieldName = namer.STATIC_CLOSURE_NAME_NAME;
buffer.add('$fieldAccess.$fieldName = "$staticName";\n');
}
}
@@ -706,7 +706,7 @@ function(collectedClasses) {
// its stubs we simply create a fake element with the correct name.
// Note: the callElement will not have any enclosingElement.
FunctionElement callElement =
- new ClosureInvocationElement(Namer.CLOSURE_INVOCATION_NAME, member);
+ new ClosureInvocationElement(namer.CLOSURE_INVOCATION_NAME, member);
String invocationName =
namer.instanceMethodName(member.getLibrary(),
@@ -759,7 +759,7 @@ function(collectedClasses) {
String invocationName =
namer.instanceMethodInvocationName(member.getLibrary(), member.name,
selector);
- SourceString callName = Namer.CLOSURE_INVOCATION_NAME;
+ SourceString callName = namer.CLOSURE_INVOCATION_NAME;
String closureCallName =
namer.instanceMethodInvocationName(member.getLibrary(), callName,
selector);
@@ -870,7 +870,7 @@ function(collectedClasses) {
compiler.codegenWorld.invokedNames.forEach((SourceString methodName,
Set<Selector> selectors) {
if (objectClass.lookupLocalMember(methodName) === null
- && methodName != Namer.OPERATOR_EQUALS) {
+ && methodName != Elements.OPERATOR_EQUALS) {
for (Selector selector in selectors) {
if (methodName.isPrivate()) {
for (LibraryElement lib in libraries) {
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698