Home
last modified time | relevance | path

Searched refs:kWasmPageSize (Results 1 – 10 of 10) sorted by relevance

/third_party/node/deps/v8/src/objects/
Dbacking-store.cc370 isolate, initial_pages * wasm::kWasmPageSize, in TryAllocateWasmMemory()
371 maximum_pages * wasm::kWasmPageSize, wasm::kWasmPageSize, initial_pages, in TryAllocateWasmMemory()
519 DCHECK_EQ(0, wasm::kWasmPageSize % AllocatePageSize()); in AllocateWasmMemory()
562 DCHECK_GE(new_pages * wasm::kWasmPageSize, byte_length_); in CopyWasmMemory()
601 max_pages = std::min(max_pages, byte_capacity_ / wasm::kWasmPageSize); in GrowWasmMemoryInPlace()
611 return {old_length / wasm::kWasmPageSize}; // degenerate grow. in GrowWasmMemoryInPlace()
616 size_t current_pages = old_length / wasm::kWasmPageSize; in GrowWasmMemoryInPlace()
621 new_length = (current_pages + delta_pages) * wasm::kWasmPageSize; in GrowWasmMemoryInPlace()
640 return {old_length / wasm::kWasmPageSize}; in GrowWasmMemoryInPlace()
/third_party/node/deps/v8/src/wasm/
Dwasm-constants.h144 constexpr size_t kWasmPageSize = 0x10000; variable
146 static_assert(kWasmPageSize == size_t{1} << kWasmPageSizeLog2, "consistency");
Dcompilation-environment.h90 kWasmPageSize),
95 kWasmPageSize),
Dwasm-limits.h82 return uint64_t{max_mem_pages()} * kWasmPageSize; in max_mem_bytes()
Dwasm-objects.cc800 for (size_t offset = 0; offset < mem_size; offset += wasm::kWasmPageSize) { in SetInstanceMemory()
854 constexpr int kGBPages = 1024 * 1024 * 1024 / wasm::kWasmPageSize; in New()
937 DCHECK_EQ(0, old_size % wasm::kWasmPageSize); in Grow()
938 size_t old_pages = old_size / wasm::kWasmPageSize; in Grow()
966 size_t new_byte_length = new_pages * wasm::kWasmPageSize; in Grow()
Dmodule-instantiate.cc513 static_cast<int>(RoundUp(buffer->byte_length(), wasm::kWasmPageSize) / in Build()
514 wasm::kWasmPageSize); in Build()
1351 static_cast<uint32_t>(buffer->byte_length() / kWasmPageSize); in ProcessImportedMemory()
Dwasm-engine.cc1684 kV8MaxWasmMemoryPages * kWasmPageSize <= JSArrayBuffer::kMaxByteLength, in max_mem_pages()
Dwasm-js.cc2133 uint64_t old_pages64 = old_buffer->byte_length() / i::wasm::kWasmPageSize; in WebAssemblyMemoryGrow()
2187 size_t curr_size = buffer->byte_length() / i::wasm::kWasmPageSize; in WebAssemblyMemoryType()
Dc-api.cc2076 i::wasm::kWasmPageSize); in type()
2094 i::wasm::kWasmPageSize); in size()
/third_party/node/deps/v8/src/inspector/
Dvalue-mirror.cc168 const size_t kWasmPageSize = 64 * 1024; variable
1792 isolate, memory, memory->Buffer()->ByteLength() / kWasmPageSize)); in create()