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

Issue 1778893005: [wasm] Int64Lowering of Int64Sub on ia32 and arm. (Closed)

Created:
4 years, 9 months ago by ahaas
Modified:
4 years, 9 months ago
Reviewers:
titzer, jbramley, v8-arm-ports
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@wasm-add
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Int64Lowering of Int64Sub on ia32 and arm. Int64Sub is lowered to a new turbofan operator, Int32SubPair. The new operator takes 4 inputs an generates 2 outputs. The inputs are the low word of the left input, high word of the left input, the low word of the right input, and high word of the right input. The ouputs are the low and high word of the result of the subtraction. The implementation is very similar to the implementation of Int64Add. @v8-arm-ports: please take a careful look at the implementation of sbc in the simulator. R=titzer@chromium.org, v8-arm-ports@googlegroups.com Committed: https://crrev.com/33c08596e10f8ed64f8097049ac6c424c0616ee1 Cr-Commit-Position: refs/heads/master@{#34808}

Patch Set 1 #

Total comments: 2

Patch Set 2 : copy paste mistake #

Total comments: 9

Patch Set 3 : Fixed the simulator #

Patch Set 4 : Changed int64_t to uint64_t #

Patch Set 5 : Rebase. #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -21 lines) Patch
M src/arm/simulator-arm.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/arm/simulator-arm.cc View 1 2 2 chunks +12 lines, -4 lines 0 comments Download
M src/compiler/arm/code-generator-arm.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/compiler/arm/instruction-codes-arm.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm/instruction-scheduler-arm.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm/instruction-selector-arm.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M src/compiler/ia32/code-generator-ia32.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M src/compiler/ia32/instruction-codes-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ia32/instruction-scheduler-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 3 chunks +8 lines, -1 line 0 comments Download
M src/compiler/int64-lowering.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M src/compiler/machine-operator.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/machine-operator.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/mips/instruction-selector-mips.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/opcodes.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ppc/instruction-selector-ppc.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/typer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/x87/instruction-selector-x87.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 3 4 4 chunks +74 lines, -11 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 3 4 3 chunks +11 lines, -1 line 0 comments Download
M test/unittests/compiler/int64-lowering-unittest.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
ahaas
4 years, 9 months ago (2016-03-11 10:49:09 UTC) #1
jbramley
https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc File src/arm/simulator-arm.cc (right): https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc#newcode1341 src/arm/simulator-arm.cc:1341: (carry && (((uright + 1) > uleft) || (uright ...
4 years, 9 months ago (2016-03-11 15:23:43 UTC) #3
titzer
https://codereview.chromium.org/1778893005/diff/20001/src/arm/simulator-arm.cc File src/arm/simulator-arm.cc (right): https://codereview.chromium.org/1778893005/diff/20001/src/arm/simulator-arm.cc#newcode2499 src/arm/simulator-arm.cc:2499: alu_out = (rn_val - shifter_operand) - (GetCarry() ? 0 ...
4 years, 9 months ago (2016-03-14 09:36:06 UTC) #4
ahaas
https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc File src/arm/simulator-arm.cc (right): https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc#newcode1341 src/arm/simulator-arm.cc:1341: (carry && (((uright + 1) > uleft) || (uright ...
4 years, 9 months ago (2016-03-15 11:01:43 UTC) #5
titzer
https://codereview.chromium.org/1778893005/diff/20001/test/cctest/compiler/test-run-machops.cc File test/cctest/compiler/test-run-machops.cc (right): https://codereview.chromium.org/1778893005/diff/20001/test/cctest/compiler/test-run-machops.cc#newcode4200 test/cctest/compiler/test-run-machops.cc:4200: int64_t ToInt64(uint32_t low, uint32_t high) { On 2016/03/15 11:01:43, ...
4 years, 9 months ago (2016-03-15 11:05:39 UTC) #6
ahaas
On 2016/03/15 at 11:05:39, titzer wrote: > https://codereview.chromium.org/1778893005/diff/20001/test/cctest/compiler/test-run-machops.cc > File test/cctest/compiler/test-run-machops.cc (right): > > https://codereview.chromium.org/1778893005/diff/20001/test/cctest/compiler/test-run-machops.cc#newcode4200 ...
4 years, 9 months ago (2016-03-15 11:49:45 UTC) #7
jbramley
On 2016/03/15 11:01:43, ahaas wrote: > https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc > File src/arm/simulator-arm.cc (right): > > https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc#newcode1341 > ...
4 years, 9 months ago (2016-03-15 11:52:14 UTC) #8
ahaas
On 2016/03/15 at 11:52:14, jacob.bramley wrote: > On 2016/03/15 11:01:43, ahaas wrote: > > https://codereview.chromium.org/1778893005/diff/1/src/arm/simulator-arm.cc ...
4 years, 9 months ago (2016-03-15 14:00:05 UTC) #9
titzer
lgtm
4 years, 9 months ago (2016-03-16 09:56:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778893005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778893005/120001
4 years, 9 months ago (2016-03-16 10:02:45 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/12418)
4 years, 9 months ago (2016-03-16 10:05:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778893005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778893005/140001
4 years, 9 months ago (2016-03-16 10:20:59 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-16 10:56:36 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 10:58:16 UTC) #20
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/33c08596e10f8ed64f8097049ac6c424c0616ee1
Cr-Commit-Position: refs/heads/master@{#34808}

Powered by Google App Engine
This is Rietveld 408576698