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

Issue 1738623003: [wasm] Int64Lowering of FXXXConvertI64 instructions. (Closed)

Created:
4 years, 10 months ago by ahaas
Modified:
4 years, 9 months ago
Reviewers:
titzer, Yang
CC:
v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Int64Lowering of FXXXConvertI64 instructions. On 32-bit systems FXXXConvertI64 instructions are compiled to calls to C functions. The TF node for the function call is already generated in the wasm compiler, the lowering of the I64 parameter is done in the Int64Lowering. R=titzer@chromium.org, yangguo@chromium.org Committed: https://crrev.com/b1e345905af9298acb088035b8c845dbfa36a8e8 Cr-Commit-Position: refs/heads/master@{#34487}

Patch Set 1 #

Patch Set 2 : Fixed the static_cast<double> problem on Windows. #

Patch Set 3 : Make code dependent on V8_CC_MSC and not V8_OS_WIN #

Total comments: 4

Patch Set 4 : just for testing #

Patch Set 5 : Comments done. #

Patch Set 6 : Use all variables. #

Patch Set 7 : Next try to fix the behavior on windows. #

Patch Set 8 : Another try on windows. #

Total comments: 5

Patch Set 9 : I try now to use int64-to-float32 to implement uint64-to-float32 correctly #

Patch Set 10 : typo #

Patch Set 11 : just for testing #

Patch Set 12 : New implementation of uint64-to-float32 conversion on Windows. #

Patch Set 13 : lsb trick on windows. #

Patch Set 14 : Use the addition method for uint64_to_float64. #

Patch Set 15 : Adjusted strings in serializer-common.cc #

Patch Set 16 : Add #ifndef to wasm-external-refs.h. #

Patch Set 17 : rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+801 lines, -213 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +12 lines, -8 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +37 lines, -41 lines 0 comments Download
M src/compiler/int64-lowering.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/wasm-compiler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +94 lines, -36 lines 0 comments Download
M src/snapshot/serializer-common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +24 lines, -18 lines 0 comments Download
A src/wasm/wasm-external-refs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +99 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/compiler/test-run-calls-to-external-references.cc View 1 2 3 4 5 6 7 1 chunk +336 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -73 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -34 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +185 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
ahaas
4 years, 10 months ago (2016-02-25 13:42:08 UTC) #1
Yang
serializer lgtm.
4 years, 10 months ago (2016-02-25 14:23:34 UTC) #2
titzer
https://codereview.chromium.org/1738623003/diff/40001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/1738623003/diff/40001/src/compiler/wasm-compiler.cc#newcode1508 src/compiler/wasm-compiler.cc:1508: MachineRepresentation parameter_representation = You can shorten this code up ...
4 years, 10 months ago (2016-02-25 17:04:33 UTC) #3
ahaas
https://codereview.chromium.org/1738623003/diff/40001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/1738623003/diff/40001/src/compiler/wasm-compiler.cc#newcode1508 src/compiler/wasm-compiler.cc:1508: MachineRepresentation parameter_representation = On 2016/02/25 at 17:04:33, titzer wrote: ...
4 years, 10 months ago (2016-02-25 18:29:19 UTC) #4
titzer
Looks good other than splitting out the assembler changes to a src/wasm file. https://codereview.chromium.org/1738623003/diff/130001/src/assembler.cc File ...
4 years, 9 months ago (2016-02-28 15:26:03 UTC) #5
ahaas
https://codereview.chromium.org/1738623003/diff/130001/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/1738623003/diff/130001/src/assembler.cc#newcode1150 src/assembler.cc:1150: static void wasm_f32_trunc_wrapper(float* param) { *param = truncf(*param); } ...
4 years, 9 months ago (2016-03-02 14:02:56 UTC) #6
titzer
https://codereview.chromium.org/1738623003/diff/130001/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/1738623003/diff/130001/src/assembler.cc#newcode1150 src/assembler.cc:1150: static void wasm_f32_trunc_wrapper(float* param) { *param = truncf(*param); } ...
4 years, 9 months ago (2016-03-02 14:06:20 UTC) #7
titzer
lgtm
4 years, 9 months ago (2016-03-04 02:15:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738623003/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738623003/310001
4 years, 9 months ago (2016-03-04 09:45:14 UTC) #11
commit-bot: I haz the power
Committed patchset #17 (id:310001)
4 years, 9 months ago (2016-03-04 09:50:53 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 09:51:54 UTC) #14
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/b1e345905af9298acb088035b8c845dbfa36a8e8
Cr-Commit-Position: refs/heads/master@{#34487}

Powered by Google App Engine
This is Rietveld 408576698