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

Issue 2629853004: [wasm] Skip serialization of breakpoints and certion stubs (Closed)

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

Description

[wasm] Skip serialization of breakpoints and certion stubs Breakpoints are always re-set by the embedder after compilation, so we don't want to store the corresponding breakpoint objects. Also don't serialize WASM_INTERPRETER_ENTRY stubs as they are replaced by ordinary WASM_FUNCTION code at instantiation anyway, and skip WASM_TO_JS wrappers which are recompiled on each instantiation. Instead, we serialize the Illegal builtin, and also use that one instead of the placeholder when compiling the wasm code initially. R=titzer@chromium.org, yangguo@chromium.org BUG=v8:5822 Review-Url: https://codereview.chromium.org/2629853004 Cr-Commit-Position: refs/heads/master@{#42451} Committed: https://chromium.googlesource.com/v8/v8/+/3c89788373ee71affaba8c874d339aea9c8ef298

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Yang's comment #

Total comments: 1

Patch Set 3 : Use Illegal builtin instead of wasm code placeholder #

Total comments: 4

Patch Set 4 : Move implementation to .cc file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -59 lines) Patch
M src/snapshot/code-serializer.h View 1 2 3 1 chunk +5 lines, -15 lines 0 comments Download
M src/snapshot/code-serializer.cc View 1 2 3 2 chunks +35 lines, -5 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 6 chunks +19 lines, -31 lines 0 comments Download
M src/wasm/wasm-objects.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M src/wasm/wasm-objects.cc View 1 2 3 3 chunks +13 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (26 generated)
Clemens Hammacher
3 years, 11 months ago (2017-01-13 12:31:00 UTC) #5
Yang
https://codereview.chromium.org/2629853004/diff/1/src/snapshot/code-serializer.h File src/snapshot/code-serializer.h (right): https://codereview.chromium.org/2629853004/diff/1/src/snapshot/code-serializer.h#newcode96 src/snapshot/code-serializer.h:96: SerializerReference wasm_code_placeholder_ref_; This seems a bit hacky to me. ...
3 years, 11 months ago (2017-01-13 12:45:32 UTC) #7
Clemens Hammacher
https://codereview.chromium.org/2629853004/diff/1/src/snapshot/code-serializer.h File src/snapshot/code-serializer.h (right): https://codereview.chromium.org/2629853004/diff/1/src/snapshot/code-serializer.h#newcode96 src/snapshot/code-serializer.h:96: SerializerReference wasm_code_placeholder_ref_; On 2017/01/13 at 12:45:32, Yang wrote: > ...
3 years, 11 months ago (2017-01-13 12:58:01 UTC) #10
titzer
lgtm https://codereview.chromium.org/2629853004/diff/20001/src/wasm/wasm-objects.cc File src/wasm/wasm-objects.cc (right): https://codereview.chromium.org/2629853004/diff/20001/src/wasm/wasm-objects.cc#newcode566 src/wasm/wasm-objects.cc:566: DCHECK(shared->breakpoint_infos()->get(i)->IsUndefined(isolate)); Might as well just make this a ...
3 years, 11 months ago (2017-01-13 16:59:38 UTC) #13
Yang
On 2017/01/13 16:59:38, titzer wrote: > lgtm > > https://codereview.chromium.org/2629853004/diff/20001/src/wasm/wasm-objects.cc > File src/wasm/wasm-objects.cc (right): > ...
3 years, 11 months ago (2017-01-13 17:14:28 UTC) #14
Clemens Hammacher
On 2017/01/13 at 17:14:28, yangguo wrote: > is the placeholder on the rootlist or where ...
3 years, 11 months ago (2017-01-16 09:01:59 UTC) #15
Yang
On 2017/01/16 09:01:59, Clemens Hammacher wrote: > On 2017/01/13 at 17:14:28, yangguo wrote: > > ...
3 years, 11 months ago (2017-01-16 09:40:29 UTC) #16
Clemens Hammacher
I changed this like discussed offline: We now serialize the Illegal builtin instead of the ...
3 years, 11 months ago (2017-01-16 11:27:27 UTC) #19
Yang
On 2017/01/16 11:27:27, Clemens Hammacher wrote: > I changed this like discussed offline: We now ...
3 years, 11 months ago (2017-01-16 13:20:04 UTC) #23
Yang
... and here are the comments. https://codereview.chromium.org/2629853004/diff/40001/src/snapshot/code-serializer.h File src/snapshot/code-serializer.h (right): https://codereview.chromium.org/2629853004/diff/40001/src/snapshot/code-serializer.h#newcode82 src/snapshot/code-serializer.h:82: SerializeGeneric(code_object, how_to_code, where_to_point); ...
3 years, 11 months ago (2017-01-16 13:20:50 UTC) #24
Clemens Hammacher
https://codereview.chromium.org/2629853004/diff/40001/src/snapshot/code-serializer.h File src/snapshot/code-serializer.h (right): https://codereview.chromium.org/2629853004/diff/40001/src/snapshot/code-serializer.h#newcode82 src/snapshot/code-serializer.h:82: SerializeGeneric(code_object, how_to_code, where_to_point); On 2017/01/16 at 13:20:49, Yang wrote: ...
3 years, 11 months ago (2017-01-16 13:50:19 UTC) #27
Yang
On 2017/01/16 13:50:19, Clemens Hammacher wrote: > https://codereview.chromium.org/2629853004/diff/40001/src/snapshot/code-serializer.h > File src/snapshot/code-serializer.h (right): > > https://codereview.chromium.org/2629853004/diff/40001/src/snapshot/code-serializer.h#newcode82 ...
3 years, 11 months ago (2017-01-16 14:08:15 UTC) #28
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/2629853004/60001
3 years, 11 months ago (2017-01-18 11:42:54 UTC) #37
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 11:45:04 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/3c89788373ee71affaba8c874d339aea9c8...

Powered by Google App Engine
This is Rietveld 408576698