v8/src/wasm
titzer 0a61361e47 [wasm] Use WeakFixedArray for list of instances sharing a WasmMemoryObject.
This CL refactors the WasmMemoryObject and WasmInstanceObject classes to
use WeakFixedArray instead of using a doubly-linked list of instances. This
simplifies the lifetime management of instances by not requiring them to
be unlinked from this list upon GC. It also simplifies the iteration over
the instances using a given WasmMemoryObject.

Note that, contrary to my naive assumption at the outset, it is still necessary for the InstanceFinalizer (called upon a WasmInstanceObject death) to unlink itself from a WasmMemoryObject's instances list, due to finalizer ordering.

R=deepti@chromium.org, mlippautz@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2972803002
Cr-Commit-Position: refs/heads/master@{#46482}
2017-07-07 13:52:21 +00:00
..
compilation-manager.cc Revert "[wasm] Run foreground compilation tasks as normal tasks" 2017-06-30 12:34:11 +00:00
compilation-manager.h Revert "[wasm] Run foreground compilation tasks as normal tasks" 2017-06-30 12:34:11 +00:00
decoder.h [wasm] Avoid reporting of unrelated compiler errors 2017-05-29 12:32:36 +00:00
function-body-decoder-impl.h [WASM] Simplify SIMD shuffle opcodes. 2017-06-13 23:40:51 +00:00
function-body-decoder.cc [wasm] Remove dead code 2017-07-06 13:41:18 +00:00
function-body-decoder.h [wasm] In the FunctionBody, replace {base} by {offset} 2017-06-23 11:34:19 +00:00
leb-helper.h [wasm] Reuse LEB encoding logic in module builder 2017-04-25 11:32:21 +00:00
local-decl-encoder.cc [wasm] [cleanup] Move LocalDeclEncoder to own compilation unit 2017-04-25 10:56:01 +00:00
local-decl-encoder.h Reland "Make unittest link correctly again" 2017-05-03 10:44:07 +00:00
module-compiler.cc [wasm] Use WeakFixedArray for list of instances sharing a WasmMemoryObject. 2017-07-07 13:52:21 +00:00
module-compiler.h Reland [wasm] Allow the initialization of a single compilation unit 2017-07-06 17:39:47 +00:00
module-decoder.cc Reland [wasm] Check the size of a function body before storing it 2017-07-06 17:37:57 +00:00
module-decoder.h [wasm] Decode local names for debugging 2017-07-03 09:53:03 +00:00
OWNERS Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
signature-map.cc [wasm] Canonicalize function signature indices for matching in indirect calls. 2016-10-11 12:40:33 +00:00
signature-map.h [wasm] Indirect calls without function table cause validation errors. 2016-11-09 08:37:44 +00:00
streaming-decoder.cc [wasm] [cleanup] Introduce and use base::make_unique 2017-06-09 15:16:33 +00:00
streaming-decoder.h [wasm] Streaming decoder 2017-05-11 09:46:31 +00:00
wasm-code-specialization.cc [wasm] [cleanup] Introduce WireBytesRef struct 2017-06-12 12:57:21 +00:00
wasm-code-specialization.h Add support to IdentityMap for deletion, iteration and AllocationPolicy. 2017-02-22 10:20:15 +00:00
wasm-debug.cc [wasm] Introduce instance types for WebAssembly.* objects. 2017-07-07 12:27:56 +00:00
wasm-external-refs.cc MIPS: Fix unaligned memory access for 64-bit types in wasm-external-refs 2017-05-12 13:17:37 +00:00
wasm-external-refs.h [wasm] Introduce the TrapIf and TrapUnless operators to generate trap code. 2016-12-15 13:31:29 +00:00
wasm-interpreter.cc [wasm] [cleanup] Introduce WireBytesRef struct 2017-06-12 12:57:21 +00:00
wasm-interpreter.h [wasm] Introduce instance types for WebAssembly.* objects. 2017-07-07 12:27:56 +00:00
wasm-js.cc [wasm] Remove the use of private symbols for branding. 2017-07-07 12:56:24 +00:00
wasm-js.h [wasm] [cleanup] Avoid shouting WASM 2017-06-09 16:24:19 +00:00
wasm-limits.h [wasm] Increase WebAssembly.Memory maximum size to 2GB 2017-06-16 03:35:09 +00:00
wasm-module-builder.cc [asm.js] Fix excessive function table sizes. 2017-05-19 14:14:17 +00:00
wasm-module-builder.h [asm.js] Tune initial buffer sizes and growing strategy. 2017-05-19 09:43:54 +00:00
wasm-module.cc [wasm] Use WeakFixedArray for list of instances sharing a WasmMemoryObject. 2017-07-07 13:52:21 +00:00
wasm-module.h [wasm] Introduce instance types for WebAssembly.* objects. 2017-07-07 12:27:56 +00:00
wasm-objects.cc [wasm] Use WeakFixedArray for list of instances sharing a WasmMemoryObject. 2017-07-07 13:52:21 +00:00
wasm-objects.h [wasm] Use WeakFixedArray for list of instances sharing a WasmMemoryObject. 2017-07-07 13:52:21 +00:00
wasm-opcodes.cc [wasm] Remove some small TODOs and small fixes. 2017-06-28 12:09:04 +00:00
wasm-opcodes.h [wasm] SIMD/Atomics ops update to use the right prefix opcodes 2017-06-19 19:23:11 +00:00
wasm-result.cc [wasm] Use pending exceptions consistently 2017-06-29 10:23:45 +00:00
wasm-result.h [wasm] Use pending exceptions consistently 2017-06-29 10:23:45 +00:00
wasm-text.cc [wasm] SIMD/Atomics ops update to use the right prefix opcodes 2017-06-19 19:23:11 +00:00
wasm-text.h [inspector] Split off interface-types.h 2016-12-05 13:32:24 +00:00