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

Issue 2406133003: [wasm] Decouple function name and exported name in WasmFunctionBuilder (Closed)

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

Description

[wasm] Decouple function name and exported name in WasmFunctionBuilder This is needed for the asm.js -> WASM pipeline. A single exported function is exported as __single_function__, but we still want to see the correct function name on the stack, so the underlying wasm function has to carry the original name. R=ahaas@chromium.org, titzer@chromium.org BUG=v8:4203 Committed: https://crrev.com/4f9976aa6838ca67754d570d0896e2a073355547 Cr-Commit-Position: refs/heads/master@{#40159}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Naming & adapt test cases #

Patch Set 3 : Adapt call in fuzzer #

Patch Set 4 : Change interface to Vector<const char>; avoids size_t/int confusion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -43 lines) Patch
M src/asmjs/asm-wasm-builder.cc View 1 2 3 4 chunks +8 lines, -17 lines 0 comments Download
M src/wasm/wasm-module-builder.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M src/wasm/wasm-module-builder.cc View 1 2 3 3 chunks +16 lines, -12 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 2 chunks +2 lines, -10 lines 0 comments Download
M test/fuzzer/wasm-code.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (21 generated)
ahaas
lgtm. Nit: it would be nice to add a small test here.
4 years, 2 months ago (2016-10-11 07:16:51 UTC) #5
titzer
On 2016/10/11 07:16:51, ahaas wrote: > lgtm. Nit: it would be nice to add a ...
4 years, 2 months ago (2016-10-11 08:08:38 UTC) #6
titzer
https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc File src/asmjs/asm-wasm-builder.cc (right): https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc#newcode567 src/asmjs/asm-wasm-builder.cc:567: function->SetExportedWithName( How about ExportAs()? (we should work incrementally to ...
4 years, 2 months ago (2016-10-11 08:08:48 UTC) #7
Clemens Hammacher
https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc File src/asmjs/asm-wasm-builder.cc (right): https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc#newcode567 src/asmjs/asm-wasm-builder.cc:567: function->SetExportedWithName( On 2016/10/11 08:08:48, titzer wrote: > How about ...
4 years, 2 months ago (2016-10-11 08:21:55 UTC) #8
titzer
https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc File src/asmjs/asm-wasm-builder.cc (right): https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc#newcode567 src/asmjs/asm-wasm-builder.cc:567: function->SetExportedWithName( On 2016/10/11 08:21:54, Clemens Hammacher wrote: > On ...
4 years, 2 months ago (2016-10-11 08:36:03 UTC) #9
Clemens Hammacher
On 2016/10/11 08:36:03, titzer wrote: > https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc > File src/asmjs/asm-wasm-builder.cc (right): > > https://codereview.chromium.org/2406133003/diff/1/src/asmjs/asm-wasm-builder.cc#newcode567 > ...
4 years, 2 months ago (2016-10-11 08:49:48 UTC) #17
Clemens Hammacher
On 2016/10/11 08:49:48, Clemens Hammacher wrote: > On 2016/10/11 08:36:03, titzer wrote: > > > ...
4 years, 2 months ago (2016-10-11 09:50:16 UTC) #22
titzer
lgtm
4 years, 2 months ago (2016-10-11 10:31:08 UTC) #25
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/2406133003/60001
4 years, 2 months ago (2016-10-11 10:33:14 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-11 10:35:53 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 10:36:10 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4f9976aa6838ca67754d570d0896e2a073355547
Cr-Commit-Position: refs/heads/master@{#40159}

Powered by Google App Engine
This is Rietveld 408576698