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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 11860008: Stop passing library elements to tons of namer functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Diff against https://codereview.chromium.org/11819060/. Created 7 years, 11 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/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 533727612c17c7ee8063205ce160ad5d851b31ad..e48d33590690450e977feb7d6f332373a7d1d000 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -3104,7 +3104,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
}
visit(closure);
List<HInstruction> inputs = <HInstruction>[pop()];
- String invocationName = backend.namer.closureInvocationName(
+ String invocationName = backend.namer.invocationName(
new Selector.callClosure(params.requiredParameterCount));
push(new HForeign(new DartString.literal('#.$invocationName'),
const LiteralDartString('var'),
@@ -3175,8 +3175,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
Constant nameConstant = constantSystem.createString(
new DartString.literal(name.slowToString()), node);
- String internalName = backend.namer.instanceMethodInvocationName(
- currentLibrary, name, selector);
+ String internalName = backend.namer.invocationName(selector);
Constant internalNameConstant =
constantSystem.createString(new DartString.literal(internalName), node);

Powered by Google App Engine
This is Rietveld 408576698