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

Unified Diff: frog/leg/ssa/closure.dart

Issue 9419048: Resolve class element of Object, even if no objects are used. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « frog/leg/ssa/builder.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/closure.dart
diff --git a/frog/leg/ssa/closure.dart b/frog/leg/ssa/closure.dart
index 6dc77ce4404b3bf7c6f47366b06bd0eb2871ebca..28d3fc6c0dc54891ab3cca5660f507d76fa28cd2 100644
--- a/frog/leg/ssa/closure.dart
+++ b/frog/leg/ssa/closure.dart
@@ -298,9 +298,10 @@ class ClosureTranslator extends AbstractVisitor {
globalizedElement.backendMembers =
const EmptyLink<Element>().prepend(callElement);
globalizedElement.isResolved = true;
- ClassElement objectClass =
- compiler.coreLibrary.find(const SourceString('Object'));
- globalizedElement.supertype = new SimpleType(Types.OBJECT, objectClass);
+ // TODO(karlklose): create function to get the resolved class object.
+ ClassElement objectClass = compiler.coreLibrary.find(Types.OBJECT);
+ globalizedElement.supertype = objectClass.computeType(compiler);
+ objectClass.resolve(compiler);
// The nested function's 'this' is the same as the one for the outer
// function. It could be [null] if we are inside a static method.
Element thisElement = closureData.thisElement;
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698