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

Issue 2887053003: MIPS[64]: Reland of `Fix unaligned arguments storage in Wasm-to-interpreter entry` (Closed)

Created:
3 years, 7 months ago by ivica.bogosavljevic
Modified:
3 years, 6 months ago
CC:
v8-reviews_googlegroups.com, wasm-v8_google.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS[64]: Reland of `Fix unaligned arguments storage in Wasm-to-interpreter entry` Reland 84ff6e4c1997b63c01e95504c31ee6c5504430d5 In Wasm-to-interpeter entry creation, arguments for the interpreter are stored in an argument buffer. Depending on the order of the arguments some arguments may be misaligned and this causes crashes on those architectures that do not support unaligned memory access. TEST=mjsunit/wasm/interpreter BUG= Review-Url: https://codereview.chromium.org/2887053003 Cr-Commit-Position: refs/heads/master@{#45703} Committed: https://chromium.googlesource.com/v8/v8/+/656c6d5eeae0048863bd18007231c07b48b5a9b5

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix the issue a bit differently #

Total comments: 2

Patch Set 3 : Simplifications. #

Total comments: 1

Patch Set 4 : Address code review remarks #

Total comments: 1

Patch Set 5 : Address code review remarks 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -19 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 chunks +31 lines, -18 lines 0 comments Download

Messages

Total messages: 32 (9 generated)
ivica.bogosavljevic
PTAL The new implementation uses aligned StackSlot The original code review is here: https://codereview.chromium.org/2705293011
3 years, 7 months ago (2017-05-17 09:26:34 UTC) #2
ivica.bogosavljevic
PTAL Uses StackSlot alignment to fix the bug with the unaligned parameters for WASM interpreter
3 years, 7 months ago (2017-05-18 11:38:09 UTC) #4
Clemens Hammacher
I don't get why all these changes are needed. Isn't the only requirement that the ...
3 years, 7 months ago (2017-05-18 11:52:05 UTC) #5
ivica.bogosavljevic
Each double and int64 has to be eight bytes aligned. So the simplest way to ...
3 years, 7 months ago (2017-05-18 12:21:34 UTC) #6
ivica.bogosavljevic
https://codereview.chromium.org/2887053003/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2887053003/diff/1/src/compiler/wasm-compiler.cc#newcode2819 src/compiler/wasm-compiler.cc:2819: std::max(args_size_bytes, return_size_bytes), 8)); On 2017/05/18 11:52:05, Clemens Hammacher wrote: ...
3 years, 7 months ago (2017-05-18 12:21:43 UTC) #7
Clemens Hammacher
On 2017/05/18 at 12:21:43, ivica.bogosavljevic wrote: > https://codereview.chromium.org/2887053003/diff/1/src/compiler/wasm-compiler.cc > File src/compiler/wasm-compiler.cc (right): > > https://codereview.chromium.org/2887053003/diff/1/src/compiler/wasm-compiler.cc#newcode2819 ...
3 years, 7 months ago (2017-05-18 12:58:17 UTC) #8
Clemens Hammacher
On 2017/05/18 at 12:58:17, Clemens Hammacher wrote: > On 2017/05/18 at 12:21:43, ivica.bogosavljevic wrote: > ...
3 years, 7 months ago (2017-05-18 13:25:31 UTC) #9
ivica.bogosavljevic
On 2017/05/18 13:25:31, Clemens Hammacher wrote: > On 2017/05/18 at 12:58:17, Clemens Hammacher wrote: > ...
3 years, 7 months ago (2017-05-18 14:09:56 UTC) #10
Clemens Hammacher
On 2017/05/18 at 14:09:56, ivica.bogosavljevic wrote: > On 2017/05/18 13:25:31, Clemens Hammacher wrote: > > ...
3 years, 7 months ago (2017-05-18 14:27:59 UTC) #11
ivica.bogosavljevic
On 2017/05/18 14:27:59, Clemens Hammacher wrote: > On 2017/05/18 at 14:09:56, ivica.bogosavljevic wrote: > > ...
3 years, 7 months ago (2017-05-19 08:51:53 UTC) #12
Clemens Hammacher
On 2017/05/19 at 08:51:53, ivica.bogosavljevic wrote: > On 2017/05/18 14:27:59, Clemens Hammacher wrote: > > ...
3 years, 7 months ago (2017-05-19 09:18:21 UTC) #13
ahaas
On 2017/05/19 at 09:18:21, clemensh wrote: > On 2017/05/19 at 08:51:53, ivica.bogosavljevic wrote: > > ...
3 years, 7 months ago (2017-05-19 09:33:09 UTC) #14
ivica.bogosavljevic
PTAL
3 years, 7 months ago (2017-05-19 11:47:30 UTC) #15
ivica.bogosavljevic
ping
3 years, 7 months ago (2017-05-23 11:48:50 UTC) #16
Clemens Hammacher
Sorry for the delay. Forgot about this over the weekend ;) Looking much better now, ...
3 years, 7 months ago (2017-05-23 12:35:12 UTC) #17
ivica.bogosavljevic
https://codereview.chromium.org/2887053003/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2887053003/diff/20001/src/compiler/wasm-compiler.cc#newcode2831 src/compiler/wasm-compiler.cc:2831: if (offset_aligned || On 2017/05/23 12:35:12, Clemens Hammacher wrote: ...
3 years, 7 months ago (2017-05-23 13:54:41 UTC) #18
ivica.bogosavljevic
PTAL
3 years, 7 months ago (2017-05-26 08:56:29 UTC) #19
Clemens Hammacher
Nice refactoring! One last thing. https://codereview.chromium.org/2887053003/diff/40001/src/compiler/wasm-compiler.h File src/compiler/wasm-compiler.h (right): https://codereview.chromium.org/2887053003/diff/40001/src/compiler/wasm-compiler.h#newcode300 src/compiler/wasm-compiler.h:300: const Operator* GetSafeStoreOperator(MachineOperatorBuilder* machine, ...
3 years, 7 months ago (2017-05-26 11:02:13 UTC) #20
ivica.bogosavljevic
PTAL
3 years, 7 months ago (2017-05-26 13:11:42 UTC) #21
Clemens Hammacher
https://codereview.chromium.org/2887053003/diff/60001/src/compiler/wasm-compiler.h File src/compiler/wasm-compiler.h (right): https://codereview.chromium.org/2887053003/diff/60001/src/compiler/wasm-compiler.h#newcode31 src/compiler/wasm-compiler.h:31: class MachineOperatorBuilder; This is unused now and should be ...
3 years, 7 months ago (2017-05-26 13:16:45 UTC) #22
Clemens Hammacher
LGTM, thanks!
3 years, 6 months ago (2017-05-29 09:25:38 UTC) #27
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/2887053003/80001
3 years, 6 months ago (2017-06-05 07:57:58 UTC) #29
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 08:29:20 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/656c6d5eeae0048863bd18007231c07b48b...

Powered by Google App Engine
This is Rietveld 408576698