v8/test/mjsunit/regress/wasm
Clemens Hammacher 0975c55409 [wasm][gc] Fix NativeModule::GetCode for nonexisting code
{NativeModule::GetCode} can actually return {nullptr} if no code was
compiled yet for a function, e.g. in asm.js where we use lazy
compilation. In that case, we must not try to increment the ref count
on the nonexisting code object.

We had a few errors recently that were hard to reproduce because we do
not have a flag to enable code logging. Clusterfuzz managed to
accomplish this by passing --trace-ic.
In order to test bugs in code logging properly, this CL introduces a
new runtime function called "EnableCodeLoggingForTesting". It registers
a noop {CodeEventListener} and enables code logging in the wasm engine.
We should whitelist this flag in ClusterFuzz to potentially flush out
more bugs.

R=mstarzinger@chromium.org
CC=frgossen@chromium.org

Bug: v8:8217, chromium:961129, chromium:961245, chromium:961128
Change-Id: I2f97c109db70b41531d58580b71f6781beeb8dcb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1602700
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61404}
2019-05-10 09:40:23 +00:00
..
loop-stack-check.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-5531.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-5800.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-5860.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-5884.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-6054.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-6164.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-6931.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7033.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7035.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7049.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7353.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7364.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7366.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7422.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7499.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7508.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7565.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7579.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7582.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7785.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-7914.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-8059.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-8094.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-8095.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-8505.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-8533.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-8846.js [wasm] Fix section order checking in {StreamingDecoder}. 2019-02-19 16:57:23 +00:00
regress-8896.js [wasm] Support runtime functions in (de)serializer. 2019-02-27 11:32:42 +00:00
regress-9017.js Touch guard pages when allocating stack frames 2019-05-02 17:46:18 +00:00
regress-02256.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-02256b.js
regress-02862.js
regress-643595.js
regress-644682.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-647649.js
regress-648079.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-651961.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-654377.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-663994.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-666741.js
regress-667745.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-670683.js
regress-674447.js
regress-680938.js [wasm] fix js-api Memory and Table constructor 2018-12-10 23:32:05 +00:00
regress-684858.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-688876.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-689450.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-694433.js
regress-698587.js
regress-699485.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-702460.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-702839.js
regress-703568.js
regress-708714.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-709684.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-710844.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-711203.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-712569.js
regress-715216a.js
regress-715216b.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-717056.js
regress-717194.js
regress-719175.js
regress-722445.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-724846.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-724851.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-724972.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-727219.js
regress-727222.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-727560.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-729991.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-731351.js
regress-734108.js [wasm][test] Remove default --wasm-async-compilation flag 2018-11-09 17:29:17 +00:00
regress-734246.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-734345.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-736584.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-737069.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-739768.js [wasm] Allow multi-table initialization in the wasm-module-builder 2019-03-13 10:39:41 +00:00
regress-752423.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-753496.js
regress-757217.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-763439.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-763697.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-766003.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-769637.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-769846.js
regress-771243.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-772332.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-775366.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-775710.js
regress-776677.js
regress-778917.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-782280.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-784050.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-789952.js
regress-791810.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-793551.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-797846.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-799952.js
regress-800756.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-801785.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-801850.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-802244.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-803427.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-803788.js [wasm] Allow multi-table initialization in the wasm-module-builder 2019-03-13 10:39:41 +00:00
regress-808012.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-808848.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-808980.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-810973.js
regress-810973b.js
regress-812005.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-816226.js [wasm] fix js-api Memory and Table constructor 2018-12-10 23:32:05 +00:00
regress-817380.js [wasm] Allow multi-table initialization in the wasm-module-builder 2019-03-13 10:39:41 +00:00
regress-819869.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-820802.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-824681.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-825087a.js [wasm] fix js-api memory/grow 2019-01-22 19:03:05 +00:00
regress-825087b.js [wasm] fix js-api memory/grow 2019-01-22 19:03:05 +00:00
regress-827806.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-831463.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-834619.js [wasm] Allow multi-table initialization in the wasm-module-builder 2019-03-13 10:39:41 +00:00
regress-834624.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-834693.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-836141.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-837417.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-840757.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-842501.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-843563.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-853453.js
regress-854011.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-854050.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-864509.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-873600.js
regress-875556.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-894307.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-894374.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-898932.js [wasm] Fix memory limit checks 2018-10-30 13:44:48 +00:00
regress-905815.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-910824.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-913804.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-916869.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-917412.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-917588.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-917588b.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-918149.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-918284.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-918917.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-919308.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-919533.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-922432.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-922670.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-922933.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-924843.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-924905.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-925671.js [wasm] merge js constants file in module-builder 2019-01-30 22:10:34 +00:00
regress-935138.js [wasm] Speed up WasmModuleBuilder 2019-03-07 14:51:52 +00:00
regress-940296.js [wasm] Fix insufficient bounds check in WebAssembly.get 2019-03-12 11:29:02 +00:00
regress-946350.js [wasm] Fix missing GC visit of instance elements 2019-03-27 13:04:26 +00:00
regress-948228.js [wasm] Remove wrong DCHECK 2019-04-03 11:15:53 +00:00
regress-952342.js [wasm] Disable asan for memory_copy_wrapper 2019-04-26 11:21:21 +00:00
regress-956771.js [wasm] Fix Wasm Lazy Compilation 2019-04-30 13:05:20 +00:00
regress-956771b.js [wasm] Fix Streaming API Error Messages 2019-05-03 13:39:03 +00:00
regress-957405.js [wasm] Disable asan for memory_fill_wrapper 2019-05-04 03:36:36 +00:00
regress-961129.js [wasm][gc] Fix NativeModule::GetCode for nonexisting code 2019-05-10 09:40:23 +00:00
regress-ubsan.js [ubsan] Fix various ClusterFuzz-found issues 2019-03-07 00:09:20 +00:00