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

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

Issue 10035032: Give a sourceElement to SSA instructions so that if they end up being 'define' in the codegen (ie n… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/codegen.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/nodes.dart
===================================================================
--- lib/compiler/implementation/ssa/nodes.dart (revision 6688)
+++ lib/compiler/implementation/ssa/nodes.dart (working copy)
@@ -734,6 +734,8 @@
}
class HInstruction implements Hashable {
+ Element sourceElement;
+
final int id;
static int idCounter;
@@ -1765,8 +1767,6 @@
}
class HPhi extends HInstruction {
- final Element element;
-
static final IS_NOT_LOGICAL_OPERATOR = 0;
static final IS_AND = 1;
static final IS_OR = 2;
@@ -1776,7 +1776,9 @@
// The order of the [inputs] must correspond to the order of the
// predecessor-edges. That is if an input comes from the first predecessor
// of the surrounding block, then the input must be the first in the [HPhi].
- HPhi(this.element, List<HInstruction> inputs) : super(inputs);
+ HPhi(Element element, List<HInstruction> inputs) : super(inputs) {
+ sourceElement = element;
+ }
HPhi.noInputs(Element element) : this(element, <HInstruction>[]);
HPhi.singleInput(Element element, HInstruction input)
: this(element, <HInstruction>[input]);
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698