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

Issue 10696120: Fix very subtle bug in HNode.changeUse. (Closed)

Created:
8 years, 5 months ago by floitsch
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix very subtle bug in HNode.changeUse. Committed: https://code.google.com/p/dart/source/detail?r=9441

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -6 lines) Patch
M lib/compiler/implementation/ssa/nodes.dart View 1 3 chunks +9 lines, -6 lines 0 comments Download
A tests/language/partial_min_test.dart View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
floitsch
8 years, 5 months ago (2012-07-05 17:34:45 UTC) #1
Lasse Reichstein Nielsen
LGTM and good catch. https://chromiumcodereview.appspot.com/10696120/diff/1/lib/compiler/implementation/ssa/nodes.dart File lib/compiler/implementation/ssa/nodes.dart (right): https://chromiumcodereview.appspot.com/10696120/diff/1/lib/compiler/implementation/ssa/nodes.dart#newcode938 lib/compiler/implementation/ssa/nodes.dart:938: oldInputUsers.length = oldInputUsers.length - 1; ...
8 years, 5 months ago (2012-07-06 11:22:16 UTC) #2
floitsch
8 years, 5 months ago (2012-07-06 15:20:33 UTC) #3
https://chromiumcodereview.appspot.com/10696120/diff/1/lib/compiler/implement...
File lib/compiler/implementation/ssa/nodes.dart (right):

https://chromiumcodereview.appspot.com/10696120/diff/1/lib/compiler/implement...
lib/compiler/implementation/ssa/nodes.dart:938: oldInputUsers.length =
oldInputUsers.length - 1;
On 2012/07/06 11:22:16, Lasse Reichstein Nielsen wrote:
> Use 'oldInputUsers.length -= 1' here, or even 'oldInputUsers.length--'.
done.
> 
> If order is irrelevant, and duplicates probably irrelevant, why do we use a
List
> and not a Set?
I'm not sure duplicates are irrelevant. Maybe another CL.

Powered by Google App Engine
This is Rietveld 408576698