/external/v8/src/objects/ |
D | js-array-buffer.cc | 38 std::shared_ptr<BackingStore> backing_store) { in Setup() argument 48 if (!backing_store) { in Setup() 52 Attach(std::move(backing_store)); in Setup() 60 void JSArrayBuffer::Attach(std::shared_ptr<BackingStore> backing_store) { in Attach() argument 61 DCHECK_NOT_NULL(backing_store); in Attach() 62 DCHECK_EQ(is_shared(), backing_store->is_shared()); in Attach() 65 set_backing_store(isolate, backing_store->buffer_start()); in Attach() 66 set_byte_length(backing_store->byte_length()); in Attach() 67 if (backing_store->is_wasm_memory()) set_is_detachable(false); in Attach() 68 if (!backing_store->free_on_destruct()) set_is_external(true); in Attach() [all …]
|
D | backing-store.cc | 428 auto backing_store = in AllocateWasmMemory() local 432 return backing_store; in AllocateWasmMemory() 441 for (size_t i = 0; i < arraysize(sizes) && !backing_store; i++) { in AllocateWasmMemory() 442 backing_store = in AllocateWasmMemory() 445 return backing_store; in AllocateWasmMemory() 557 Isolate* isolate, std::shared_ptr<BackingStore> backing_store) { in BroadcastSharedWasmMemoryGrow() argument 559 backing_store); in BroadcastSharedWasmMemoryGrow() 670 std::shared_ptr<BackingStore> backing_store) { in Register() argument 671 if (!backing_store || !backing_store->buffer_start()) return; in Register() 673 if (!backing_store->free_on_destruct()) { in Register() [all …]
|
D | elements.cc | 516 FixedArrayBase backing_store, 577 bool HasElement(JSObject holder, uint32_t index, FixedArrayBase backing_store, in HasElement() argument 580 backing_store, filter); in HasElement() 584 FixedArrayBase backing_store, in HasElementImpl() argument 586 return Subclass::GetEntryForIndexImpl(isolate, holder, backing_store, index, in HasElementImpl() 596 static bool HasEntryImpl(Isolate* isolate, FixedArrayBase backing_store, in HasEntryImpl() argument 605 static bool HasAccessorsImpl(JSObject holder, FixedArrayBase backing_store) { in HasAccessorsImpl() argument 618 static Handle<Object> GetImpl(Isolate* isolate, FixedArrayBase backing_store, in GetImpl() argument 620 return handle(BackingStore::cast(backing_store).get(entry.as_int()), in GetImpl() 691 Handle<FixedArrayBase> backing_store) { in SetLengthImpl() argument [all …]
|
D | js-array-buffer.h | 45 DECL_GETTER(backing_store, void*) 87 std::shared_ptr<BackingStore> backing_store); 91 V8_EXPORT_PRIVATE void Attach(std::shared_ptr<BackingStore> backing_store); 187 explicit ArrayBufferExtension(std::shared_ptr<BackingStore> backing_store) in ArrayBufferExtension() argument 190 backing_store_(backing_store), in ArrayBufferExtension() 205 std::shared_ptr<BackingStore> backing_store() { return backing_store_; } in backing_store() function 218 void set_backing_store(std::shared_ptr<BackingStore> backing_store) { in set_backing_store() argument 219 backing_store_ = std::move(backing_store); in set_backing_store()
|
D | elements.h | 49 FixedArrayBase backing_store, 75 Handle<JSObject> object, Handle<FixedArrayBase> backing_store, 87 Handle<JSObject> object, Handle<FixedArrayBase> backing_store, 132 virtual size_t GetCapacity(JSObject holder, FixedArrayBase backing_store) = 0; 184 FixedArrayBase backing_store, 189 Handle<FixedArrayBase> backing_store,
|
D | backing-store.h | 225 static void Register(std::shared_ptr<BackingStore> backing_store); 234 static void Unregister(BackingStore* backing_store); 239 BackingStore* backing_store, 247 Isolate* isolate, std::shared_ptr<BackingStore> backing_store);
|
D | js-array-buffer-inl.h | 42 DEF_GETTER(JSArrayBuffer, backing_store, void*) { in DEF_GETTER() argument 127 if (backing_store() == nullptr) { in allocation_length() 134 if (backing_store() == nullptr) { in allocation_base() 137 return backing_store(); in allocation_base()
|
D | js-array-buffer.tq | 16 backing_store: ExternalPointer;
|
/external/v8/src/builtins/ |
D | builtins-sharedarraybuffer-gen.cc | 97 TNode<RawPtrT> backing_store = LoadJSArrayBufferBackingStorePtr(array_buffer); in ValidateIntegerTypedArray() local 99 *out_backing_store = RawPtrAdd(backing_store, Signed(byte_offset)); in ValidateIntegerTypedArray() 175 TNode<RawPtrT> backing_store; in TF_BUILTIN() local 177 maybe_array, context, &elements_kind, &backing_store, &detached); in TF_BUILTIN() 205 SmiFromInt32(AtomicLoad(MachineType::Int8(), backing_store, index_word))); in TF_BUILTIN() 209 AtomicLoad(MachineType::Uint8(), backing_store, index_word))); in TF_BUILTIN() 213 AtomicLoad(MachineType::Int16(), backing_store, WordShl(index_word, 1)))); in TF_BUILTIN() 216 Return(SmiFromInt32(AtomicLoad(MachineType::Uint16(), backing_store, in TF_BUILTIN() 221 AtomicLoad(MachineType::Int32(), backing_store, WordShl(index_word, 2)))); in TF_BUILTIN() 224 Return(ChangeUint32ToTagged(AtomicLoad(MachineType::Uint32(), backing_store, in TF_BUILTIN() [all …]
|
D | builtins-arraybuffer.cc | 55 auto backing_store = in ConstructBuffer() local 57 if (!backing_store) { in ConstructBuffer() 63 array_buffer->Attach(std::move(backing_store)); in ConstructBuffer() 225 new_array_buffer->backing_store() == array_buffer->backing_store()) { in SliceHelper() 261 reinterpret_cast<uint8_t*>(array_buffer->backing_store()); in SliceHelper() 263 reinterpret_cast<uint8_t*>(new_array_buffer->backing_store()); in SliceHelper()
|
D | builtins-dataview.cc | 108 static_cast<uint8_t*>(array_buffer->backing_store()) + view_byte_offset); in BUILTIN()
|
D | builtins-typed-array-gen.h | 29 TNode<UintPtrT> CalculateExternalPointer(TNode<UintPtrT> backing_store,
|
/external/grpc-grpc/test/cpp/microbenchmarks/ |
D | bm_metadata.cc | 155 char backing_store[sizeof(grpc_mdelem_data)]; in BM_MetadataFromNonInternedSlicesWithBackingStore() local 159 k, v, reinterpret_cast<grpc_mdelem_data*>(backing_store))); in BM_MetadataFromNonInternedSlicesWithBackingStore() 171 char backing_store[sizeof(grpc_mdelem_data)]; in BM_MetadataFromInternedSlicesWithBackingStore() local 175 k, v, reinterpret_cast<grpc_mdelem_data*>(backing_store))); in BM_MetadataFromInternedSlicesWithBackingStore() 189 char backing_store[sizeof(grpc_mdelem_data)]; in BM_MetadataFromInternedKeyWithBackingStore() local 193 k, v, reinterpret_cast<grpc_mdelem_data*>(backing_store))); in BM_MetadataFromInternedKeyWithBackingStore() 232 char backing_store[sizeof(grpc_mdelem_data)]; in BM_MetadataRefUnrefExternal() local 236 reinterpret_cast<grpc_mdelem_data*>(backing_store)); in BM_MetadataRefUnrefExternal() 248 char backing_store[sizeof(grpc_mdelem_data)]; in BM_MetadataRefUnrefInterned() local 253 k, v, reinterpret_cast<grpc_mdelem_data*>(backing_store)); in BM_MetadataRefUnrefInterned()
|
/external/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 | serializer.cc | 443 void* backing_store, int32_t byte_length) { in SerializeBackingStore() argument 445 serializer_->reference_map()->LookupBackingStore(backing_store); in SerializeBackingStore() 451 sink_->PutRaw(static_cast<byte*>(backing_store), byte_length, in SerializeBackingStore() 458 serializer_->reference_map()->AddBackingStore(backing_store, reference); in SerializeBackingStore() 480 void* backing_store = reinterpret_cast<void*>( in SerializeJSTypedArray() local 483 uint32_t ref = SerializeBackingStore(backing_store, byte_length); in SerializeJSTypedArray() 494 void* backing_store = buffer->backing_store(); in SerializeJSArrayBuffer() local 505 if (backing_store != nullptr) { in SerializeJSArrayBuffer() 506 uint32_t ref = SerializeBackingStore(backing_store, byte_length); in SerializeJSArrayBuffer() 521 buffer->set_backing_store(isolate(), backing_store); in SerializeJSArrayBuffer()
|
D | deserializer.cc | 415 void* backing_store = nullptr; in PostProcessNewObject() local 421 backing_store = backing_stores_[store_index]->buffer_start(); in PostProcessNewObject() 426 reinterpret_cast<uint8_t*>(backing_store) + data_view->byte_offset()); in PostProcessNewObject() 440 auto backing_store = backing_stores_[store_index]; in PostProcessNewObject() local 441 auto start = backing_store in PostProcessNewObject() 442 ? reinterpret_cast<byte*>(backing_store->buffer_start()) in PostProcessNewObject() 1004 std::unique_ptr<BackingStore> backing_store = in ReadSingleBytecodeData() local 1007 CHECK_NOT_NULL(backing_store); in ReadSingleBytecodeData() 1008 source_.CopyRaw(backing_store->buffer_start(), byte_length); in ReadSingleBytecodeData() 1009 backing_stores_.push_back(std::move(backing_store)); in ReadSingleBytecodeData()
|
D | object-deserializer.cc | 65 auto bs = backing_store(store_index); in CommitPostProcessedObjects()
|
D | context-deserializer.cc | 62 auto bs = backing_store(store_index); in SetupOffHeapArrayBufferBackingStores()
|
/external/v8/src/execution/ |
D | futex-emulation.cc | 34 static int8_t* ToWaitLocation(const BackingStore* backing_store, in ToWaitLocation() argument 36 return static_cast<int8_t*>(backing_store->buffer_start()) + addr; in ToWaitLocation() 385 std::shared_ptr<BackingStore> backing_store = in WaitSync() local 387 DCHECK(backing_store); in WaitSync() 389 node->backing_store_ = backing_store; in WaitSync() 392 FutexWaitList::ToWaitLocation(backing_store.get(), addr); in WaitSync() 500 const std::shared_ptr<BackingStore>& backing_store, size_t wait_addr, in FutexWaitListNode() argument 503 backing_store_(backing_store), in FutexWaitListNode() 506 FutexWaitList::ToWaitLocation(backing_store.get(), wait_addr)), in FutexWaitListNode() 541 std::shared_ptr<BackingStore> backing_store = array_buffer->GetBackingStore(); in WaitAsync() local [all …]
|
/external/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 …]
|
/external/v8/src/wasm/ |
D | wasm-objects.cc | 271 Handle<FixedArray> backing_store = isolate->factory()->NewFixedArray(initial); in New() local 274 backing_store->set(i, null); in New() 291 table_obj->set_entries(*backing_store); in New() 298 *entries = backing_store; in New() 797 instance->SetRawMemory(reinterpret_cast<byte*>(buffer->backing_store()), in SetInstanceMemory() 822 auto backing_store = in New() local 824 buffer = isolate->factory()->NewJSArrayBuffer(std::move(backing_store)); in New() 836 auto backing_store = buffer->GetBackingStore(); in New() local 837 backing_store->AttachSharedWasmMemoryObject(isolate, memory_object); in New() 859 auto backing_store = BackingStore::AllocateWasmMemory( in New() local [all …]
|
D | module-instantiate.cc | 37 return static_cast<byte*>(buffer.ToHandleChecked()->backing_store()) + offset; in raw_buffer_ptr() 49 instance->untagged_globals_buffer().backing_store()) + in EvalUint32InitExpr() 496 CHECK_EQ(instance->memory_start(), memory->backing_store()); in Build() 516 reinterpret_cast<byte*>(untagged_globals_->backing_store())); in Build() 1834 Address backing_store = in ProcessExports() local 1835 reinterpret_cast<Address>(untagged_buffer->backing_store()); in ProcessExports() 1836 CHECK(global_addr >= backing_store && in ProcessExports() 1837 global_addr < backing_store + buffer_size); in ProcessExports() 1838 offset = static_cast<uint32_t>(global_addr - backing_store); in ProcessExports()
|
/external/v8/src/strings/ |
D | string-builder.cc | 114 FixedArrayBuilder::FixedArrayBuilder(Handle<FixedArray> backing_store) in FixedArrayBuilder() argument 115 : array_(backing_store), length_(0), has_non_smi_elements_(false) { in FixedArrayBuilder() 118 DCHECK_GT(backing_store->length(), 0); in FixedArrayBuilder()
|
/external/v8/src/runtime/ |
D | runtime-atomics.cc | 365 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in GetModifySetValueInBuffer() 412 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION() 433 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION() 467 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION()
|
/external/v8/src/api/ |
D | api.cc | 3826 v8::Isolate* isolate, std::unique_ptr<v8::BackingStore> backing_store, in Reallocate() argument 3833 reinterpret_cast<i::BackingStore*>(backing_store.get()); in Reallocate() 3837 return backing_store; in Reallocate() 3848 std::shared_ptr<i::BackingStore> backing_store = self->GetBackingStore(); in GetBackingStore() local 3849 if (!backing_store) { in GetBackingStore() 3850 backing_store = in GetBackingStore() 3853 i::GlobalBackingStoreRegistry::Register(backing_store); in GetBackingStore() 3854 std::shared_ptr<i::BackingStoreBase> bs_base = backing_store; in GetBackingStore() 3860 std::shared_ptr<i::BackingStore> backing_store = self->GetBackingStore(); in GetBackingStore() local 3861 if (!backing_store) { in GetBackingStore() [all …]
|