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

Issue 2381523002: [Turbofan] Introduce OtherNumberConstant. (Closed)

Created:
4 years, 2 months ago by mvstanton
Modified:
4 years, 2 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Turbofan] Introduce OtherNumberConstant. With this CL, we devolve all Constants introduced as they are with an object handle into * Range - for integers * Nan * MinusZero * OtherNumberConstant - for doubles * HeapConstant We reduce the amount we have to inspect an object handle during optimization. Also, simplifications result. For example, you never have to check if a Range contains a HeapConstant. BUG= Committed: https://crrev.com/978fe70beb3d297e34037d3776b39e9018d52980 Cr-Commit-Position: refs/heads/master@{#40041}

Patch Set 1 #

Patch Set 2 : REBASE. #

Total comments: 17

Patch Set 3 : Code comments. #

Patch Set 4 : More comments. #

Total comments: 18

Patch Set 5 : REBASE. #

Patch Set 6 : A quick fix. #

Patch Set 7 : Cleanup. #

Patch Set 8 : Lint warning fix. #

Patch Set 9 : Code comments. #

Patch Set 10 : Bug fix and REBASE. #

Patch Set 11 : Release compile fix. #

Patch Set 12 : Better DCHECK in HeapConstantType(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -261 lines) Patch
M src/compiler/js-builtin-reducer.cc View 1 2 3 4 10 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/js-create-lowering.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 4 11 chunks +26 lines, -27 lines 0 comments Download
M src/compiler/operation-typer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M src/compiler/typed-optimization.cc View 1 2 3 4 4 chunks +12 lines, -9 lines 0 comments Download
M src/compiler/typer.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +26 lines, -28 lines 0 comments Download
M src/compiler/types.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +56 lines, -15 lines 0 comments Download
M src/compiler/types.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +70 lines, -28 lines 0 comments Download
M test/cctest/test-types.cc View 1 2 3 4 11 chunks +112 lines, -107 lines 0 comments Download
M test/cctest/types-fuzz.h View 1 2 3 4 4 chunks +28 lines, -10 lines 0 comments Download
M test/unittests/compiler/graph-unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/js-create-lowering-unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/typed-optimization-unittest.cc View 8 chunks +13 lines, -13 lines 0 comments Download
M test/unittests/compiler/typer-unittest.cc View 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 40 (29 generated)
mvstanton
Address my comments. https://codereview.chromium.org/2381523002/diff/20001/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/2381523002/diff/20001/src/compiler/typer.cc#newcode596 src/compiler/typer.cc:596: return Type::Range(number, number, zone()); Type::IsInteger... remove ...
4 years, 2 months ago (2016-09-28 14:47:44 UTC) #1
mvstanton
Hi Jaro, Here is the code after our initial review at my desk. Thanks! --Mike ...
4 years, 2 months ago (2016-10-04 11:55:55 UTC) #3
Jarin
https://codereview.chromium.org/2381523002/diff/60001/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/2381523002/diff/60001/src/compiler/typer.cc#newcode595 src/compiler/typer.cc:595: return Type::NewConstant(f->NewNumber(number), zone()); How about having a factory from ...
4 years, 2 months ago (2016-10-04 13:14:55 UTC) #4
mvstanton
Hi Jaro, Comment response. I was able to remove code that compares Ranges and HeapConstants ...
4 years, 2 months ago (2016-10-05 13:51:10 UTC) #10
Jarin
https://codereview.chromium.org/2381523002/diff/60001/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/2381523002/diff/60001/src/compiler/typer.cc#newcode595 src/compiler/typer.cc:595: return Type::NewConstant(f->NewNumber(number), zone()); On 2016/10/05 13:51:10, mvstanton wrote: > ...
4 years, 2 months ago (2016-10-05 14:06:53 UTC) #15
mvstanton
Thanks for your comments. Have another look, thanks. --Mike https://codereview.chromium.org/2381523002/diff/60001/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/2381523002/diff/60001/src/compiler/typer.cc#newcode595 src/compiler/typer.cc:595: ...
4 years, 2 months ago (2016-10-05 14:14:44 UTC) #20
mvstanton
Another update, thanks, should be finally done. :) --Mike
4 years, 2 months ago (2016-10-06 13:26:08 UTC) #31
Jarin
lgtm, thanks!
4 years, 2 months ago (2016-10-06 13:41:15 UTC) #32
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/2381523002/220001
4 years, 2 months ago (2016-10-06 14:02:35 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-10-06 14:13:38 UTC) #38
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 14:13:59 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/978fe70beb3d297e34037d3776b39e9018d52980
Cr-Commit-Position: refs/heads/master@{#40041}

Powered by Google App Engine
This is Rietveld 408576698