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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 1162603006: Element model cleanup + prepare for easier reimplementation. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « pkg/compiler/lib/src/scanner/class_element_parser.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 24e1ffb4773cb693a96c4e8868bcc6a62973c1ba..526af96e00c14e1c0bbd5e7e845d4ba5df278d22 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -1873,7 +1873,7 @@ class SsaBuilder extends NewResolvedVisitor {
// by the effective target.
if (!callee.isRedirectingGenerative) {
inlinedFrom(callee, () {
- buildFieldInitializers(callee.enclosingElement.implementation,
+ buildFieldInitializers(callee.enclosingClass.implementation,
fieldValues);
});
}
@@ -2005,7 +2005,7 @@ class SsaBuilder extends NewResolvedVisitor {
ClassElement superClass = enclosingClass.superclass;
if (!enclosingClass.isObject) {
assert(superClass != null);
- assert(superClass.resolutionState == STATE_DONE);
+ assert(superClass.isResolved);
// TODO(johnniwinther): Should we find injected constructors as well?
FunctionElement target = superClass.lookupDefaultConstructor();
if (target == null) {
@@ -5135,7 +5135,7 @@ class SsaBuilder extends NewResolvedVisitor {
ast.NodeList arguments,
CallStructure callStructure,
_) {
- if (function.isForeign(backend)) {
+ if (backend.isForeign(function)) {
handleForeignSend(node, function);
} else {
generateStaticFunctionInvoke(node, function, callStructure);
« no previous file with comments | « pkg/compiler/lib/src/scanner/class_element_parser.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698