v8/test/mjsunit/wasm
machenbach 359a00bf6f Revert of [wasm] reuse the first compiled module (patchset #12 id:220001 of https://codereview.chromium.org/2305903002/ )
Reason for revert:
mac gc stress failures:
https://build.chromium.org/p/client.v8/builders/V8%20Mac%20GC%20Stress/builds/8341

Original issue's description:
> [wasm] reuse the first compiled module.
>
> This change avoids needing to keep around an unused compiled
> module. Instead, the result of compiling the wasm bytes is
> given to the first instance. The module object and that instance object
> point to the same compiled module. Instances are, then, cloned from
> the compiled module the module object points to. When an instance is
> collected, we make sure that the module object still has a clone
> available, and, if the last instance is GC-ed, we also reset the compiled
> module so that it does not reference its heap, so that it (==heap) may
> be collected.
>
> This is achieved by linking the clones in a double-linked list and
> registering a finalizer for each. When we create an instance, we tie it
> in the front of the list, making the module object point to it (O(1)). When
> the finalizer is called, we relink the list over the dying object (O(1)). The
> costliest operation is finalizing the last instance, since we need to visit
> all wasm functions and reset heap references.
>
> BUG=v8:5316
>
> Committed: https://crrev.com/01f5af515728aebe6c5246f4f7dd6c573e8748af
> Cr-Commit-Position: refs/heads/master@{#39153}

TBR=bradnelson@chromium.org,verwaest@chromium.org,vogelheim@chromium.org,yangguo@chromium.org,mtrofin@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:5316

Review-Url: https://codereview.chromium.org/2306403002
Cr-Commit-Position: refs/heads/master@{#39154}
2016-09-05 10:49:53 +00:00
..
embenchen [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
adapter-frame.js
asm-wasm-copy.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-deopt.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-f32.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-f64.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-heap.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-i32.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-literals.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-stdlib.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-switch.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm-u32.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
asm-wasm.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00
calls.js [wasm] Throw a type error if an I64 is exported to JS. 2016-08-18 14:33:08 +00:00
compiled-module-serialization.js [wasm] Serialization/Deserialization of compiled module 2016-08-09 15:19:38 +00:00
debug-disassembly.js Do not call into JS from WasmDebugInfo::GetFunctionScript 2016-09-02 14:56:56 +00:00
divrem-trap.js
ensure-wasm-binaries-up-to-date.js [wasm] removed redundant load line from mjsunit test 2016-08-19 06:13:12 +00:00
export-table.js
ffi-error.js [wasm] Use the native_context for the TypeError in ToJS() 2016-08-30 12:46:02 +00:00
ffi.js [wasm] Allow import function to be any kind of callables. 2016-08-11 08:33:54 +00:00
frame-inspection.js
function-names.js
function-prototype.js
gc-frame.js
grow-memory.js Populate relocation information correctly for RelocatableInt32Constants. 2016-09-02 01:39:21 +00:00
import-table.js
incrementer.wasm [wasm] binary and test for hosts' integration tests 2016-08-18 03:18:14 +00:00
indirect-calls.js
instantiate-module-basic.js Revert of [wasm] reuse the first compiled module (patchset #12 id:220001 of https://codereview.chromium.org/2305903002/ ) 2016-09-05 10:49:53 +00:00
instantiate-run-basic.js
module-memory.js
no-wasm-by-default.js
OWNERS
parallel_compilation.js
params.js
receiver.js
stack.js [wasm] Add stack checks at the beginning of each function. 2016-08-19 08:54:39 +00:00
stackwalk.js
start-function.js
test-import-export-wrapper.js Add signature checking when directly import a foreign function 2016-08-04 20:34:02 +00:00
test-wasm-module-builder.js
trap-location.js
unicode-validation.js
unreachable.js
verify-function-basic-errors.js
verify-function-simple.js
verify-module-basic-errors.js
wasm-constants.js [wasm] Use the native_context for the TypeError in ToJS() 2016-08-30 12:46:02 +00:00
wasm-module-builder.js [wasm] mjsunit support for I32 globals and test 2016-08-31 00:36:18 +00:00
wasm-object-api.js [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. 2016-08-23 04:07:23 +00:00