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

Issue 2722483003: [turbofan] Introduce dedicated ObjectIsNaN operator. (Closed)

Created:
3 years, 9 months ago by Benedikt Meurer
Modified:
3 years, 9 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Introduce dedicated ObjectIsNaN operator. We can compile a !== a and Number.isNaN(a) to ObjectIsNaN. The former is commonly used to check for NaN, i.e. in case of equals in AngularJS. R=jarin@chromium.org BUG=v8:5267 Review-Url: https://codereview.chromium.org/2722483003 Cr-Commit-Position: refs/heads/master@{#43572} Committed: https://chromium.googlesource.com/v8/v8/+/de52562d8e6fec7949cafd39bb7aa58d3269ac8e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use GetUpperBound. Add test cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -13 lines) Patch
M src/compiler/effect-control-linearizer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/effect-control-linearizer.cc View 1 2 chunks +26 lines, -0 lines 0 comments Download
M src/compiler/js-builtin-reducer.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M src/compiler/opcodes.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M src/compiler/simplified-operator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/simplified-operator.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/typer.cc View 1 3 chunks +11 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/number-isnan-opt.js View 1 1 chunk +55 lines, -0 lines 0 comments Download
M test/unittests/compiler/js-builtin-reducer-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Benedikt Meurer
3 years, 9 months ago (2017-02-27 14:04:32 UTC) #1
Jarin
https://codereview.chromium.org/2722483003/diff/1/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/2722483003/diff/1/src/compiler/simplified-lowering.cc#newcode2551 src/compiler/simplified-lowering.cc:2551: VisitUnop(node, UseInfo::None(), MachineRepresentation::kBit); Are you sure it is ok ...
3 years, 9 months ago (2017-02-27 15:15:49 UTC) #6
Benedikt Meurer
Feedback addressed. https://codereview.chromium.org/2722483003/diff/1/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/2722483003/diff/1/src/compiler/simplified-lowering.cc#newcode2551 src/compiler/simplified-lowering.cc:2551: VisitUnop(node, UseInfo::None(), MachineRepresentation::kBit); Changed to GetUpperBound now, ...
3 years, 9 months ago (2017-03-03 08:42:15 UTC) #9
Jarin
lgtm lgtm, thanks!
3 years, 9 months ago (2017-03-03 08:59:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2722483003/20001
3 years, 9 months ago (2017-03-03 09:01:26 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 09:08:20 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/de52562d8e6fec7949cafd39bb7aa58d326...

Powered by Google App Engine
This is Rietveld 408576698