Home
last modified time | relevance | path

Searched refs:array_buffer (Results 1 – 25 of 30) sorted by relevance

12

/external/v8/src/objects/
Djs-array-buffer.cc91 void JSArrayBuffer::Setup(Handle<JSArrayBuffer> array_buffer, Isolate* isolate, in Setup() argument
94 DCHECK_EQ(array_buffer->GetEmbedderFieldCount(), in Setup()
97 array_buffer->SetEmbedderField(i, Smi::kZero); in Setup()
99 array_buffer->set_bit_field(0); in Setup()
100 array_buffer->set_is_external(is_external); in Setup()
101 array_buffer->set_is_neuterable(shared == SharedFlag::kNotShared); in Setup()
102 array_buffer->set_is_shared(shared == SharedFlag::kShared); in Setup()
103 array_buffer->set_is_wasm_memory(is_wasm_memory); in Setup()
108 array_buffer->set_byte_length(*heap_byte_length); in Setup()
113 array_buffer->set_backing_store(data); in Setup()
[all …]
Djs-array-buffer.h85 Handle<JSArrayBuffer> array_buffer, Isolate* isolate, bool is_external,
92 Handle<JSArrayBuffer> array_buffer, Isolate* isolate,
/external/v8/src/builtins/
Dbuiltins-arraybuffer.cc97 CHECK_RECEIVER(JSArrayBuffer, array_buffer, kMethodName); in BUILTIN()
98 CHECK_SHARED(false, array_buffer, kMethodName); in BUILTIN()
101 return array_buffer->byte_length(); in BUILTIN()
108 CHECK_RECEIVER(JSArrayBuffer, array_buffer, in BUILTIN()
110 CHECK_SHARED(true, array_buffer, kMethodName); in BUILTIN()
111 return array_buffer->byte_length(); in BUILTIN()
131 CHECK_RECEIVER(JSArrayBuffer, array_buffer, kMethodName); in SliceHelper()
134 CHECK_SHARED(is_shared, array_buffer, kMethodName); in SliceHelper()
137 if (!is_shared && array_buffer->was_neutered()) { in SliceHelper()
146 double const len = array_buffer->byte_length()->Number(); in SliceHelper()
[all …]
Dbuiltins-dataview.cc43 Handle<JSArrayBuffer> array_buffer = Handle<JSArrayBuffer>::cast(buffer); in BUILTIN() local
56 double const buffer_byte_length = array_buffer->byte_length()->Number(); in BUILTIN()
96 Handle<JSDataView>::cast(result)->set_buffer(*array_buffer); in BUILTIN()
Dbuiltins-sharedarraybuffer.cc115 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in BUILTIN() local
118 return FutexEmulation::Wake(array_buffer, addr, c); in BUILTIN()
160 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in BUILTIN() local
163 return FutexEmulation::Wait(isolate, array_buffer, addr, value_int32, in BUILTIN()
Dbuiltins-sharedarraybuffer-gen.cc53 Node* array_buffer = LoadObjectField(tagged, JSTypedArray::kBufferOffset); in ValidateSharedTypedArray() local
54 Node* bitfield = LoadObjectField(array_buffer, JSArrayBuffer::kBitFieldOffset, in ValidateSharedTypedArray()
80 LoadObjectField(array_buffer, JSArrayBuffer::kBackingStoreOffset); in ValidateSharedTypedArray()
Dbuiltins-array-gen.h151 void VisitAllTypedArrayElements(Node* array_buffer,
Dbuiltins-array-gen.cc533 TNode<JSArrayBuffer> array_buffer = LoadArrayBufferViewBuffer(typed_array); in GenerateIteratingTypedArrayBuiltinBody() local
534 ThrowIfArrayBufferIsDetached(context_, array_buffer, name_); in GenerateIteratingTypedArrayBuiltinBody()
590 VisitAllTypedArrayElements(array_buffer, processor, &done, direction, in GenerateIteratingTypedArrayBuiltinBody()
675 Node* array_buffer, const CallResultProcessor& processor, Label* detached, in VisitAllTypedArrayElements() argument
680 GotoIf(IsDetachedBuffer(array_buffer), detached); in VisitAllTypedArrayElements()
/external/v8/src/runtime/
Druntime-typedarray.cc28 Handle<JSArrayBuffer> array_buffer = Handle<JSArrayBuffer>::cast(argument); in RUNTIME_FUNCTION() local
29 if (!array_buffer->is_neuterable()) { in RUNTIME_FUNCTION()
32 if (array_buffer->backing_store() == nullptr) { in RUNTIME_FUNCTION()
33 CHECK_EQ(Smi::kZero, array_buffer->byte_length()); in RUNTIME_FUNCTION()
37 CHECK(!array_buffer->is_shared()); in RUNTIME_FUNCTION()
38 DCHECK(!array_buffer->is_external()); in RUNTIME_FUNCTION()
39 void* backing_store = array_buffer->backing_store(); in RUNTIME_FUNCTION()
40 size_t byte_length = NumberToSize(array_buffer->byte_length()); in RUNTIME_FUNCTION()
41 array_buffer->set_is_external(true); in RUNTIME_FUNCTION()
42 isolate->heap()->UnregisterArrayBuffer(*array_buffer); in RUNTIME_FUNCTION()
[all …]
Druntime-futex.cc30 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION() local
33 return FutexEmulation::NumWaitersForTesting(array_buffer, addr); in RUNTIME_FUNCTION()
Druntime-test.cc916 Handle<JSArrayBuffer> array_buffer = isolate->factory()->NewJSArrayBuffer(); in RUNTIME_FUNCTION() local
917 JSArrayBuffer::Setup(array_buffer, isolate, false, array_data, compiled_size); in RUNTIME_FUNCTION()
923 return *array_buffer; in RUNTIME_FUNCTION()
1015 frame->wasm_instance()->memory_object()->array_buffer()->backing_store()); in RUNTIME_FUNCTION()
/external/v8/src/
Dfutex-emulation.cc90 Handle<JSArrayBuffer> array_buffer, size_t addr, in Wait() argument
92 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in Wait()
94 void* backing_store = array_buffer->backing_store(); in Wait()
124 isolate->RunAtomicsWaitCallback(AtomicsWaitEvent::kStartWait, array_buffer, in Wait()
228 isolate->RunAtomicsWaitCallback(callback_result, array_buffer, addr, value, in Wait()
239 Object* FutexEmulation::Wake(Handle<JSArrayBuffer> array_buffer, size_t addr, in Wake() argument
241 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in Wake()
244 void* backing_store = array_buffer->backing_store(); in Wake()
264 Object* FutexEmulation::NumWaitersForTesting(Handle<JSArrayBuffer> array_buffer, in NumWaitersForTesting() argument
266 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in NumWaitersForTesting()
[all …]
Dfutex-emulation.h121 static Object* Wait(Isolate* isolate, Handle<JSArrayBuffer> array_buffer,
128 static Object* Wake(Handle<JSArrayBuffer> array_buffer, size_t addr,
133 static Object* NumWaitersForTesting(Handle<JSArrayBuffer> array_buffer,
Dvalue-serializer.cc342 Handle<JSArrayBuffer> array_buffer) { in TransferArrayBuffer() argument
343 DCHECK(!array_buffer_transfer_map_.Find(array_buffer)); in TransferArrayBuffer()
344 DCHECK(!array_buffer->is_shared()); in TransferArrayBuffer()
345 array_buffer_transfer_map_.Set(array_buffer, transfer_id); in TransferArrayBuffer()
812 Handle<JSArrayBuffer> array_buffer) { in WriteJSArrayBuffer() argument
813 if (array_buffer->is_shared()) { in WriteJSArrayBuffer()
815 ThrowDataCloneError(MessageTemplate::kDataCloneError, array_buffer); in WriteJSArrayBuffer()
821 v8_isolate, Utils::ToLocalShared(array_buffer)); in WriteJSArrayBuffer()
829 uint32_t* transfer_entry = array_buffer_transfer_map_.Find(array_buffer); in WriteJSArrayBuffer()
835 if (array_buffer->was_neutered()) { in WriteJSArrayBuffer()
[all …]
Dvalue-serializer.h81 Handle<JSArrayBuffer> array_buffer);
133 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer)
135 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer);
223 Handle<JSArrayBuffer> array_buffer);
Dd8.cc3158 Local<ArrayBuffer> array_buffer = Local<ArrayBuffer>::Cast(element); in PrepareTransfer() local
3160 static_cast<uint32_t>(array_buffers_.size()), array_buffer); in PrepareTransfer()
3161 array_buffers_.emplace_back(isolate_, array_buffer); in PrepareTransfer()
3176 typename T::Contents MaybeExternalize(Local<T> array_buffer) { in MaybeExternalize() argument
3177 if (array_buffer->IsExternal()) { in MaybeExternalize()
3178 return array_buffer->GetContents(); in MaybeExternalize()
3180 typename T::Contents contents = array_buffer->Externalize(); in MaybeExternalize()
3188 Local<ArrayBuffer> array_buffer = in FinalizeTransfer() local
3190 if (!array_buffer->IsNeuterable()) { in FinalizeTransfer()
3195 ArrayBuffer::Contents contents = MaybeExternalize(array_buffer); in FinalizeTransfer()
[all …]
/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/
Dfuse_binary_into_following_affine_test.cc57 auto& array_buffer = array.GetMutableBuffer<ArrayDataType::kFloat>(); in CreateConstantArray() local
62 array_buffer.data.resize(bufsize); in CreateConstantArray()
63 float* buf_ptr = array_buffer.data.data(); in CreateConstantArray()
/external/v8/src/wasm/
Dwasm-objects-inl.h87 ACCESSORS(WasmMemoryObject, array_buffer, JSArrayBuffer, kArrayBufferOffset) in ACCESSORS()
92 ACCESSORS(WasmGlobalObject, array_buffer, JSArrayBuffer, kArrayBufferOffset) in ACCESSORS()
105 DCHECK(array_buffer()->byte_length()->ToUint32(&buffer_size)); in address()
108 return Address(array_buffer()->backing_store()) + offset(); in address()
Dwasm-objects.h286 DECL_ACCESSORS(array_buffer, JSArrayBuffer)
325 DECL_ACCESSORS(array_buffer, JSArrayBuffer)
Dwasm-objects.cc996 CHECK(array_buffer()->byte_length()->ToUint32(&byte_length)); in current_pages()
1003 array_buffer()->backing_store()); in has_full_guard_region()
1035 Handle<JSArrayBuffer> buffer(memory->array_buffer(), isolate); in AddInstance()
1050 Handle<JSArrayBuffer> old_buffer(memory_object->array_buffer(), isolate); in Grow()
Dmodule-compiler.cc1457 Handle<JSArrayBuffer> buffer(memory->array_buffer(), isolate_); in FindImportedMemoryBuffer()
1619 Handle<JSArrayBuffer> buffer(memory->array_buffer(), isolate_); in ProcessImports()
1705 Handle<JSArrayBuffer> buffer(global_object->array_buffer(), in ProcessImports()
Dwasm-debug.cc418 instance->memory_object()->array_buffer(), isolate_); in GetGlobalScopeObject()
Dwasm-js.cc1248 i::Handle<i::JSArrayBuffer> old_buffer(receiver->array_buffer(), i_isolate); in WebAssemblyMemoryGrow()
1280 i::Handle<i::Object> buffer_obj(receiver->array_buffer(), i_isolate); in WebAssemblyMemoryGetBuffer()
/external/v8/include/
Dv8.h2084 Local<ArrayBuffer> array_buffer);
2178 Local<ArrayBuffer> array_buffer);
4843 static Local<Uint8Array> New(Local<ArrayBuffer> array_buffer,
4860 static Local<Uint8ClampedArray> New(Local<ArrayBuffer> array_buffer,
4877 static Local<Int8Array> New(Local<ArrayBuffer> array_buffer,
4894 static Local<Uint16Array> New(Local<ArrayBuffer> array_buffer,
4911 static Local<Int16Array> New(Local<ArrayBuffer> array_buffer,
4928 static Local<Uint32Array> New(Local<ArrayBuffer> array_buffer,
4945 static Local<Int32Array> New(Local<ArrayBuffer> array_buffer,
4962 static Local<Float32Array> New(Local<ArrayBuffer> array_buffer,
[all …]
/external/v8/src/heap/
Dspaces.cc2028 JSArrayBuffer* array_buffer = JSArrayBuffer::cast(object); in AllocateChunk() local
2029 if (ArrayBufferTracker::IsTracked(array_buffer)) { in AllocateChunk()
2030 size_t size = NumberToSize(array_buffer->byte_length()); in AllocateChunk()
2516 JSArrayBuffer* array_buffer = JSArrayBuffer::cast(object); in AllocateChunk() local
2517 if (ArrayBufferTracker::IsTracked(array_buffer)) { in AllocateChunk()
2518 size_t size = NumberToSize(array_buffer->byte_length()); in AllocateChunk()

12