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

Issue 2174123002: [wasm] Add support for multiple indirect function tables (Closed)

Created:
4 years, 5 months ago by ddchen
Modified:
4 years, 4 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

[wasm] Add support for multiple indirect function tables This patch updates internal data structures used by V8 to support multiple indirect function tables (WebAssembly/design#682). But, since this feature is post-MVP, the functionality is not directly exposed and parsing/generation of WebAssembly is left unchanged. Nevertheless, it is being used in an experiment to implement fine-grained control flow integrity based on C/C++ types. BUG= Committed: https://crrev.com/0a9d4003c78316dcbf366db718f9f6285d1c8a74 Cr-Commit-Position: refs/heads/master@{#38110}

Patch Set 1 #

Total comments: 27

Patch Set 2 : Fix loop bug, cleanups, style #

Total comments: 44

Patch Set 3 : Update for readability #

Patch Set 4 : Rename indirect tables #

Patch Set 5 : Rebase #

Patch Set 6 : Fix assertions, add casts #

Patch Set 7 : Fix more MSVC type checks #

Patch Set 8 : One last MSVC type fix #

Patch Set 9 : More MSVC type fixes #

Patch Set 10 : Fix GC issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -192 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 8 7 chunks +24 lines, -14 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 2 chunks +27 lines, -25 lines 0 comments Download
M src/wasm/wasm-interpreter.cc View 1 2 3 4 5 6 2 chunks +12 lines, -10 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 11 chunks +29 lines, -21 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 9 11 chunks +117 lines, -82 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 3 4 5 6 7 1 chunk +14 lines, -15 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 2 chunks +1 line, -2 lines 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 1 2 chunks +4 lines, -13 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 63 (52 generated)
ahaas
https://codereview.chromium.org/2174123002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2174123002/diff/1/src/compiler/wasm-compiler.cc#newcode2062 src/compiler/wasm-compiler.cc:2062: // Assume only one table for now. Could you ...
4 years, 4 months ago (2016-07-25 19:23:45 UTC) #7
ddchen
https://codereview.chromium.org/2174123002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2174123002/diff/1/src/compiler/wasm-compiler.cc#newcode2062 src/compiler/wasm-compiler.cc:2062: // Assume only one table for now. On 2016/07/25 ...
4 years, 4 months ago (2016-07-25 22:17:36 UTC) #8
Mircea Trofin
https://codereview.chromium.org/2174123002/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2174123002/diff/20001/src/compiler/wasm-compiler.cc#newcode2816 src/compiler/wasm-compiler.cc:2816: if (index >= function_tables_.size()) { I think it'd be ...
4 years, 4 months ago (2016-07-26 03:37:27 UTC) #21
ddchen
https://codereview.chromium.org/2174123002/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2174123002/diff/20001/src/compiler/wasm-compiler.cc#newcode2816 src/compiler/wasm-compiler.cc:2816: if (index >= function_tables_.size()) { On 2016/07/26 03:37:26, Mircea ...
4 years, 4 months ago (2016-07-26 05:44:45 UTC) #22
Mircea Trofin
https://codereview.chromium.org/2174123002/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2174123002/diff/20001/src/wasm/wasm-module.cc#newcode155 src/wasm/wasm-module.cc:155: kIndirectFunctionTable, // maybe FixedArray of FixedArray of On 2016/07/26 ...
4 years, 4 months ago (2016-07-26 05:52:47 UTC) #23
ddchen
https://codereview.chromium.org/2174123002/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2174123002/diff/20001/src/wasm/wasm-module.cc#newcode155 src/wasm/wasm-module.cc:155: kIndirectFunctionTable, // maybe FixedArray of FixedArray of On 2016/07/26 ...
4 years, 4 months ago (2016-07-26 16:11:44 UTC) #24
ddchen
4 years, 4 months ago (2016-07-26 16:11:46 UTC) #25
Mircea Trofin
On 2016/07/26 16:11:46, ddchen wrote: lgtm, but one more thing: please update the checkin comment ...
4 years, 4 months ago (2016-07-26 16:21:08 UTC) #30
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/2174123002/170001
4 years, 4 months ago (2016-07-28 04:55:21 UTC) #59
commit-bot: I haz the power
Committed patchset #10 (id:170001)
4 years, 4 months ago (2016-07-28 04:57:10 UTC) #61
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 04:57:33 UTC) #63
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0a9d4003c78316dcbf366db718f9f6285d1c8a74
Cr-Commit-Position: refs/heads/master@{#38110}

Powered by Google App Engine
This is Rietveld 408576698