/third_party/node/deps/v8/src/objects/ |
D | js-array-buffer.cc | 48 std::shared_ptr<BackingStore> backing_store) { in Setup() argument 58 if (!backing_store) { in Setup() 63 Attach(std::move(backing_store)); in Setup() 71 void JSArrayBuffer::Attach(std::shared_ptr<BackingStore> backing_store) { in Attach() argument 72 DCHECK_NOT_NULL(backing_store); in Attach() 73 DCHECK_EQ(is_shared(), backing_store->is_shared()); in Attach() 74 DCHECK_EQ(is_resizable(), backing_store->is_resizable()); in Attach() 76 !backing_store->is_wasm_memory() && !backing_store->is_resizable(), in Attach() 77 backing_store->byte_length() == backing_store->max_byte_length()); in Attach() 81 if (backing_store->IsEmpty()) { in Attach() [all …]
|
D | backing-store.cc | 524 auto backing_store = in AllocateWasmMemory() local 528 return backing_store; in AllocateWasmMemory() 537 for (size_t i = 0; i < arraysize(sizes) && !backing_store; i++) { in AllocateWasmMemory() 538 backing_store = in AllocateWasmMemory() 541 return backing_store; in AllocateWasmMemory() 653 Isolate* isolate, std::shared_ptr<BackingStore> backing_store) { in BroadcastSharedWasmMemoryGrow() argument 655 backing_store); in BroadcastSharedWasmMemoryGrow() 857 std::shared_ptr<BackingStore> backing_store) { in Register() argument 858 if (!backing_store || !backing_store->buffer_start()) return; in Register() 860 CHECK(backing_store->is_wasm_memory()); in Register() [all …]
|
D | elements.cc | 542 FixedArrayBase backing_store, 603 bool HasElement(JSObject holder, uint32_t index, FixedArrayBase backing_store, in HasElement() argument 606 backing_store, filter); in HasElement() 610 FixedArrayBase backing_store, in HasElementImpl() argument 612 return Subclass::GetEntryForIndexImpl(isolate, holder, backing_store, index, in HasElementImpl() 622 static bool HasEntryImpl(Isolate* isolate, FixedArrayBase backing_store, in HasEntryImpl() argument 631 static bool HasAccessorsImpl(JSObject holder, FixedArrayBase backing_store) { in HasAccessorsImpl() argument 644 static Handle<Object> GetImpl(Isolate* isolate, FixedArrayBase backing_store, in GetImpl() argument 646 return handle(BackingStore::cast(backing_store).get(entry.as_int()), in GetImpl() 724 Handle<FixedArrayBase> backing_store) { in SetLengthImpl() argument [all …]
|
D | js-array-buffer.h | 42 DECL_GETTER(backing_store, void*) 91 std::shared_ptr<BackingStore> backing_store); 95 V8_EXPORT_PRIVATE void Attach(std::shared_ptr<BackingStore> backing_store); 179 explicit ArrayBufferExtension(std::shared_ptr<BackingStore> backing_store) in ArrayBufferExtension() argument 180 : backing_store_(backing_store) {} in ArrayBufferExtension() 193 std::shared_ptr<BackingStore> backing_store() { return backing_store_; } in backing_store() function 212 void set_backing_store(std::shared_ptr<BackingStore> backing_store) { in set_backing_store() argument 213 backing_store_ = std::move(backing_store); in set_backing_store()
|
D | elements.h | 49 FixedArrayBase backing_store, 76 Handle<JSObject> object, Handle<FixedArrayBase> backing_store, 88 Handle<JSObject> object, Handle<FixedArrayBase> backing_store, 140 virtual size_t GetCapacity(JSObject holder, FixedArrayBase backing_store) = 0; 193 FixedArrayBase backing_store, 198 Handle<FixedArrayBase> backing_store,
|
D | backing-store.h | 249 static void Register(std::shared_ptr<BackingStore> backing_store); 254 static void Unregister(BackingStore* backing_store); 259 BackingStore* backing_store, 267 Isolate* isolate, std::shared_ptr<BackingStore> backing_store);
|
D | js-array-buffer-inl.h | 38 DEF_GETTER(JSArrayBuffer, backing_store, void*) { in DEF_GETTER() argument 50 return extension()->backing_store(); in GetBackingStore() 165 auto backing_store = GetBackingStore(); in BIT_FIELD_ACCESSORS() local 166 bool is_empty = !backing_store || backing_store->IsEmpty(); in BIT_FIELD_ACCESSORS()
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-sharedarraybuffer-gen.cc | 99 TNode<RawPtrT> backing_store = LoadJSArrayBufferBackingStorePtr(array_buffer); in ValidateIntegerTypedArray() local 101 *out_backing_store = RawPtrAdd(backing_store, Signed(byte_offset)); in ValidateIntegerTypedArray() 182 TNode<RawPtrT> backing_store; in TF_BUILTIN() local 185 &elements_kind, &backing_store, &detached); in TF_BUILTIN() 214 backing_store, index_word))); in TF_BUILTIN() 218 backing_store, index_word))); in TF_BUILTIN() 222 AtomicMemoryOrder::kSeqCst, backing_store, WordShl(index_word, 1)))); in TF_BUILTIN() 226 AtomicMemoryOrder::kSeqCst, backing_store, WordShl(index_word, 1)))); in TF_BUILTIN() 230 AtomicMemoryOrder::kSeqCst, backing_store, WordShl(index_word, 2)))); in TF_BUILTIN() 234 AtomicMemoryOrder::kSeqCst, backing_store, WordShl(index_word, 2)))); in TF_BUILTIN() [all …]
|
D | builtins-arraybuffer.cc | 67 std::unique_ptr<BackingStore> backing_store; in ConstructBuffer() local 69 backing_store = in ConstructBuffer() 91 backing_store = BackingStore::TryAllocateAndPartiallyCommitMemory( in ConstructBuffer() 95 if (!backing_store) { in ConstructBuffer() 101 array_buffer->Attach(std::move(backing_store)); in ConstructBuffer() 280 new_array_buffer->backing_store() == array_buffer->backing_store()) { in SliceHelper() 325 reinterpret_cast<uint8_t*>(array_buffer->backing_store()) + first_size; in SliceHelper() 327 reinterpret_cast<uint8_t*>(new_array_buffer->backing_store()); in SliceHelper()
|
D | builtins-dataview.cc | 130 static_cast<uint8_t*>(array_buffer->backing_store()) + view_byte_offset); in BUILTIN()
|
D | builtins-typed-array-gen.h | 28 TNode<UintPtrT> CalculateExternalPointer(TNode<UintPtrT> backing_store,
|
/third_party/node/deps/v8/src/execution/ |
D | futex-emulation.cc | 36 static int8_t* ToWaitLocation(const BackingStore* backing_store, in ToWaitLocation() argument 38 return static_cast<int8_t*>(backing_store->buffer_start()) + addr; in ToWaitLocation() 386 std::shared_ptr<BackingStore> backing_store = in WaitSync() local 388 DCHECK(backing_store); in WaitSync() 390 node->backing_store_ = backing_store; in WaitSync() 393 FutexWaitList::ToWaitLocation(backing_store.get(), addr); in WaitSync() 509 const std::shared_ptr<BackingStore>& backing_store, size_t wait_addr, in FutexWaitListNode() argument 512 backing_store_(backing_store), in FutexWaitListNode() 515 FutexWaitList::ToWaitLocation(backing_store.get(), wait_addr)), in FutexWaitListNode() 549 std::shared_ptr<BackingStore> backing_store = in WaitAsync() local [all …]
|
D | futex-emulation.h | 64 FutexWaitListNode(const std::shared_ptr<BackingStore>& backing_store,
|
/third_party/node/deps/v8/src/snapshot/ |
D | references.h | 116 const SerializerReference* LookupBackingStore(void* backing_store) const { in LookupBackingStore() argument 117 auto it = backing_store_map_.find(backing_store); in LookupBackingStore() 127 void AddBackingStore(void* backing_store, SerializerReference reference) { in AddBackingStore() argument 128 DCHECK(backing_store_map_.find(backing_store) == backing_store_map_.end()); in AddBackingStore() 129 backing_store_map_.emplace(backing_store, reference); in AddBackingStore()
|
D | deserializer.cc | 417 void* backing_store = EmptyBackingStoreBuffer(); in PostProcessNewJSReceiver() local 423 backing_store = backing_stores_[store_index]->buffer_start(); in PostProcessNewJSReceiver() 427 reinterpret_cast<uint8_t*>(backing_store) + data_view.byte_offset()); in PostProcessNewJSReceiver() 440 auto backing_store = backing_stores_[store_index]; in PostProcessNewJSReceiver() local 441 void* start = backing_store ? backing_store->buffer_start() in PostProcessNewJSReceiver() 1171 std::unique_ptr<BackingStore> backing_store; in ReadSingleBytecodeData() local 1173 backing_store = BackingStore::Allocate( in ReadSingleBytecodeData() 1186 backing_store = BackingStore::TryAllocateAndPartiallyCommitMemory( in ReadSingleBytecodeData() 1190 CHECK_NOT_NULL(backing_store); in ReadSingleBytecodeData() 1191 source_.CopyRaw(backing_store->buffer_start(), byte_length); in ReadSingleBytecodeData() [all …]
|
D | serializer.cc | 480 void* backing_store, int32_t byte_length, Maybe<int32_t> max_byte_length) { in SerializeBackingStore() argument 483 serializer_->reference_map()->LookupBackingStore(backing_store); in SerializeBackingStore() 499 sink_->PutRaw(static_cast<byte*>(backing_store), byte_length, "BackingStore"); in SerializeBackingStore() 505 serializer_->reference_map()->AddBackingStore(backing_store, reference); in SerializeBackingStore() 534 void* backing_store = reinterpret_cast<void*>( in SerializeJSTypedArray() local 538 SerializeBackingStore(backing_store, byte_length, max_byte_length); in SerializeJSTypedArray() 550 void* backing_store; in SerializeJSArrayBuffer() local 554 backing_store = buffer.backing_store(); in SerializeJSArrayBuffer() 571 SerializeBackingStore(backing_store, byte_length, max_byte_length); in SerializeJSArrayBuffer() 582 buffer.set_backing_store(isolate(), backing_store); in SerializeJSArrayBuffer()
|
D | context-deserializer.cc | 63 auto bs = backing_store(store_index); in SetupOffHeapArrayBufferBackingStores()
|
D | object-deserializer.cc | 59 auto bs = backing_store(store_index); in CommitPostProcessedObjects()
|
/third_party/libdrm/intel/ |
D | intel_bufmgr_fake.c | 219 void *backing_store; member 472 memcpy(bo_fake->backing_store, block->virtual, block->bo->size); in free_block() 496 assert(!bo_fake->backing_store); in alloc_backing_store() 499 bo_fake->backing_store = malloc(bo->size); in alloc_backing_store() 502 bo_fake->backing_store, bo->size); in alloc_backing_store() 503 assert(bo_fake->backing_store); in alloc_backing_store() 511 if (bo_fake->backing_store) { in free_backing_store() 513 free(bo_fake->backing_store); in free_backing_store() 514 bo_fake->backing_store = NULL; in free_backing_store() 970 if (bo_fake->backing_store) in drm_intel_bo_fake_disable_backing_store() [all …]
|
/third_party/node/deps/v8/include/ |
D | v8-array-buffer.h | 75 v8::Isolate* isolate, std::unique_ptr<BackingStore> backing_store, 213 std::shared_ptr<BackingStore> backing_store); 398 Isolate* isolate, std::shared_ptr<BackingStore> backing_store);
|
/third_party/node/deps/v8/src/wasm/ |
D | wasm-objects.cc | 203 Handle<FixedArray> backing_store = isolate->factory()->NewFixedArray(initial); in New() local 205 backing_store->set(i, *initial_value); in New() 222 table_obj->set_entries(*backing_store); in New() 229 *entries = backing_store; in New() 791 instance->SetRawMemory(reinterpret_cast<byte*>(buffer->backing_store()), in SetInstanceMemory() 815 auto backing_store = in New() local 817 if (!backing_store) return {}; in New() 818 buffer = isolate->factory()->NewJSArrayBuffer(std::move(backing_store)); in New() 830 auto backing_store = buffer->GetBackingStore(); in New() local 831 backing_store->AttachSharedWasmMemoryObject(isolate, memory_object); in New() [all …]
|
D | module-instantiate.cc | 43 return static_cast<byte*>(buffer.ToHandleChecked()->backing_store()) + offset; in raw_buffer_ptr() 550 CHECK_EQ(instance->memory_start(), memory->backing_store()); in Build() 570 reinterpret_cast<byte*>(untagged_globals_->backing_store())); in Build() 1872 Address backing_store = in ProcessExports() local 1873 reinterpret_cast<Address>(untagged_buffer->backing_store()); in ProcessExports() 1874 CHECK(global_addr >= backing_store && in ProcessExports() 1875 global_addr < backing_store + buffer_size); in ProcessExports() 1876 offset = static_cast<uint32_t>(global_addr - backing_store); in ProcessExports()
|
/third_party/node/deps/v8/src/strings/ |
D | string-builder.cc | 115 FixedArrayBuilder::FixedArrayBuilder(Handle<FixedArray> backing_store) in FixedArrayBuilder() argument 116 : array_(backing_store), length_(0), has_non_smi_elements_(false) { in FixedArrayBuilder() 119 DCHECK_GT(backing_store->length(), 0); in FixedArrayBuilder()
|
/third_party/node/deps/v8/src/runtime/ |
D | runtime-test-wasm.cc | 340 {static_cast<uint8_t*>(array_buffer->backing_store()), byte_length})); in RUNTIME_FUNCTION() 356 reinterpret_cast<const uint8_t*>(wire_bytes_buffer->backing_store()) + in RUNTIME_FUNCTION() 360 reinterpret_cast<uint8_t*>(buffer->backing_store()), in RUNTIME_FUNCTION() 419 frame->wasm_instance().memory_object().array_buffer().backing_store()); in RUNTIME_FUNCTION()
|
D | runtime-atomics.cc | 404 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in GetModifySetValueInBuffer() 451 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION() 472 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION() 506 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION()
|