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

Issue 10543050: Compute the swap temporary to not clash with parameter names. (Closed)

Created:
8 years, 6 months ago by ngeoffray
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org, karlklose, ahe, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Compute the swap temporary to not clash with parameter names. Committed: https://code.google.com/p/dart/source/detail?r=8385

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -15 lines) Patch
M dart/lib/compiler/implementation/ssa/codegen.dart View 1 chunk +1 line, -1 line 0 comments Download
M dart/lib/compiler/implementation/ssa/variable_allocator.dart View 1 4 chunks +20 lines, -14 lines 2 comments Download
A dart/tests/language/parameter_name_conflict_test.dart View 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
8 years, 6 months ago (2012-06-07 08:48:11 UTC) #1
Lasse Reichstein Nielsen
This CL doesn't seem to have a patch for tracer.dart? https://chromiumcodereview.appspot.com/10543050/diff/1/dart/lib/compiler/implementation/ssa/variable_allocator.dart File dart/lib/compiler/implementation/ssa/variable_allocator.dart (right): https://chromiumcodereview.appspot.com/10543050/diff/1/dart/lib/compiler/implementation/ssa/variable_allocator.dart#newcode360 ...
8 years, 6 months ago (2012-06-07 08:53:21 UTC) #2
ngeoffray
https://chromiumcodereview.appspot.com/10543050/diff/1/dart/lib/compiler/implementation/ssa/variable_allocator.dart File dart/lib/compiler/implementation/ssa/variable_allocator.dart (right): https://chromiumcodereview.appspot.com/10543050/diff/1/dart/lib/compiler/implementation/ssa/variable_allocator.dart#newcode360 dart/lib/compiler/implementation/ssa/variable_allocator.dart:360: Set<String> parameters = new Set<String>.from(parameterNames.getValues()); On 2012/06/07 08:53:21, Lasse ...
8 years, 6 months ago (2012-06-07 09:10:41 UTC) #3
floitsch
LGTM. https://chromiumcodereview.appspot.com/10543050/diff/2002/dart/lib/compiler/implementation/ssa/variable_allocator.dart File dart/lib/compiler/implementation/ssa/variable_allocator.dart (right): https://chromiumcodereview.appspot.com/10543050/diff/2002/dart/lib/compiler/implementation/ssa/variable_allocator.dart#newcode425 dart/lib/compiler/implementation/ssa/variable_allocator.dart:425: String name = 't${temporaryIndex++}'; I thought we wanted ...
8 years, 6 months ago (2012-06-07 09:27:32 UTC) #4
ngeoffray
8 years, 6 months ago (2012-06-07 09:33:45 UTC) #5
Thanks Florian and Lasse.

https://chromiumcodereview.appspot.com/10543050/diff/2002/dart/lib/compiler/i...
File dart/lib/compiler/implementation/ssa/variable_allocator.dart (right):

https://chromiumcodereview.appspot.com/10543050/diff/2002/dart/lib/compiler/i...
dart/lib/compiler/implementation/ssa/variable_allocator.dart:425: String name =
't${temporaryIndex++}';
On 2012/06/07 09:27:32, floitsch wrote:
> I thought we wanted to avoid this, because variables can become free.

It's ok on one instance of a VariableNamer because there is one VariableNamer
per block.

Powered by Google App Engine
This is Rietveld 408576698