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

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

Issue 16035026: Fix 2 host-checked error with the enqueuer: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 23812)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -1070,11 +1070,6 @@
});
if (bodyElement == null) {
bodyElement = new ConstructorBodyElementX(constructor);
- // [:resolveMethodElement:] require the passed element to be a
- // declaration.
- TreeElements treeElements =
- compiler.enqueuer.resolution.getCachedElements(
- constructor.declaration);
classElement.addBackendMember(bodyElement);
if (constructor.isPatch) {
@@ -1083,11 +1078,6 @@
bodyElement.origin.patch = bodyElement;
classElement.origin.addBackendMember(bodyElement.origin);
}
- // Set the [TreeElements] of the generative constructor body to
- // be the same as the generative constructor.
- compiler.enqueuer.resolution.ensureCachedElements(
- bodyElement.declaration,
- treeElements);
}
assert(bodyElement.isGenerativeConstructorBody());
return bodyElement;
@@ -2426,7 +2416,7 @@
nestedClosureData.closureClassElement;
FunctionElement callElement = nestedClosureData.callElement;
// TODO(ahe): This should be registered in codegen, not here.
- compiler.enqueuer.codegen.addToWorkList(callElement, elements);
+ compiler.enqueuer.codegen.addToWorkList(callElement);
// TODO(ahe): This should be registered in codegen, not here.
compiler.enqueuer.codegen.registerInstantiatedClass(
closureClassElement, work.resolutionTree);

Powered by Google App Engine
This is Rietveld 408576698