Lines Matching defs:memory
49 // Manages the natively-allocated memory for a WasmInstanceObject. Since
787 // so they must have a memory that has guard regions.
796 // memory are accessible by reading and writing one byte on each page.
852 // On 32-bit platforms we need an heuristic here to balance overall memory
862 // If shared memory has no maximum, we use an implicit maximum of 1GB.
865 // If non-shared memory has no maximum, we only allocate the initial size
885 Handle<WasmMemoryObject> memory,
888 memory->has_instances()
889 ? Handle<WeakArrayList>(memory->instances(), isolate)
894 memory->set_instances(*new_instances);
895 Handle<JSArrayBuffer> buffer(memory->array_buffer(), isolate);
924 // Any buffer used as an asmjs memory cannot be detached, and
925 // therefore this memory cannot be grown.
931 // Check for maximum memory size.
934 // {GrowWasmMemoryInPlace} because memory is never allocated with more
949 // Handle shared memory first.
956 FATAL("could not grow wasm memory");
962 // Broadcasting the update should update this memory object too.
969 // grow the same memory object can come in from different workers.
979 // Check if the non-shared memory could grow in-place.
999 // grow by at least 0.5 MB + 12.5% of the existing memory size.
1007 // Crash on out-of-memory if the correctness fuzzer is running.
1009 FATAL("could not grow wasm memory");
1163 // Must handle memory > 2GiB specially.
1259 // declared data segments when validating the memory.init and memory.drop
1270 // Set the active segments to being already dropped, since memory.init on