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

Issue 2516413003: [wasm] Add ProtectedStore instruction (Closed)

Created:
4 years, 1 month ago by Eric Holk
Modified:
4 years ago
Reviewers:
titzer, bradnelson
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Add ProtectedStore instruction This is necessary for signal-based out of bounds handling in WebAssembly. Adds a ProtectedStore instruction that is analogous to the previously added ProtectedLoad instruction. Rather than using bounds checks, ProtectedStore emits an out of line section of code that throws a JavaScript exception and provides the necessary metadata for a signal handler to be able to find the out of line code. BUG= https://bugs.chromium.org/p/v8/issues/detail?id=5277 Committed: https://crrev.com/4ab4bbe9b16a47a16b4f8d6bf17eb77eadbb139d Cr-Commit-Position: refs/heads/master@{#41398}

Patch Set 1 #

Patch Set 2 : Stubbing out other architectures #

Patch Set 3 : Formatting #

Total comments: 7

Patch Set 4 : Behave well on unsupported platforms; refactored protect memory movement to support other sizes. #

Patch Set 5 : Fixing Windows #

Patch Set 6 : Merging with master; fixing v8_linux64_gyp_rel_ng #

Patch Set 7 : Merge branch 'master' of https://chromium.googlesource.com/v8/v8 into protected-store #

Total comments: 2

Patch Set 8 : Fixing nits #

Patch Set 9 : Merging with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -55 lines) Patch
M src/compiler/arm/instruction-selector-arm.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/machine-operator.h View 2 chunks +1 line, -1 line 0 comments Download
M src/compiler/machine-operator.cc View 4 chunks +33 lines, -4 lines 0 comments Download
M src/compiler/mips/instruction-selector-mips.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/mips64/instruction-selector-mips64.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/opcodes.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/ppc/instruction-selector-ppc.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/s390/instruction-selector-s390.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 8 6 chunks +29 lines, -8 lines 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 2 3 4 5 6 7 9 chunks +27 lines, -8 lines 0 comments Download
M src/compiler/x64/instruction-codes-x64.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/x64/instruction-scheduler-x64.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 4 5 6 7 8 5 chunks +60 lines, -32 lines 0 comments Download
M src/compiler/x87/instruction-selector-x87.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
Eric Holk
4 years, 1 month ago (2016-11-22 01:44:35 UTC) #5
bradnelson
https://codereview.chromium.org/2516413003/diff/40001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2516413003/diff/40001/src/compiler/wasm-compiler.cc#newcode3012 src/compiler/wasm-compiler.cc:3012: if (!FLAG_wasm_trap_handler) { The fuzzers are going to throw ...
4 years, 1 month ago (2016-11-22 02:02:36 UTC) #10
titzer
https://codereview.chromium.org/2516413003/diff/40001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2516413003/diff/40001/src/compiler/wasm-compiler.cc#newcode3012 src/compiler/wasm-compiler.cc:3012: if (!FLAG_wasm_trap_handler) { On 2016/11/22 02:02:36, bradnelson wrote: > ...
4 years, 1 month ago (2016-11-22 10:33:20 UTC) #11
Eric Holk
https://codereview.chromium.org/2516413003/diff/40001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2516413003/diff/40001/src/compiler/wasm-compiler.cc#newcode3012 src/compiler/wasm-compiler.cc:3012: if (!FLAG_wasm_trap_handler) { On 2016/11/22 10:33:20, titzer wrote: > ...
4 years ago (2016-11-22 23:16:25 UTC) #14
Eric Holk
ping
4 years ago (2016-11-30 17:11:16 UTC) #21
titzer
lgtm https://codereview.chromium.org/2516413003/diff/120001/src/compiler/x64/code-generator-x64.cc File src/compiler/x64/code-generator-x64.cc (right): https://codereview.chromium.org/2516413003/diff/120001/src/compiler/x64/code-generator-x64.cc#newcode305 src/compiler/x64/code-generator-x64.cc:305: void MaybeEmitOOLTrap(Zone* zone, CodeGenerator* codegen, EmitOOLTrapIfNeeded?
4 years ago (2016-11-30 17:23:23 UTC) #22
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/2516413003/160001
4 years ago (2016-11-30 18:59:06 UTC) #25
Eric Holk
Thanks! https://codereview.chromium.org/2516413003/diff/120001/src/compiler/x64/code-generator-x64.cc File src/compiler/x64/code-generator-x64.cc (right): https://codereview.chromium.org/2516413003/diff/120001/src/compiler/x64/code-generator-x64.cc#newcode305 src/compiler/x64/code-generator-x64.cc:305: void MaybeEmitOOLTrap(Zone* zone, CodeGenerator* codegen, On 2016/11/30 17:23:23, ...
4 years ago (2016-11-30 18:59:08 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-11-30 19:51:23 UTC) #29
commit-bot: I haz the power
4 years ago (2016-11-30 19:52:07 UTC) #31
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4ab4bbe9b16a47a16b4f8d6bf17eb77eadbb139d
Cr-Commit-Position: refs/heads/master@{#41398}

Powered by Google App Engine
This is Rietveld 408576698