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

Issue 2643443002: [wasm] Improve pimpl implementation in WasmInterpreter::Thread (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] Improve pimpl implementation in WasmInterpreter::Thread As no one will ever try to allocate a Thread directly, we can just make Thread a proxy of ThreadImpl by reinterpret_casting between both types. This allows to not mention ThreadImpl in the header at all, and to define it in an anonymous namespace in the implementation, allowing for more optimizations. It also saves runtime, as no memory load is needed to forward from Thread to ThreadImpl, and we do not need to allocate ThreadImpl objects on the heap. R=titzer@chromium.org Review-Url: https://codereview.chromium.org/2643443002 Cr-Commit-Position: refs/heads/master@{#42450} Committed: https://chromium.googlesource.com/v8/v8/+/4f91cee32153211b4bf60856cf8068d00ece2b6e

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Add comment about risky reinterpret_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -25 lines) Patch
M src/wasm/wasm-interpreter.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M src/wasm/wasm-interpreter.cc View 1 2 6 chunks +39 lines, -21 lines 0 comments Download

Messages

Total messages: 19 (14 generated)
titzer
LGTM. Can you leave a comment somewhere that this might be risky behavior?
3 years, 11 months ago (2017-01-18 10:19:50 UTC) #9
Clemens Hammacher
On 2017/01/18 at 10:19:50, titzer wrote: > LGTM. > > Can you leave a comment ...
3 years, 11 months ago (2017-01-18 10:49:57 UTC) #10
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/2643443002/40001
3 years, 11 months ago (2017-01-18 10:50:14 UTC) #13
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/2643443002/40001
3 years, 11 months ago (2017-01-18 11:38:53 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 11:40:34 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/4f91cee32153211b4bf60856cf8068d00ec...

Powered by Google App Engine
This is Rietveld 408576698