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

Issue 2573193002: [wasm] disable serialization for asm-wasm (Closed)

Created:
4 years ago by Mircea Trofin
Modified:
4 years ago
Reviewers:
bradnelson, yangguo, bradn, Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] disable serialization for asm-wasm Determine if the scope of the function to be serialized includes asm- wasm, and if so, bypass serialization, since we do not support it in that scenario. In this change, we do so regardless of whether the asm-wasm path was successful. This is so we keep the design simple, since the guidance to developers, moving forward, is to use wasm. BUG=643595 Committed: https://crrev.com/77b50a8e126186488992b14b0760ed043a9d7631 Cr-Commit-Position: refs/heads/master@{#41704}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M src/compiler.cc View 1 2 2 chunks +22 lines, -1 line 1 comment Download
A test/mjsunit/regress/wasm/regression-643595.js View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
Mircea Trofin
PTAL. Please validate my assumptions that: - scopes are indeed forming a tree. I inferred ...
4 years ago (2016-12-15 00:19:12 UTC) #13
bradn
lgtm
4 years ago (2016-12-15 05:04:51 UTC) #18
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/2573193002/40001
4 years ago (2016-12-15 05:05:02 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-15 05:06:45 UTC) #22
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/77b50a8e126186488992b14b0760ed043a9d7631 Cr-Commit-Position: refs/heads/master@{#41704}
4 years ago (2016-12-15 05:07:01 UTC) #24
Yang
4 years ago (2016-12-15 05:41:09 UTC) #26
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2573193002/diff/40001/src/compiler.cc
File src/compiler.cc (right):

https://codereview.chromium.org/2573193002/diff/40001/src/compiler.cc#newcode...
src/compiler.cc:1352: // We assume scopes form a tree, so no need to check for
cycles
I think this can be done a lot easier. We have all shared function infos that
have been compiled in GetSharedFunctionInfoForScript listed in
Script::shared_function_infos. You can iterate through it using
WeakFixedArray::Iterator. There you can figure out whether there is an asm
module involved.

Powered by Google App Engine
This is Rietveld 408576698