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

Issue 2138633002: [turbofan] Introduce CheckedInt32Div and CheckedInt32Mod operators. (Closed)

Created:
4 years, 5 months ago by Benedikt Meurer
Modified:
4 years, 5 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Introduce CheckedInt32Div and CheckedInt32Mod operators. Consume Smi/Signed32 feedback for division and modulus and introduce appropriate checked operators. This is especially important for modulus where the Float64Mod operator is significantly slower than Int32Mod on most platforms. For division it's mostly important to propagate integerness, i.e. to avoid follow-up conversions between float and int32. Drive-by-fix: Use Int32Mod for the ModulusStub (and the bytecode handler) when the inputs are both Smi. R=jarin@chromium.org Committed: https://crrev.com/03bde2660a81d532fbe081870cdbb26c8ecc04e9 Cr-Commit-Position: refs/heads/master@{#37621}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -31 lines) Patch
M src/code-stub-assembler.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 chunks +71 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 3 chunks +11 lines, -5 lines 0 comments Download
M src/compiler/code-assembler.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/effect-control-linearizer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/effect-control-linearizer.cc View 1 2 chunks +164 lines, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 chunk +23 lines, -8 lines 0 comments Download
M src/compiler/opcodes.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/redundancy-elimination.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/representation-change.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M src/compiler/simplified-lowering.cc View 4 chunks +125 lines, -14 lines 0 comments Download
M src/compiler/simplified-operator.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/simplified-operator.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-js-typed-lowering.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Benedikt Meurer
4 years, 5 months ago (2016-07-11 03:59:22 UTC) #1
Benedikt Meurer
Hey Jaro, Here's another Kraken helper. Please take a look. Thanks, Benedikt
4 years, 5 months ago (2016-07-11 04:06:41 UTC) #4
Jarin
This looks awesome, thanks! lgtm. https://codereview.chromium.org/2138633002/diff/1/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2138633002/diff/1/src/code-stub-assembler.cc#newcode354 src/code-stub-assembler.cc:354: // Check if {a} ...
4 years, 5 months ago (2016-07-11 04:47:20 UTC) #7
Benedikt Meurer
https://codereview.chromium.org/2138633002/diff/1/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2138633002/diff/1/src/code-stub-assembler.cc#newcode354 src/code-stub-assembler.cc:354: // Check if {a} is positive (or zero). On ...
4 years, 5 months ago (2016-07-11 05:03:23 UTC) #8
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/2138633002/20001
4 years, 5 months ago (2016-07-11 05:03:37 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-11 05:27:23 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 05:28:07 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/03bde2660a81d532fbe081870cdbb26c8ecc04e9
Cr-Commit-Position: refs/heads/master@{#37621}

Powered by Google App Engine
This is Rietveld 408576698