Home
last modified time | relevance | path

Searched refs:JSArrayBuffer (Results 1 – 25 of 67) sorted by relevance

123

/external/v8/src/objects/
Djs-array-buffer-inl.h19 CAST_ACCESSOR(JSArrayBuffer)
23 void* JSArrayBuffer::backing_store() const { in CAST_ACCESSOR()
28 void JSArrayBuffer::set_backing_store(void* value, WriteBarrierMode mode) { in set_backing_store()
33 ACCESSORS(JSArrayBuffer, byte_length, Object, kByteLengthOffset) in ACCESSORS() argument
35 size_t JSArrayBuffer::allocation_length() const { in ACCESSORS()
50 void* JSArrayBuffer::allocation_base() const { in allocation_base()
65 bool JSArrayBuffer::is_wasm_memory() const { in is_wasm_memory()
73 void JSArrayBuffer::set_bit_field(uint32_t bits) { in set_bit_field()
84 uint32_t JSArrayBuffer::bit_field() const { in bit_field()
88 bool JSArrayBuffer::is_external() { return IsExternal::decode(bit_field()); } in is_external()
[all …]
Djs-array-buffer.cc39 void JSArrayBuffer::Neuter() { in Neuter()
54 void JSArrayBuffer::StopTrackingWasmMemory(Isolate* isolate) { in StopTrackingWasmMemory()
61 void JSArrayBuffer::FreeBackingStoreFromMainThread() { in FreeBackingStoreFromMainThread()
73 void JSArrayBuffer::FreeBackingStore(Isolate* isolate, Allocation allocation) { in FreeBackingStore()
87 void JSArrayBuffer::set_is_wasm_memory(bool is_wasm_memory) { in set_is_wasm_memory()
91 void JSArrayBuffer::Setup(Handle<JSArrayBuffer> array_buffer, Isolate* isolate, in Setup()
120 bool JSArrayBuffer::SetupAllocatingData(Handle<JSArrayBuffer> array_buffer, in SetupAllocatingData()
149 JSArrayBuffer::Setup(array_buffer, isolate, is_external, data, in SetupAllocatingData()
154 Handle<JSArrayBuffer> JSTypedArray::MaterializeArrayBuffer( in MaterializeArrayBuffer()
165 Handle<JSArrayBuffer> buffer(JSArrayBuffer::cast(typed_array->buffer()), in MaterializeArrayBuffer()
[all …]
Djs-array-buffer.h19 class JSArrayBuffer : public JSObject {
53 DECL_CAST(JSArrayBuffer)
85 Handle<JSArrayBuffer> array_buffer, Isolate* isolate, bool is_external,
92 Handle<JSArrayBuffer> array_buffer, Isolate* isolate,
97 DECL_PRINTER(JSArrayBuffer)
98 DECL_VERIFIER(JSArrayBuffer)
129 DISALLOW_IMPLICIT_CONSTRUCTORS(JSArrayBuffer);
179 Handle<JSArrayBuffer> GetBuffer();
199 static Handle<JSArrayBuffer> MaterializeArrayBuffer(
/external/v8/src/heap/
Darray-buffer-tracker.h34 inline static void RegisterNew(Heap* heap, JSArrayBuffer* buffer);
35 inline static void Unregister(Heap* heap, JSArrayBuffer* buffer);
56 static bool IsTracked(JSArrayBuffer* buffer);
73 inline void Add(JSArrayBuffer* buffer, size_t length);
74 inline void Remove(JSArrayBuffer* buffer, size_t length);
96 bool IsTracked(JSArrayBuffer* buffer) const { in IsTracked()
103 size_t operator()(JSArrayBuffer* buffer) const { in operator()
113 typedef std::unordered_map<JSArrayBuffer*, JSArrayBuffer::Allocation, Hasher>
Darray-buffer-tracker-inl.h18 void ArrayBufferTracker::RegisterNew(Heap* heap, JSArrayBuffer* buffer) { in RegisterNew()
41 void ArrayBufferTracker::Unregister(Heap* heap, JSArrayBuffer* buffer) { in Unregister()
65 JSArrayBuffer* buffer = reinterpret_cast<JSArrayBuffer*>(it->first); in Free()
69 JSArrayBuffer::FreeBackingStore(isolate, it->second); in Free()
91 tracker->Free([marking_state](JSArrayBuffer* buffer) { in FreeDead()
99 void LocalArrayBufferTracker::Add(JSArrayBuffer* buffer, size_t length) { in Add()
113 void LocalArrayBufferTracker::Remove(JSArrayBuffer* buffer, size_t length) { in Remove()
Darray-buffer-tracker.cc23 std::vector<JSArrayBuffer::Allocation> backing_stores_to_free; in Process()
26 JSArrayBuffer* new_buffer = nullptr; in Process()
27 JSArrayBuffer* old_buffer = nullptr; in Process()
97 tracker->Free([](JSArrayBuffer* buffer) { return true; }); in FreeAll()
109 [mode](JSArrayBuffer* old_buffer, JSArrayBuffer** new_buffer) { in ProcessBuffers()
112 *new_buffer = JSArrayBuffer::cast(map_word.ToForwardingAddress()); in ProcessBuffers()
122 bool ArrayBufferTracker::IsTracked(JSArrayBuffer* buffer) { in IsTracked()
Darray-buffer-collector.cc16 std::vector<JSArrayBuffer::Allocation> allocations) { in AddGarbageAllocations()
23 for (const std::vector<JSArrayBuffer::Allocation>& allocations : in FreeAllocations()
25 for (JSArrayBuffer::Allocation alloc : allocations) { in FreeAllocations()
26 JSArrayBuffer::FreeBackingStore(heap_->isolate(), alloc); in FreeAllocations()
Darray-buffer-collector.h31 std::vector<JSArrayBuffer::Allocation> allocations);
45 std::vector<std::vector<JSArrayBuffer::Allocation>> allocations_;
/external/v8/src/
Dfutex-emulation.h36 class JSArrayBuffer; variable
121 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.h26 class JSArrayBuffer; variable
81 Handle<JSArrayBuffer> array_buffer);
133 Maybe<bool> WriteJSArrayBuffer(Handle<JSArrayBuffer> array_buffer)
223 Handle<JSArrayBuffer> array_buffer);
277 MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer(bool is_shared)
279 MaybeHandle<JSArrayBuffer> ReadTransferredJSArrayBuffer()
282 Handle<JSArrayBuffer> buffer) V8_WARN_UNUSED_RESULT;
Dvalue-serializer.cc342 Handle<JSArrayBuffer> array_buffer) { in TransferArrayBuffer()
378 Handle<JSArrayBuffer> buffer( in WriteObject()
381 : handle(JSArrayBuffer::cast(view->buffer()), isolate_)); in WriteObject()
516 return WriteJSArrayBuffer(Handle<JSArrayBuffer>::cast(receiver)); in WriteJSReceiver()
812 Handle<JSArrayBuffer> array_buffer) { in WriteJSArrayBuffer()
1135 uint32_t transfer_id, Handle<JSArrayBuffer> array_buffer) { in TransferArrayBuffer()
1161 result = ReadJSArrayBufferView(Handle<JSArrayBuffer>::cast(object)); in ReadObject()
1650 MaybeHandle<JSArrayBuffer> ValueDeserializer::ReadJSArrayBuffer( in ReadJSArrayBuffer()
1661 RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate_, JSArrayBuffer); in ReadJSArrayBuffer()
1662 return MaybeHandle<JSArrayBuffer>(); in ReadJSArrayBuffer()
[all …]
Dfutex-emulation.cc90 Handle<JSArrayBuffer> array_buffer, size_t addr, in Wait()
239 Object* FutexEmulation::Wake(Handle<JSArrayBuffer> array_buffer, size_t addr, in Wake()
264 Object* FutexEmulation::NumWaitersForTesting(Handle<JSArrayBuffer> array_buffer, in NumWaitersForTesting()
/external/v8/src/builtins/
Dbuiltins-typed-array-gen.h36 TNode<JSArrayBuffer> buffer,
54 void AttachBuffer(TNode<JSTypedArray> holder, TNode<JSArrayBuffer> buffer,
73 TNode<JSArrayBuffer> LoadTypedArrayBuffer(TNode<JSTypedArray> typed_array) { in LoadTypedArrayBuffer()
74 return LoadObjectField<JSArrayBuffer>(typed_array, in LoadTypedArrayBuffer()
86 TNode<JSArrayBuffer> buffer,
95 TNode<JSArrayBuffer> GetBuffer(TNode<Context> context,
Dbuiltins-arraybuffer.cc45 if (!JSArrayBuffer::SetupAllocatingData(Handle<JSArrayBuffer>::cast(result), in ConstructBuffer()
97 CHECK_RECEIVER(JSArrayBuffer, array_buffer, kMethodName); in BUILTIN()
108 CHECK_RECEIVER(JSArrayBuffer, array_buffer, in BUILTIN()
131 CHECK_RECEIVER(JSArrayBuffer, array_buffer, kMethodName); in SliceHelper()
219 Handle<JSArrayBuffer> new_array_buffer = Handle<JSArrayBuffer>::cast(new_); in SliceHelper()
Dbuiltins-typed-array-gen.cc81 TNode<JSArrayBuffer> buffer, in AttachBuffer()
94 LoadObjectField<UintPtrT>(buffer, JSArrayBuffer::kBackingStoreOffset); in AttachBuffer()
108 TNode<JSArrayBuffer> buffer = CAST(Parameter(Descriptor::kBuffer)); in TF_BUILTIN()
178 Node* buffer = Allocate(JSArrayBuffer::kSizeWithEmbedderFields); in TF_BUILTIN()
190 StoreObjectFieldNoWriteBarrier(buffer, JSArrayBuffer::kBitFieldSlot, in TF_BUILTIN()
192 int32_t bitfield_value = (1 << JSArrayBuffer::IsExternal::kShift) | in TF_BUILTIN()
193 (1 << JSArrayBuffer::IsNeuterable::kShift); in TF_BUILTIN()
194 StoreObjectFieldNoWriteBarrier(buffer, JSArrayBuffer::kBitFieldOffset, in TF_BUILTIN()
198 StoreObjectFieldNoWriteBarrier(buffer, JSArrayBuffer::kByteLengthOffset, in TF_BUILTIN()
200 StoreObjectFieldNoWriteBarrier(buffer, JSArrayBuffer::kBackingStoreOffset, in TF_BUILTIN()
[all …]
Ddata-view.tq8 macro LoadArrayBufferViewBuffer(JSArrayBufferView): JSArrayBuffer;
14 macro LoadArrayBufferBackingStore(JSArrayBuffer): RawPtr;
84 context: Context, receiver: Object, ...arguments): JSArrayBuffer {
97 // here if the JSArrayBuffer of the {data_view} was neutered.
110 // here if the JSArrayBuffer of the {data_view} was neutered.
126 macro LoadDataView8(buffer: JSArrayBuffer, offset: intptr,
135 macro LoadDataView16(buffer: JSArrayBuffer, offset: intptr,
162 macro LoadDataView32(buffer: JSArrayBuffer, offset: intptr,
191 macro LoadDataViewFloat64(buffer: JSArrayBuffer, offset: intptr,
362 macro LoadDataViewBigInt(buffer: JSArrayBuffer, offset: intptr,
[all …]
Dbuiltins-dataview.cc43 Handle<JSArrayBuffer> array_buffer = Handle<JSArrayBuffer>::cast(buffer); in BUILTIN()
/external/v8/src/wasm/
Dwasm-memory.h130 MaybeHandle<JSArrayBuffer> NewArrayBuffer(
133 Handle<JSArrayBuffer> SetupArrayBuffer(
137 void DetachMemoryBuffer(Isolate* isolate, Handle<JSArrayBuffer> buffer,
Dwasm-memory.cc249 Handle<JSArrayBuffer> SetupArrayBuffer(Isolate* isolate, void* backing_store, in SetupArrayBuffer()
252 Handle<JSArrayBuffer> buffer = in SetupArrayBuffer()
255 JSArrayBuffer::Setup(buffer, isolate, is_external, backing_store, size, in SetupArrayBuffer()
262 MaybeHandle<JSArrayBuffer> NewArrayBuffer(Isolate* isolate, size_t size, in NewArrayBuffer()
310 void DetachMemoryBuffer(Isolate* isolate, Handle<JSArrayBuffer> buffer, in DetachMemoryBuffer()
Dwasm-objects.h37 class JSArrayBuffer; variable
286 DECL_ACCESSORS(array_buffer, JSArrayBuffer)
315 Isolate* isolate, MaybeHandle<JSArrayBuffer> buffer, int32_t maximum);
325 DECL_ACCESSORS(array_buffer, JSArrayBuffer)
351 Isolate* isolate, MaybeHandle<JSArrayBuffer> buffer, wasm::ValueType type,
382 DECL_OPTIONAL_ACCESSORS(globals_buffer, JSArrayBuffer)
Dmodule-compiler.cc216 MaybeHandle<JSArrayBuffer> memory);
244 MaybeHandle<JSArrayBuffer> memory_;
245 Handle<JSArrayBuffer> globals_;
302 MaybeHandle<JSArrayBuffer> FindImportedMemoryBuffer() const;
316 Handle<JSArrayBuffer> AllocateMemory(uint32_t num_pages);
334 MaybeHandle<JSArrayBuffer> memory) { in InstantiateToInstanceObject()
423 byte* raw_buffer_ptr(MaybeHandle<JSArrayBuffer> buffer, int offset) { in raw_buffer_ptr()
943 MaybeHandle<JSArrayBuffer> memory) in InstanceBuilder()
992 Handle<JSArrayBuffer> memory = memory_.ToHandleChecked(); in Build()
1050 MaybeHandle<JSArrayBuffer> old_globals; in Build()
[all …]
Dwasm-objects.cc878 MaybeHandle<JSArrayBuffer> GrowMemoryBuffer(Isolate* isolate, in GrowMemoryBuffer()
879 Handle<JSArrayBuffer> old_buffer, in GrowMemoryBuffer()
920 Handle<JSArrayBuffer> new_buffer = in GrowMemoryBuffer()
926 Handle<JSArrayBuffer> new_buffer; in GrowMemoryBuffer()
950 Handle<JSArrayBuffer> buffer) { in SetInstanceMemory()
972 Isolate* isolate, MaybeHandle<JSArrayBuffer> maybe_buffer, in New()
983 Handle<JSArrayBuffer> buffer; in New()
1035 Handle<JSArrayBuffer> buffer(memory->array_buffer(), isolate); in AddInstance()
1050 Handle<JSArrayBuffer> old_buffer(memory_object->array_buffer(), isolate); in Grow()
1055 Handle<JSArrayBuffer> new_buffer; in Grow()
[all …]
Dwasm-objects-inl.h87 ACCESSORS(WasmMemoryObject, array_buffer, JSArrayBuffer, kArrayBufferOffset) in ACCESSORS()
92 ACCESSORS(WasmGlobalObject, array_buffer, JSArrayBuffer, kArrayBufferOffset) in ACCESSORS()
174 OPTIONAL_ACCESSORS(WasmInstanceObject, globals_buffer, JSArrayBuffer, in PRIMITIVE_ACCESSORS()
Dmodule-compiler.h20 class JSArrayBuffer; variable
59 MaybeHandle<JSArrayBuffer> memory);
/external/v8/src/asmjs/
Dasm-js.h17 class JSArrayBuffer; variable
33 Handle<JSArrayBuffer> memory);

123