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

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

Issue 15861005: Implement ClassMirror.owner and LibraryMirror.uri. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix problem in deferred code Created 7 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
Index: dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index cb5b3626d067f9b850552d8777944b4792b58cb0..15a49da01b3e65d7bd0eca3b87556c364b8944b7 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -4040,9 +4040,11 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
native.handleSsaNative(this, node.expression);
return;
}
- assert(invariant(node, !node.isRedirectingFactoryBody));
HInstruction value;
- if (node.expression == null) {
+ if (node.isRedirectingFactoryBody) {
+ // TODO(ahe): This is only for reflection, and it is not correct yet.
+ value = graph.addConstantNull(constantSystem);
+ } else if (node.expression == null) {
value = graph.addConstantNull(constantSystem);
} else {
visit(node.expression);
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart ('k') | dart/tests/lib/mirrors/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698