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

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

Issue 10562041: Introduce HLocalValue and HLocalGet/Set. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: lib/compiler/implementation/ssa/variable_allocator.dart
diff --git a/lib/compiler/implementation/ssa/variable_allocator.dart b/lib/compiler/implementation/ssa/variable_allocator.dart
index fc01e86d8de5938ea7ebb1f5da57b40c8e7cb450..fca59859946cf44839cbdadc587ac7dbb87aaa88 100644
--- a/lib/compiler/implementation/ssa/variable_allocator.dart
+++ b/lib/compiler/implementation/ssa/variable_allocator.dart
@@ -285,8 +285,8 @@ class SsaLiveIntervalBuilder extends HBaseVisitor {
});
env.removeLoopMarker(header);
-
- // Update all liveIns set to contain the liveIns of [header].
+
+ // Update all liveIns set to contain the liveIns of [header].
liveInstructions.forEach((HBasicBlock block, LiveEnvironment other) {
if (other.loopMarkers.containsKey(header)) {
env.liveInstructions.forEach((HInstruction instruction, int id) {
@@ -563,10 +563,10 @@ class SsaVariableAllocator extends HBaseVisitor {
*/
bool needsName(HInstruction instruction) {
if (instruction.usedBy.isEmpty()) return false;
- // TODO(ngeoffray): parameters are being generated at use site,
+ // TODO(ngeoffray): locals/parameters are being generated at use site,
// but we need a name for parameters. We should probably not make
kasperl 2012/06/19 11:19:45 parameters -> them
floitsch 2012/06/19 11:31:33 Done.
// them generate at use site to make things simpler.
- if (instruction is HParameterValue && instruction is !HThis) return true;
+ if (instruction is HLocalValue && instruction is !HThis) return true;
if (generateAtUseSite.contains(instruction)) return false;
// A [HCheck] instruction that has control flow needs a name only if its
// checked input needs a name (e.g. a check [HConstant] does not
« lib/compiler/implementation/ssa/nodes.dart ('K') | « lib/compiler/implementation/ssa/tracer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698