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

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

Issue 10831154: Make field-get/set work without elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. 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
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/tracer.dart
diff --git a/lib/compiler/implementation/ssa/tracer.dart b/lib/compiler/implementation/ssa/tracer.dart
index eab32e1e22c0350c9a543adf4e471ab5e3a4fbd9..154e2fb860d9f86a0d88437231fade55db6eda5a 100644
--- a/lib/compiler/implementation/ssa/tracer.dart
+++ b/lib/compiler/implementation/ssa/tracer.dart
@@ -259,13 +259,12 @@ class HInstructionStringifier implements HVisitor<String> {
String visitExit(HExit node) => "exit";
String visitFieldGet(HFieldGet node) {
- String fieldName = node.element.name.slowToString();
- return 'get ${temporaryId(node.receiver)}.$fieldName';
+ return 'get ${temporaryId(node.receiver)}.${node.fieldName.slowToString()}';
}
String visitFieldSet(HFieldSet node) {
String valueId = temporaryId(node.value);
- String fieldName = node.element.name.slowToString();
+ String fieldName = node.fieldName.slowToString();
return 'set ${temporaryId(node.receiver)}.$fieldName to $valueId';
}
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698