Home
last modified time | relevance | path

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

/external/v8/src/wasm/
Dwasm-memory.cc48 kWasmPageSize); in TryAllocateBackingStore()
50 DCHECK_GE(*allocation_length, kWasmPageSize); in TryAllocateBackingStore()
84 *allocation_base = AllocatePages(nullptr, *allocation_length, kWasmPageSize, in TryAllocateBackingStore()
102 bool result = SetPermissions(memory, RoundUp(size, kWasmPageSize), in TryAllocateBackingStore()
267 if (size > (FLAG_wasm_max_mem_pages * uint64_t{kWasmPageSize})) return {}; in NewArrayBuffer()
Dwasm-limits.h50 kV8MaxWasmMemoryPages * uint64_t{kWasmPageSize};
53 kSpecMaxWasmMemoryPages * uint64_t{kWasmPageSize};
Dfunction-compiler.h71 min_memory_size(module ? module->initial_pages * uint64_t{kWasmPageSize} in module()
74 ? (module->maximum_pages * uint64_t{kWasmPageSize})
Dwasm-constants.h76 constexpr size_t kWasmPageSize = 0x10000; variable
Dwasm-objects.cc886 CHECK_EQ(0, old_size % wasm::kWasmPageSize); in GrowMemoryBuffer()
887 size_t old_pages = old_size / wasm::kWasmPageSize; in GrowMemoryBuffer()
894 static_cast<size_t>(old_pages + pages) * wasm::kWasmPageSize; in GrowMemoryBuffer()
912 ->AdjustAmountOfExternalAllocatedMemory(pages * wasm::kWasmPageSize); in GrowMemoryBuffer()
960 for (size_t offset = 0; offset < mem_size; offset += wasm::kWasmPageSize) { in SetInstanceMemory()
997 return byte_length / wasm::kWasmPageSize; in current_pages()
1054 DCHECK_EQ(0, old_size % wasm::kWasmPageSize); in Grow()
1082 return old_size / wasm::kWasmPageSize; in Grow()
Dwasm-js.cc972 size_t size = static_cast<size_t>(i::wasm::kWasmPageSize) * in WebAssemblyMemory()
1254 old_buffer->byte_length()->Number() / i::wasm::kWasmPageSize; in WebAssemblyMemoryGrow()
Dmodule-compiler.cc1623 buffer->byte_length()->Number() / kWasmPageSize); in ProcessImports()
1817 if (!NewArrayBuffer(isolate_, num_pages * kWasmPageSize, shared_flag) in AllocateMemory()
Dwasm-interpreter.cc2491 kWasmPageSize))); in Execute()
/external/v8/src/asmjs/
Dasm-js.cc340 if (size > (FLAG_wasm_max_mem_pages * uint64_t{wasm::kWasmPageSize})) { in IsValidAsmjsMemorySize()
/external/v8/src/wasm/baseline/
Dliftoff-compiler.cc1545 WasmValue(int32_t{WhichPowerOf2(kWasmPageSize)})); in CurrentMemoryPages()