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

Issue 11065007: Use the correct inputs when checking if inverse operator can be used. (Closed)

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

Description

Use the correct inputs when checking if inverse operator can be used. R=lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=13275

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : Use the right inputs. #

Total comments: 2

Patch Set 5 : Address Florians comments. #

Patch Set 6 : Change name of helper function.' #

Patch Set 7 : Change name of helper. #

Patch Set 8 : !isDouble is not enough, because we could infer num for a NaN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -20 lines) Patch
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 6 7 2 chunks +12 lines, -13 lines 0 comments Download
A + tests/compiler/dart2js/inverse_operator_test.dart View 1 2 3 4 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
karlklose
8 years, 2 months ago (2012-10-04 09:26:48 UTC) #1
karlklose
I tried to trigger this branch with the following program, but it did not find ...
8 years, 2 months ago (2012-10-04 09:27:57 UTC) #2
ngeoffray
https://chromiumcodereview.appspot.com/11065007/diff/1001/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/11065007/diff/1001/lib/compiler/implementation/ssa/codegen.dart#newcode1806 lib/compiler/implementation/ssa/codegen.dart:1806: !input.inputs[1].isDouble(types)) { I think all these && make it ...
8 years, 2 months ago (2012-10-04 09:39:05 UTC) #3
karlklose
Setting Lasse as reviewer. https://chromiumcodereview.appspot.com/11065007/diff/1001/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/11065007/diff/1001/lib/compiler/implementation/ssa/codegen.dart#newcode1806 lib/compiler/implementation/ssa/codegen.dart:1806: !input.inputs[1].isDouble(types)) { In the attached ...
8 years, 2 months ago (2012-10-04 10:06:08 UTC) #4
karlklose
PTAL.
8 years, 2 months ago (2012-10-04 10:59:33 UTC) #5
Lasse Reichstein Nielsen
STV!
8 years, 2 months ago (2012-10-04 11:02:42 UTC) #6
floitsch
LGTM. https://chromiumcodereview.appspot.com/11065007/diff/6001/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/11065007/diff/6001/lib/compiler/implementation/ssa/codegen.dart#newcode1803 lib/compiler/implementation/ssa/codegen.dart:1803: types[input.inputs[1]].isUseful() && I really think we should make ...
8 years, 2 months ago (2012-10-04 11:35:26 UTC) #7
floitsch
LGTM although I would be happy with a different name.
8 years, 2 months ago (2012-10-04 13:06:57 UTC) #8
karlklose
What about this name?
8 years, 2 months ago (2012-10-04 13:10:43 UTC) #9
floitsch
8 years, 2 months ago (2012-10-04 16:22:15 UTC) #10
LGTM. thanks.

Powered by Google App Engine
This is Rietveld 408576698