Lines Matching refs:code_space
531 void WasmCodeAllocator::Init(VirtualMemory code_space) { in Init() argument
534 free_code_space_.Merge(code_space.region()); in Init()
535 owned_code_space_.emplace_back(std::move(code_space)); in Init()
715 base::AddressRegion code_space = in AllocateForCodeInRegion() local
717 if (V8_UNLIKELY(code_space.is_empty())) { in AllocateForCodeInRegion()
749 code_space = free_code_space_.Allocate(size); in AllocateForCodeInRegion()
750 DCHECK(!code_space.is_empty()); in AllocateForCodeInRegion()
755 Address commit_start = RoundUp(code_space.begin(), commit_page_size); in AllocateForCodeInRegion()
756 if (commit_start != code_space.begin()) { in AllocateForCodeInRegion()
760 Address commit_end = RoundUp(code_space.end(), commit_page_size); in AllocateForCodeInRegion()
783 DCHECK(IsAligned(code_space.begin(), kCodeAlignment)); in AllocateForCodeInRegion()
784 allocated_code_space_.Merge(code_space); in AllocateForCodeInRegion()
785 generated_code_size_.fetch_add(code_space.size(), std::memory_order_relaxed); in AllocateForCodeInRegion()
788 code_space.begin(), size); in AllocateForCodeInRegion()
789 return {reinterpret_cast<byte*>(code_space.begin()), code_space.size()}; in AllocateForCodeInRegion()
976 VirtualMemory code_space, in NativeModule() argument
1012 auto initial_region = code_space.region(); in NativeModule()
1013 code_allocator_.Init(std::move(code_space)); in NativeModule()
1196 base::Vector<byte> code_space; in AddCode() local
1200 code_space = code_allocator_.AllocateForCode(this, desc.instr_size); in AddCode()
1202 FindJumpTablesForRegionLocked(base::AddressRegionOf(code_space)); in AddCode()
1207 code_space, jump_table_ref); in AddCode()
1413 base::Vector<uint8_t> code_space = in AllocateForDeserializedCode() local
1416 FindJumpTablesForRegionLocked(base::AddressRegionOf(code_space)); in AllocateForDeserializedCode()
1417 return {code_space, jump_tables}; in AllocateForDeserializedCode()
1492 base::Vector<uint8_t> code_space = in CreateEmptyJumpTableInRegionLocked() local
1494 DCHECK(!code_space.empty()); in CreateEmptyJumpTableInRegionLocked()
1496 ZapCode(reinterpret_cast<Address>(code_space.begin()), code_space.size()); in CreateEmptyJumpTableInRegionLocked()
1500 code_space, // instructions in CreateEmptyJumpTableInRegionLocked()
2213 VirtualMemory code_space; in NewNativeModule() local
2215 code_space = TryAllocate(code_vmem_size); in NewNativeModule()
2216 if (code_space.IsReserved()) break; in NewNativeModule()
2232 Address start = code_space.address(); in NewNativeModule()
2233 size_t size = code_space.size(); in NewNativeModule()
2234 Address end = code_space.end(); in NewNativeModule()
2239 new NativeModule(enabled, dynamic_tiering, std::move(code_space), in NewNativeModule()
2311 base::Vector<byte> code_space; in AddCompiledCode() local
2316 code_space = code_allocator_.AllocateForCode(this, total_code_space); in AddCompiledCode()
2319 FindJumpTablesForRegionLocked(base::AddressRegionOf(code_space)); in AddCompiledCode()
2334 base::Vector<byte> this_code_space = code_space.SubVector(0, code_size); in AddCompiledCode()
2335 code_space += code_size; in AddCompiledCode()
2344 DCHECK_EQ(0, code_space.size()); in AddCompiledCode()
2467 for (auto& code_space : owned_code_space) { in FreeNativeModule() local
2468 DCHECK(code_space.IsReserved()); in FreeNativeModule()
2470 code_space.address(), code_space.end(), code_space.size()); in FreeNativeModule()
2475 reinterpret_cast<void*>(code_space.address())); in FreeNativeModule()
2479 lookup_map_.erase(code_space.address()); in FreeNativeModule()
2480 code_space.Free(); in FreeNativeModule()
2481 DCHECK(!code_space.IsReserved()); in FreeNativeModule()