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

Issue 2721053002: MIPS: Fix int64->int32 lowering in wasm-to-interpeter entry on big-endian archs. (Closed)

Created:
3 years, 9 months ago by ivica.bogosavljevic
Modified:
3 years, 9 months ago
CC:
v8-mips-ports_googlegroups.com, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS: Fix int64->int32 lowering in wasm-to-interpeter entry on big-endian archs. WASM interpreter requires that parameters are stored in big-endian natural memory order (higher bits on lower addresses and lower bits on higher address). On the other hand, WASM compiled code naturally stores data in memory in little-endian order. This CL implements big-endian support for passing double and int64 parameters to WASM interpreter. TEST=cctest/test-wasm-interpreter-entry/TestArgumentPassing_int64, cctest/test-wasm-interpreter-entry/TestArgumentPassing_AllTypes BUG=v8:6043 Review-Url: https://codereview.chromium.org/2721053002 Cr-Commit-Position: refs/heads/master@{#43568} Committed: https://chromium.googlesource.com/v8/v8/+/4f426e104dd67d2dd72bf44aef70c032eea3be7d

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address code review remarks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -16 lines) Patch
M src/compiler/wasm-compiler.cc View 1 1 chunk +16 lines, -16 lines 0 comments Download
M src/utils.h View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
ivica.bogosavljevic
PTAL
3 years, 9 months ago (2017-02-28 15:29:57 UTC) #2
Clemens Hammacher
https://codereview.chromium.org/2721053002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2721053002/diff/1/src/compiler/wasm-compiler.cc#newcode2988 src/compiler/wasm-compiler.cc:2988: store_rep = StoreRepresentation(wasm::kWasmI32, This assignment is redundant. https://codereview.chromium.org/2721053002/diff/1/src/utils.h File ...
3 years, 9 months ago (2017-03-01 08:51:13 UTC) #5
ivica.bogosavljevic
https://codereview.chromium.org/2721053002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2721053002/diff/1/src/compiler/wasm-compiler.cc#newcode2988 src/compiler/wasm-compiler.cc:2988: store_rep = StoreRepresentation(wasm::kWasmI32, On 2017/03/01 08:51:13, Clemens Hammacher wrote: ...
3 years, 9 months ago (2017-03-01 12:58:48 UTC) #8
Clemens Hammacher
Can you upload the new patch set please? https://codereview.chromium.org/2721053002/diff/1/src/utils.h File src/utils.h (right): https://codereview.chromium.org/2721053002/diff/1/src/utils.h#newcode525 src/utils.h:525: #if ...
3 years, 9 months ago (2017-03-01 13:15:20 UTC) #10
ivica.bogosavljevic
Uploaded a new CL, PTAL https://codereview.chromium.org/2721053002/diff/1/src/utils.h File src/utils.h (right): https://codereview.chromium.org/2721053002/diff/1/src/utils.h#newcode525 src/utils.h:525: #if defined(V8_TARGET_LITTLE_ENDIAN) On 2017/03/01 ...
3 years, 9 months ago (2017-03-01 15:35:32 UTC) #11
Clemens Hammacher
LGTM, thanks!
3 years, 9 months ago (2017-03-01 15:45:41 UTC) #15
titzer
lgtm
3 years, 9 months ago (2017-03-02 09:10:33 UTC) #18
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/2721053002/20001
3 years, 9 months ago (2017-03-03 07:33:07 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/4f426e104dd67d2dd72bf44aef70c032eea3be7d
3 years, 9 months ago (2017-03-03 07:34:46 UTC) #27
JaideepBajwa
Hi, Can this be backported to 5.8? this also affects ppc/s390 big endian platforms. Thank ...
3 years, 9 months ago (2017-03-03 19:23:20 UTC) #29
Michael Hablich
Please follow https://github.com/v8/v8/wiki/Merging%20&%20Patching. Backporting this is lgtm.
3 years, 9 months ago (2017-03-06 09:58:48 UTC) #30
Clemens Hammacher
On 2017/03/06 at 09:58:48, hablich wrote: > Please follow https://github.com/v8/v8/wiki/Merging%20&%20Patching. > > Backporting this is ...
3 years, 9 months ago (2017-03-06 10:20:54 UTC) #31
Michael Hablich
On 2017/03/06 10:20:54, Clemens Hammacher wrote: > On 2017/03/06 at 09:58:48, hablich wrote: > > ...
3 years, 9 months ago (2017-03-08 14:22:20 UTC) #32
Clemens Hammacher
3 years, 9 months ago (2017-03-08 15:04:27 UTC) #35
Message was sent while issue was closed.
On 2017/03/08 at 14:22:20, hablich wrote:
> On 2017/03/06 10:20:54, Clemens Hammacher wrote:
> > On 2017/03/06 at 09:58:48, hablich wrote:
> > > Please follow https://github.com/v8/v8/wiki/Merging%20&%20Patching.
> > > 
> > > Backporting this is lgtm.
> > 
> > Bug here: https://bugs.chromium.org/p/v8/issues/detail?id=6043
> > Waiting for canary coverage.
> 
> Please reference the bug in the issue description.

Done.

Powered by Google App Engine
This is Rietveld 408576698