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

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

Issue 10543050: Compute the swap temporary to not clash with parameter names. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
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: dart/lib/compiler/implementation/ssa/codegen.dart
===================================================================
--- dart/lib/compiler/implementation/ssa/codegen.dart (revision 8381)
+++ dart/lib/compiler/implementation/ssa/codegen.dart (working copy)
@@ -1075,7 +1075,7 @@
// cycle that we break by using a temporary name.
if (currentLocation[current] !== null
&& current != currentLocation[initialValue[current]]) {
- String tempName = VariableNames.SWAP_TEMP;
+ String tempName = variableNames.swapTemp;
emitAssignment(tempName, current);
currentLocation[current] = tempName;
// [current] can now be safely updated. Copies of [current]

Powered by Google App Engine
This is Rietveld 408576698