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

Issue 2619803004: [wasm] Add support for compiling WASM_INTERPRETER_ENTRY stubs (Closed)

Created:
3 years, 11 months ago by Clemens Hammacher
Modified:
3 years, 11 months ago
Reviewers:
titzer
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Add support for compiling WASM_INTERPRETER_ENTRY stubs Also, add a runtime function to call the interpreter, passing a stack-allocated buffer holding the arguments. The WASM_INTERPRETER_ENTRY stub allocates the stack slot for the arguments, fills it, and calls to the wasm interpreter. It's abi is compatible with WASM functions, such that we can just replace a call to a WASM_FUNCTION with a call to WASM_INTERPRETER_ENTRY. See tracking bug to get the overall picture. BUG=v8:5822 R=titzer@chromium.org Review-Url: https://codereview.chromium.org/2619803004 Cr-Commit-Position: refs/heads/master@{#42242} Committed: https://chromium.googlesource.com/v8/v8/+/a2efde46a1678e67ad20fc5ccda471beb5e24a4d

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments #

Total comments: 8

Patch Set 3 : Add comments #

Patch Set 4 : Change void* to uint8_t* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -5 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 5 chunks +167 lines, -4 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-wasm.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M src/wasm/wasm-debug.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/wasm/wasm-objects.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 28 (20 generated)
Clemens Hammacher
3 years, 11 months ago (2017-01-10 11:45:52 UTC) #5
titzer
https://codereview.chromium.org/2619803004/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2619803004/diff/1/src/compiler/wasm-compiler.cc#newcode2939 src/compiler/wasm-compiler.cc:2939: Node* arg_buffer = build_runtime_call(Runtime::kGetWasmInterpreterBuffer); I think we can put ...
3 years, 11 months ago (2017-01-10 19:00:51 UTC) #6
titzer
https://codereview.chromium.org/2619803004/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2619803004/diff/1/src/compiler/wasm-compiler.cc#newcode2939 src/compiler/wasm-compiler.cc:2939: Node* arg_buffer = build_runtime_call(Runtime::kGetWasmInterpreterBuffer); On 2017/01/10 19:00:51, titzer wrote: ...
3 years, 11 months ago (2017-01-10 19:02:47 UTC) #7
Clemens Hammacher
https://codereview.chromium.org/2619803004/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2619803004/diff/1/src/compiler/wasm-compiler.cc#newcode2939 src/compiler/wasm-compiler.cc:2939: Node* arg_buffer = build_runtime_call(Runtime::kGetWasmInterpreterBuffer); On 2017/01/10 at 19:00:51, titzer ...
3 years, 11 months ago (2017-01-11 15:05:29 UTC) #12
titzer
lgtm for now, excited to see how this story ends :) https://codereview.chromium.org/2619803004/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): ...
3 years, 11 months ago (2017-01-11 15:52:34 UTC) #15
Clemens Hammacher
https://codereview.chromium.org/2619803004/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2619803004/diff/20001/src/compiler/wasm-compiler.cc#newcode2959 src/compiler/wasm-compiler.cc:2959: if (is_i64_as_two_params) { On 2017/01/11 at 15:52:34, titzer wrote: ...
3 years, 11 months ago (2017-01-11 16:56:11 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/2619803004/60001
3 years, 11 months ago (2017-01-11 17:37:33 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 17:39:18 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/a2efde46a1678e67ad20fc5ccda471beb5e...

Powered by Google App Engine
This is Rietveld 408576698