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

Issue 2034093002: Implement WASM big-endian support (Closed)

Created:
4 years, 6 months ago by ivica.bogosavljevic
Modified:
4 years, 6 months ago
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

Implement WASM big-endian support. Implement WASM support on big-endian platforms. WASM has an implicit requirement that it is running on little-endian machine. We achieve WASM support on BE by keeping data in memory in little-endian order, and changing data endianness before storing to memory and after loading from memory. BUG= Committed: https://crrev.com/d3f3f6c8186b2a53f0c539f7bba0c3708c4d83f9 Cr-Commit-Position: refs/heads/master@{#37065}

Patch Set 1 #

Patch Set 2 : Add byte swapping TODO mark #

Total comments: 12

Patch Set 3 : Address code review remarks on BuildChangeEndianness #

Patch Set 4 : Address code review remarks on helper methods #

Patch Set 5 : Small fixes. Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -162 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 3 chunks +130 lines, -0 lines 0 comments Download
M src/utils.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M src/wasm/decoder.h View 1 2 3 4 2 chunks +3 lines, -37 lines 0 comments Download
M src/wasm/encoder.h View 1 2 3 1 chunk +2 lines, -14 lines 0 comments Download
M src/wasm/wasm-interpreter.cc View 1 2 3 4 2 chunks +29 lines, -29 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 1 chunk +0 lines, -19 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 3 4 18 chunks +49 lines, -47 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-64.cc View 1 2 3 4 7 chunks +12 lines, -12 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 3 4 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
ivica.bogosavljevic
PTAL This fixes all failures in cctest related to wasm on MIPS64: test-run-wasm/*, test-run-wasm-64/*, test-run-wasm-asmjs/* ...
4 years, 6 months ago (2016-06-03 14:14:52 UTC) #3
titzer
Looks mostly good. https://codereview.chromium.org/2034093002/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2034093002/diff/20001/src/compiler/wasm-compiler.cc#newcode1046 src/compiler/wasm-compiler.cc:1046: Binop(shiftLeftOpcode, value, jsgraph()->Int32Constant(shiftCount)); Reusing the Binop() ...
4 years, 6 months ago (2016-06-06 07:44:00 UTC) #4
john.yan
https://codereview.chromium.org/2034093002/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2034093002/diff/20001/src/compiler/wasm-compiler.cc#newcode2883 src/compiler/wasm-compiler.cc:2883: // TODO(mips-team) Implement byte swap turbofan operator FYI: https://codereview.chromium.org/2045943002/
4 years, 6 months ago (2016-06-07 17:47:00 UTC) #6
john.yan
On 2016/06/03 14:14:52, ivica.bogosavljevic wrote: > PTAL > > This fixes all failures in cctest ...
4 years, 6 months ago (2016-06-09 18:21:50 UTC) #7
ivica.bogosavljevic
On 2016/06/09 18:21:50, john.yan wrote: > On 2016/06/03 14:14:52, ivica.bogosavljevic wrote: > > PTAL > ...
4 years, 6 months ago (2016-06-10 14:08:29 UTC) #8
john.yan
On 2016/06/10 14:08:29, ivica.bogosavljevic wrote: > On 2016/06/09 18:21:50, john.yan wrote: > > On 2016/06/03 ...
4 years, 6 months ago (2016-06-10 14:58:32 UTC) #9
ivica.bogosavljevic
PTAL https://codereview.chromium.org/2034093002/diff/20001/src/utils.h File src/utils.h (right): https://codereview.chromium.org/2034093002/diff/20001/src/utils.h#newcode1552 src/utils.h:1552: static inline V ReadLittleEndianValue(const void* p) { On ...
4 years, 6 months ago (2016-06-13 14:59:03 UTC) #10
john.yan
On 2016/06/13 14:59:03, ivica.bogosavljevic wrote: > PTAL > > https://codereview.chromium.org/2034093002/diff/20001/src/utils.h > File src/utils.h (right): > ...
4 years, 6 months ago (2016-06-14 01:12:20 UTC) #11
titzer
On 2016/06/14 01:12:20, john.yan wrote: > On 2016/06/13 14:59:03, ivica.bogosavljevic wrote: > > PTAL > ...
4 years, 6 months ago (2016-06-16 22:45:15 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034093002/60001
4 years, 6 months ago (2016-06-17 08:00:26 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/3384) v8_linux64_avx2_rel_ng on ...
4 years, 6 months ago (2016-06-17 08:01:32 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034093002/80001
4 years, 6 months ago (2016-06-17 11:13:29 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 11:44:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034093002/80001
4 years, 6 months ago (2016-06-17 11:49:19 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-17 11:51:23 UTC) #25
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/d3f3f6c8186b2a53f0c539f7bba0c3708c4d83f9 Cr-Commit-Position: refs/heads/master@{#37065}
4 years, 6 months ago (2016-06-17 11:53:35 UTC) #27
Michael Achenbach
4 years, 6 months ago (2016-06-20 07:08:28 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2080153002/ by machenbach@chromium.org.

The reason for reverting is: [Sheriff] Speculative revert for crashes on
chrubuntu chromebooks:
https://build.chromium.org/p/client.v8.ports/builders/V8%20Arm/builds/320.

Powered by Google App Engine
This is Rietveld 408576698