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

Issue 2415603002: [wasm] Clean up wasm module implementation (Closed)

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

Description

[wasm] Clean up wasm module implementation By defining functions with namespace prefix, the compiler checks that they were previously declared, and checks that the signature matches. I stumbled across this several times when changing the interface of a function in the header. With this change you get a compile error right away instead of a linker error in the very end. This change also revealed two functions which could be placed in an anonymous namespace, saving 5.5kB program size in Debug build, 2.3kB in Optdebug and 0.3kB in Release. It's also opening more options for compiler optimizations, as the functions now have internal linkage. R=titzer@chromium.org Committed: https://crrev.com/8d19005336d9e4828ec3e24798ce094d3388848a Cr-Commit-Position: refs/heads/master@{#40233}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -49 lines) Patch
M src/wasm/wasm-module.cc View 28 chunks +56 lines, -49 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Clemens Hammacher
I tripped over this a few times, so I thought I would try to fix ...
4 years, 2 months ago (2016-10-12 15:21:08 UTC) #3
titzer
lgtm We currently have a lot of top-level functions, and we might want to think ...
4 years, 2 months ago (2016-10-12 15:28:41 UTC) #4
Clemens Hammacher
On 2016/10/12 15:28:41, titzer wrote: > lgtm > > We currently have a lot of ...
4 years, 2 months ago (2016-10-12 15:38:15 UTC) #7
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/2415603002/1
4 years, 2 months ago (2016-10-12 15:38:24 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-12 15:41:01 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 15:41:23 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8d19005336d9e4828ec3e24798ce094d3388848a
Cr-Commit-Position: refs/heads/master@{#40233}

Powered by Google App Engine
This is Rietveld 408576698