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

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

Issue 10511008: Support overriding fields with fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 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
« no previous file with comments | « dart/lib/compiler/implementation/namer.dart ('k') | dart/lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/ssa/builder.dart
diff --git a/dart/lib/compiler/implementation/ssa/builder.dart b/dart/lib/compiler/implementation/ssa/builder.dart
index 8b0011ee304a10bdcc59c46c120ab955cd5c898a..53aacdd1fe8c8884ba66ad2fce96aac676ae5162 100644
--- a/dart/lib/compiler/implementation/ssa/builder.dart
+++ b/dart/lib/compiler/implementation/ssa/builder.dart
@@ -395,7 +395,7 @@ class LocalsHandler {
// itself.
HInstruction receiver = new HThis();
builder.add(receiver);
- HInstruction fieldGet = new HFieldGet(redirect.name, receiver);
+ HInstruction fieldGet = new HFieldGet(redirect, receiver);
builder.add(fieldGet);
return fieldGet;
} else if (isBoxed(element)) {
@@ -407,7 +407,7 @@ class LocalsHandler {
// the box.
assert(redirect.enclosingElement.kind == ElementKind.VARIABLE);
HInstruction box = readLocal(redirect.enclosingElement);
- HInstruction lookup = new HFieldGet(redirect.name, box);
+ HInstruction lookup = new HFieldGet(redirect, box);
builder.add(lookup);
return lookup;
} else {
@@ -474,7 +474,7 @@ class LocalsHandler {
// be accessed directly.
assert(redirect.enclosingElement.kind == ElementKind.VARIABLE);
HInstruction box = readLocal(redirect.enclosingElement);
- builder.add(new HFieldSet(redirect.name, box, value));
+ builder.add(new HFieldSet(redirect, box, value));
} else {
assert(isUsedInTry(element));
HParameterValue parameter = getActivationParameter(element);
« no previous file with comments | « dart/lib/compiler/implementation/namer.dart ('k') | dart/lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698