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

Issue 2342263002: [wasm] Fix test-run-wasm-module tests in debug mode. (Closed)

Created:
4 years, 3 months ago by gdeepti
Modified:
4 years, 3 months ago
Reviewers:
Mircea Trofin, ahaas
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Fix test-run-wasm-module tests in debug mode. test-run-wasm-module cctests broken in debug since recent refactoring changes for moving Compilation/Instantiation off the module object (https://codereview.chromium.org/2320723005). The problem here is that SetupIsolateForWasm tries to add the same property to a module_object multiple times and hits a DCHECK when this property is found on a lookup. - Fixed to use the setup method only once when CcTest::InitIsolateOnce is used. - Move setup method to test as this is only used for cctests/fuzzers. The install method should take care of this in the regular JS pipeline. R=mtrofin@chromium.org, ahaas@chromium.org Committed: https://crrev.com/dd3b14b7b47693806b62b25a102c8d912cd90004 Cr-Commit-Position: refs/heads/master@{#39484}

Patch Set 1 #

Patch Set 2 : Fix header #

Total comments: 4

Patch Set 3 : Fix stale upload #

Total comments: 4

Patch Set 4 : Rebase #

Patch Set 5 : Nix bad variable #

Patch Set 6 : Rename Install functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -57 lines) Patch
M src/wasm/wasm-js.h View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 5 3 chunks +39 lines, -41 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 4 5 4 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M test/common/wasm/wasm-module-runner.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/common/wasm/wasm-module-runner.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M test/fuzzer/wasm.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M test/fuzzer/wasm-asmjs.cc View 2 chunks +1 line, -2 lines 0 comments Download
M test/fuzzer/wasm-code.cc View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
gdeepti
4 years, 3 months ago (2016-09-16 06:50:17 UTC) #4
ahaas
I like this change, thanks. lgtm https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc File test/cctest/wasm/test-run-wasm-module.cc (right): https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc#newcode32 test/cctest/wasm/test-run-wasm-module.cc:32: if (!isolate_setup_for_module) { ...
4 years, 3 months ago (2016-09-16 07:01:32 UTC) #5
gdeepti
https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc File test/cctest/wasm/test-run-wasm-module.cc (right): https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc#newcode32 test/cctest/wasm/test-run-wasm-module.cc:32: if (!isolate_setup_for_module) { On 2016/09/16 07:01:32, ahaas wrote: > ...
4 years, 3 months ago (2016-09-16 07:07:48 UTC) #10
Mircea Trofin
Not sure I understand what this fixes - could you link the failing test? https://codereview.chromium.org/2342263002/diff/40001/test/cctest/wasm/test-run-wasm-module.cc ...
4 years, 3 months ago (2016-09-16 07:13:01 UTC) #11
gdeepti
There is no link to a failing case as this does not fail on the ...
4 years, 3 months ago (2016-09-16 07:37:21 UTC) #12
Mircea Trofin
https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc File test/cctest/wasm/test-run-wasm-module.cc (right): https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc#newcode32 test/cctest/wasm/test-run-wasm-module.cc:32: if (!isolate_setup_for_module) { On 2016/09/16 07:07:48, gdeepti wrote: > ...
4 years, 3 months ago (2016-09-16 18:05:41 UTC) #13
gdeepti
https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc File test/cctest/wasm/test-run-wasm-module.cc (right): https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc#newcode32 test/cctest/wasm/test-run-wasm-module.cc:32: if (!isolate_setup_for_module) { On 2016/09/16 18:05:40, Mircea Trofin wrote: ...
4 years, 3 months ago (2016-09-17 00:31:02 UTC) #24
Mircea Trofin
On 2016/09/17 00:31:02, gdeepti wrote: > https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc > File test/cctest/wasm/test-run-wasm-module.cc (right): > > https://codereview.chromium.org/2342263002/diff/20001/test/cctest/wasm/test-run-wasm-module.cc#newcode32 > ...
4 years, 3 months ago (2016-09-17 00:33:40 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/2342263002/100001
4 years, 3 months ago (2016-09-17 01:26:49 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-17 01:30:17 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-17 01:31:13 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/dd3b14b7b47693806b62b25a102c8d912cd90004
Cr-Commit-Position: refs/heads/master@{#39484}

Powered by Google App Engine
This is Rietveld 408576698