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

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

Issue 10855125: Ensure supertypes are loaded safely. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: dart/lib/compiler/implementation/compile_time_constants.dart
diff --git a/dart/lib/compiler/implementation/compile_time_constants.dart b/dart/lib/compiler/implementation/compile_time_constants.dart
index 87792a842b6d10d6b339d87c06449debb8d094db..8ed21a8864e62e63a9a7c2abe66121b59c35ad6d 100644
--- a/dart/lib/compiler/implementation/compile_time_constants.dart
+++ b/dart/lib/compiler/implementation/compile_time_constants.dart
@@ -1130,7 +1130,7 @@ class ConstructorEvaluator extends CompileTimeConstantEvaluator {
ClassElement superClass = enclosingClass.superclass;
if (enclosingClass != compiler.objectClass) {
assert(superClass !== null);
- assert(superClass.isResolved);
+ assert(superClass.resolutionState == ClassElement.STATE_DONE);
FunctionElement targetConstructor =
superClass.lookupConstructor(superClass.name);
if (targetConstructor === null) {
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/compiler.dart » ('j') | dart/lib/compiler/implementation/elements/elements.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698