Home
last modified time | relevance | path

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

/external/v8/src/
Dfutex-emulation.cc77 Handle<JSArrayBuffer> array_buffer, size_t addr, in Wait() argument
79 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in Wait()
81 void* backing_store = array_buffer->backing_store(); in Wait()
192 Handle<JSArrayBuffer> array_buffer, size_t addr, in Wake() argument
194 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in Wake()
197 void* backing_store = array_buffer->backing_store(); in Wake()
219 Handle<JSArrayBuffer> array_buffer, in NumWaitersForTesting() argument
221 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in NumWaitersForTesting()
222 void* backing_store = array_buffer->backing_store(); in NumWaitersForTesting()
Dfutex-emulation.h94 static Object* Wait(Isolate* isolate, Handle<JSArrayBuffer> array_buffer,
101 static Object* Wake(Isolate* isolate, Handle<JSArrayBuffer> array_buffer,
107 Handle<JSArrayBuffer> array_buffer,
Dvalue-serializer.h76 Handle<JSArrayBuffer> array_buffer);
124 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer)
126 Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer);
211 Handle<JSArrayBuffer> array_buffer);
Dvalue-serializer.cc301 Handle<JSArrayBuffer> array_buffer) { in TransferArrayBuffer() argument
302 DCHECK(!array_buffer_transfer_map_.Find(array_buffer)); in TransferArrayBuffer()
303 DCHECK(!array_buffer->is_shared()); in TransferArrayBuffer()
304 array_buffer_transfer_map_.Set(array_buffer, transfer_id); in TransferArrayBuffer()
742 Handle<JSArrayBuffer> array_buffer) { in WriteJSArrayBuffer() argument
743 if (array_buffer->is_shared()) { in WriteJSArrayBuffer()
745 ThrowDataCloneError(MessageTemplate::kDataCloneError, array_buffer); in WriteJSArrayBuffer()
751 v8_isolate, Utils::ToLocalShared(array_buffer)); in WriteJSArrayBuffer()
759 uint32_t* transfer_entry = array_buffer_transfer_map_.Find(array_buffer); in WriteJSArrayBuffer()
765 if (array_buffer->was_neutered()) { in WriteJSArrayBuffer()
[all …]
Dd8.cc2674 Local<ArrayBuffer> array_buffer = Local<ArrayBuffer>::Cast(element); in PrepareTransfer() local
2676 static_cast<uint32_t>(array_buffers_.size()), array_buffer); in PrepareTransfer()
2677 array_buffers_.emplace_back(isolate_, array_buffer); in PrepareTransfer()
2692 typename T::Contents MaybeExternalize(Local<T> array_buffer) { in MaybeExternalize() argument
2693 if (array_buffer->IsExternal()) { in MaybeExternalize()
2694 return array_buffer->GetContents(); in MaybeExternalize()
2696 typename T::Contents contents = array_buffer->Externalize(); in MaybeExternalize()
2704 Local<ArrayBuffer> array_buffer = in FinalizeTransfer() local
2706 if (!array_buffer->IsNeuterable()) { in FinalizeTransfer()
2711 ArrayBuffer::Contents contents = MaybeExternalize(array_buffer); in FinalizeTransfer()
[all …]
Dobjects.cc19268 void JSArrayBuffer::Setup(Handle<JSArrayBuffer> array_buffer, Isolate* isolate, in Setup() argument
19271 DCHECK(array_buffer->GetInternalFieldCount() == in Setup()
19274 array_buffer->SetInternalField(i, Smi::kZero); in Setup()
19276 array_buffer->set_bit_field(0); in Setup()
19277 array_buffer->set_is_external(is_external); in Setup()
19278 array_buffer->set_is_neuterable(shared == SharedFlag::kNotShared); in Setup()
19279 array_buffer->set_is_shared(shared == SharedFlag::kShared); in Setup()
19284 array_buffer->set_byte_length(*byte_length); in Setup()
19289 array_buffer->set_backing_store(data); in Setup()
19292 isolate->heap()->RegisterNewArrayBuffer(*array_buffer); in Setup()
[all …]
Dapi.cc3195 Local<ArrayBuffer> array_buffer) { in TransferArrayBuffer() argument
3197 Utils::OpenHandle(*array_buffer)); in TransferArrayBuffer()
3316 Local<ArrayBuffer> array_buffer) { in TransferArrayBuffer() argument
3319 Utils::OpenHandle(*array_buffer)); in TransferArrayBuffer()
7736 Local<Type##Array> Type##Array::New(Local<ArrayBuffer> array_buffer, \
7738 i::Isolate* isolate = Utils::OpenHandle(*array_buffer)->GetIsolate(); \
7747 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); \
7777 Local<DataView> DataView::New(Local<ArrayBuffer> array_buffer, in TYPED_ARRAYS()
7779 i::Handle<i::JSArrayBuffer> buffer = Utils::OpenHandle(*array_buffer); in TYPED_ARRAYS()
Dobjects.h10713 Handle<JSArrayBuffer> array_buffer, Isolate* isolate, bool is_external,
10720 Handle<JSArrayBuffer> array_buffer, Isolate* isolate,
/external/v8/src/runtime/
Druntime-futex.cc37 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION() local
40 return FutexEmulation::Wait(isolate, array_buffer, addr, value, timeout); in RUNTIME_FUNCTION()
53 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION() local
56 return FutexEmulation::Wake(isolate, array_buffer, addr, count); in RUNTIME_FUNCTION()
68 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION() local
71 return FutexEmulation::NumWaitersForTesting(isolate, array_buffer, addr); in RUNTIME_FUNCTION()
Druntime-typedarray.cc60 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, array_buffer, 0); in RUNTIME_FUNCTION()
61 if (array_buffer->backing_store() == NULL) { in RUNTIME_FUNCTION()
62 CHECK(Smi::kZero == array_buffer->byte_length()); in RUNTIME_FUNCTION()
66 CHECK(!array_buffer->is_shared()); in RUNTIME_FUNCTION()
67 DCHECK(!array_buffer->is_external()); in RUNTIME_FUNCTION()
68 void* backing_store = array_buffer->backing_store(); in RUNTIME_FUNCTION()
69 size_t byte_length = NumberToSize(array_buffer->byte_length()); in RUNTIME_FUNCTION()
70 array_buffer->set_is_external(true); in RUNTIME_FUNCTION()
71 isolate->heap()->UnregisterArrayBuffer(*array_buffer); in RUNTIME_FUNCTION()
72 array_buffer->Neuter(); in RUNTIME_FUNCTION()
/external/v8/src/builtins/
Dbuiltins-arraybuffer.cc67 CHECK_RECEIVER(JSArrayBuffer, array_buffer, in BUILTIN()
70 if (array_buffer->is_shared()) { in BUILTIN()
79 return array_buffer->byte_length(); in BUILTIN()
Dbuiltins-sharedarraybuffer.cc16 CHECK_RECEIVER(JSArrayBuffer, array_buffer, in BUILTIN()
18 if (!array_buffer->is_shared()) { in BUILTIN()
25 return array_buffer->byte_length(); in BUILTIN()
54 Node* array_buffer = a->LoadObjectField(tagged, JSTypedArray::kBufferOffset); in ValidateSharedTypedArray() local
57 array_buffer, JSArrayBuffer::kBitFieldOffset, MachineType::Uint32())); in ValidateSharedTypedArray()
87 a->LoadObjectField(array_buffer, JSArrayBuffer::kBackingStoreOffset); in ValidateSharedTypedArray()
Dbuiltins-dataview.cc44 Handle<JSArrayBuffer> array_buffer = Handle<JSArrayBuffer>::cast(buffer); in BUILTIN() local
57 double const buffer_byte_length = array_buffer->byte_length()->Number(); in BUILTIN()
98 Handle<JSDataView>::cast(result)->set_buffer(*array_buffer); in BUILTIN()
/external/libmojo/mojo/edk/js/
Ddrain_data.cc87 v8::Handle<v8::ArrayBuffer> array_buffer = in DeliverData() local
90 ConvertFromV8(isolate_, array_buffer, &buffer); in DeliverData()
114 dictionary.Set("buffer", array_buffer); in DeliverData()
Dcore.cc168 v8::Handle<v8::ArrayBuffer> array_buffer = in ReadMessage() local
173 ConvertFromV8(args.isolate(), array_buffer, &buffer); in ReadMessage()
189 dictionary.Set("buffer", array_buffer); in ReadMessage()
258 v8::Handle<v8::ArrayBuffer> array_buffer = in ReadData() local
261 ConvertFromV8(args.isolate(), array_buffer, &buffer); in ReadData()
269 dictionary.Set("buffer", array_buffer); in ReadData()
/external/v8/include/
Dv8.h1792 Local<ArrayBuffer> array_buffer);
1872 Local<ArrayBuffer> array_buffer);
4193 static Local<Uint8Array> New(Local<ArrayBuffer> array_buffer,
4210 static Local<Uint8ClampedArray> New(Local<ArrayBuffer> array_buffer,
4227 static Local<Int8Array> New(Local<ArrayBuffer> array_buffer,
4244 static Local<Uint16Array> New(Local<ArrayBuffer> array_buffer,
4261 static Local<Int16Array> New(Local<ArrayBuffer> array_buffer,
4278 static Local<Uint32Array> New(Local<ArrayBuffer> array_buffer,
4295 static Local<Int32Array> New(Local<ArrayBuffer> array_buffer,
4312 static Local<Float32Array> New(Local<ArrayBuffer> array_buffer,
[all …]