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

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

Issue 11235061: Avoid calling resolveMethodElement from SSA builder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index b41e5719457b08540b2e8d0e22161af0308bd46a..1ef011b2b74f4f37af05bf29665790064e751e8c 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -993,7 +993,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
// [:resolveMethodElement:] require the passed element to be a
// declaration.
TreeElements treeElements =
- compiler.resolver.resolveMethodElement(constructor.declaration);
+ compiler.enqueuer.resolution.getCachedElements(
+ constructor.declaration);
classElement.backendMembers =
classElement.backendMembers.prepend(bodyElement);
@@ -1163,7 +1164,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
// Build the initializers in the context of the new constructor.
TreeElements oldElements = elements;
- elements = compiler.resolver.resolveMethodElement(constructor);
+ elements =
+ compiler.enqueuer.resolution.getCachedElements(constructor);
buildInitializers(constructor, constructors, fieldValues);
elements = oldElements;
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698