Home
last modified time | relevance | path

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

12

/external/v8/test/cctest/heap/
Dtest-array-buffer-tracker.cc13 bool IsTracked(i::JSArrayBuffer* buf) { in IsTracked()
31 JSArrayBuffer* raw_ab = nullptr; in TEST()
35 Handle<JSArrayBuffer> buf = v8::Utils::OpenHandle(*ab); in TEST()
58 JSArrayBuffer* raw_ab = nullptr; in TEST()
62 Handle<JSArrayBuffer> buf = v8::Utils::OpenHandle(*ab); in TEST()
87 JSArrayBuffer* raw_ab = nullptr; in TEST()
91 Handle<JSArrayBuffer> buf = v8::Utils::OpenHandle(*ab); in TEST()
122 Handle<JSArrayBuffer> buf1 = v8::Utils::OpenHandle(*ab1); in TEST()
160 Handle<JSArrayBuffer> buf = v8::Utils::OpenHandle(*ab); in TEST()
167 Handle<JSArrayBuffer> buf2 = v8::Utils::OpenHandle(*ab2); in TEST()
[all …]
Dtest-page-promotion.cc104 Handle<JSArrayBuffer> buffer = in UNINITIALIZED_TEST()
106 JSArrayBuffer::SetupAllocatingData(buffer, i_isolate, 100); in UNINITIALIZED_TEST()
/external/v8/src/heap/
Darray-buffer-tracker.h18 class JSArrayBuffer; variable
33 inline static void RegisterNew(Heap* heap, JSArrayBuffer* buffer);
34 inline static void Unregister(Heap* heap, JSArrayBuffer* buffer);
54 static bool IsTracked(JSArrayBuffer* buffer);
63 typedef JSArrayBuffer* Key;
Darray-buffer-tracker.cc39 JSArrayBuffer* new_buffer = nullptr; in Process()
112 [mode](JSArrayBuffer* old_buffer, JSArrayBuffer** new_buffer) { in ProcessBuffers()
115 *new_buffer = JSArrayBuffer::cast(map_word.ToForwardingAddress()); in ProcessBuffers()
125 bool ArrayBufferTracker::IsTracked(JSArrayBuffer* buffer) { in IsTracked()
Darray-buffer-tracker-inl.h13 void ArrayBufferTracker::RegisterNew(Heap* heap, JSArrayBuffer* buffer) { in RegisterNew()
35 void ArrayBufferTracker::Unregister(Heap* heap, JSArrayBuffer* buffer) { in Unregister()
Dobjects-visiting-inl.h82 &FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, in Initialize()
178 &FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, in Initialize()
Dobjects-visiting.h92 V(JSArrayBuffer) \
/external/v8/src/
Dfutex-emulation.h35 class JSArrayBuffer; variable
97 static Object* Wait(Isolate* isolate, Handle<JSArrayBuffer> array_buffer,
103 static Object* Wake(Isolate* isolate, Handle<JSArrayBuffer> array_buffer,
112 Handle<JSArrayBuffer> array_buffer, size_t addr,
119 Handle<JSArrayBuffer> array_buffer,
Dfutex-emulation.cc76 Handle<JSArrayBuffer> array_buffer, size_t addr, in Wait()
192 Handle<JSArrayBuffer> array_buffer, size_t addr, in Wake()
217 Handle<JSArrayBuffer> array_buffer, in WakeOrRequeue()
255 Handle<JSArrayBuffer> array_buffer, in NumWaitersForTesting()
Dapi.h151 V(ArrayBuffer, JSArrayBuffer) \
164 V(SharedArrayBuffer, JSArrayBuffer) \
216 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
243 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
365 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) in MAKE_TO_LOCAL()
369 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) in MAKE_TO_LOCAL()
Dfactory.h459 Handle<JSArrayBuffer> NewJSArrayBuffer(
471 Handle<JSArrayBuffer> buffer,
481 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
Dapi.cc2936 return obj->IsJSArrayBuffer() && !i::JSArrayBuffer::cast(*obj)->is_shared(); in IsArrayBuffer()
2970 return obj->IsJSArrayBuffer() && i::JSArrayBuffer::cast(*obj)->is_shared(); in IsSharedArrayBuffer()
3335 obj->IsJSArrayBuffer() && !i::JSArrayBuffer::cast(*obj)->is_shared(), in CheckCast()
3382 obj->IsJSArrayBuffer() && i::JSArrayBuffer::cast(*obj)->is_shared(), in CheckCast()
6744 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); in Externalize()
6756 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); in GetContents()
6766 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this); in Neuter()
6780 i::Handle<i::JSArrayBuffer> obj = Utils::OpenHandle(this); in ByteLength()
6789 i::Handle<i::JSArrayBuffer> obj = in New()
6791 i::JSArrayBuffer::SetupAllocatingData(obj, i_isolate, byte_length); in New()
[all …]
Dobjects-body-descriptors-inl.h160 class JSArrayBuffer::BodyDescriptor final : public BodyDescriptorBase {
486 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3); in BodyDescriptorApply()
Dfactory.cc1694 Handle<JSArrayBuffer> Factory::NewJSArrayBuffer(SharedFlag shared, in NewJSArrayBuffer()
1702 JSArrayBuffer); in NewJSArrayBuffer()
1841 i::Handle<i::JSArrayBuffer> buffer, in SetupArrayBufferView()
1884 Handle<JSArrayBuffer> buffer, in NewJSTypedArray()
1933 Handle<JSArrayBuffer> buffer = in NewJSTypedArray()
1935 JSArrayBuffer::Setup(buffer, isolate(), true, NULL, byte_length, in NewJSTypedArray()
1945 Handle<JSDataView> Factory::NewJSDataView(Handle<JSArrayBuffer> buffer, in NewJSDataView()
Dobjects-inl.h815 TYPE_CHECKER(JSArrayBuffer, JS_ARRAY_BUFFER_TYPE) in TYPE_CHECKER()
2047 return JSArrayBuffer::kSize; in GetHeaderSize()
3169 CAST_ACCESSOR(JSArrayBuffer)
6586 void* JSArrayBuffer::backing_store() const { in ACCESSORS()
6592 void JSArrayBuffer::set_backing_store(void* value, WriteBarrierMode mode) { in set_backing_store()
6598 ACCESSORS(JSArrayBuffer, byte_length, Object, kByteLengthOffset) in ACCESSORS() argument
6601 void JSArrayBuffer::set_bit_field(uint32_t bits) { in ACCESSORS()
6613 uint32_t JSArrayBuffer::bit_field() const { in bit_field()
6618 bool JSArrayBuffer::is_external() { return IsExternal::decode(bit_field()); } in is_external()
6621 void JSArrayBuffer::set_is_external(bool value) { in set_is_external()
[all …]
Dobjects-printer.cc186 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); in HeapObjectPrint()
879 void JSArrayBuffer::JSArrayBufferPrint(std::ostream& os) { // NOLINT in JSArrayBufferPrint()
Dobjects-debug.cc182 JSArrayBuffer::cast(this)->JSArrayBufferVerify(); in HeapObjectVerify()
845 void JSArrayBuffer::JSArrayBufferVerify() { in JSArrayBufferVerify()
/external/v8/src/runtime/
Druntime-typedarray.cc19 CONVERT_ARG_CHECKED(JSArrayBuffer, holder, 0); in RUNTIME_FUNCTION()
27 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, source, 0); in RUNTIME_FUNCTION()
28 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, target, 1); in RUNTIME_FUNCTION()
60 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, array_buffer, 0); in RUNTIME_FUNCTION()
124 Handle<JSArrayBuffer> buffer = Handle<JSArrayBuffer>::cast(maybe_buffer); in RUNTIME_FUNCTION()
154 Handle<JSArrayBuffer> buffer = Handle<JSArrayBuffer>::cast(maybe_buffer); in RUNTIME_FUNCTION()
163 Handle<JSArrayBuffer> buffer = isolate->factory()->NewJSArrayBuffer(); in RUNTIME_FUNCTION()
164 JSArrayBuffer::Setup(buffer, isolate, true, NULL, byte_length, in RUNTIME_FUNCTION()
200 Handle<JSArrayBuffer> buffer = isolate->factory()->NewJSArrayBuffer(); in RUNTIME_FUNCTION()
239 if (!JSArrayBuffer::SetupAllocatingData(buffer, isolate, byte_length, in RUNTIME_FUNCTION()
[all …]
Druntime-futex.cc32 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION()
49 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION()
69 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION()
87 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION()
Druntime-maths.cc105 Handle<JSArrayBuffer> buffer = in RUNTIME_FUNCTION()
107 JSArrayBuffer::SetupAllocatingData(buffer, isolate, kByteLength, true, in RUNTIME_FUNCTION()
/external/v8/src/wasm/
Dwasm-module.h228 Handle<JSArrayBuffer> memory) const;
247 Handle<JSArrayBuffer> mem_buffer; // Handle to array buffer of memory.
248 Handle<JSArrayBuffer> globals_buffer; // Handle to array buffer of globals.
Dwasm-module.cc164 Handle<JSArrayBuffer> NewArrayBuffer(Isolate* isolate, size_t size, in NewArrayBuffer()
169 return Handle<JSArrayBuffer>::null(); in NewArrayBuffer()
173 return Handle<JSArrayBuffer>::null(); in NewArrayBuffer()
186 Handle<JSArrayBuffer> buffer = isolate->factory()->NewJSArrayBuffer(); in NewArrayBuffer()
187 JSArrayBuffer::Setup(buffer, isolate, false, memory, static_cast<int>(size)); in NewArrayBuffer()
207 void SetMemory(WasmModuleInstance* instance, Handle<JSArrayBuffer> memory) { in SetMemory()
767 Handle<JSArrayBuffer> memory) const { in Instantiate()
1063 Handle<JSArrayBuffer>::null()) in CompileAndRunWasmModule()
Dwasm-js.cc188 i::Handle<i::JSArrayBuffer> memory = i::Handle<i::JSArrayBuffer>::null(); in InstantiateModuleCommon()
192 memory = i::Handle<i::JSArrayBuffer>(i::JSArrayBuffer::cast(*mem_obj)); in InstantiateModuleCommon()
/external/v8/test/unittests/compiler/
Djs-typed-lowering-unittest.cc96 Handle<JSArrayBuffer> NewArrayBuffer(void* bytes, size_t byte_length) { in NewArrayBuffer()
97 Handle<JSArrayBuffer> buffer = factory()->NewJSArrayBuffer(); in NewArrayBuffer()
98 JSArrayBuffer::Setup(buffer, isolate(), true, bytes, byte_length); in NewArrayBuffer()
592 Handle<JSArrayBuffer> buffer = in TEST_F()
631 Handle<JSArrayBuffer> buffer = in TEST_F()
669 Handle<JSArrayBuffer> buffer = in TEST_F()
713 Handle<JSArrayBuffer> buffer = in TEST_F()
764 Handle<JSArrayBuffer> buffer = in TEST_F()
/external/v8/src/compiler/
Daccess-builder.cc211 JSArrayBuffer::kBackingStoreOffset, in ForJSArrayBufferBackingStore()
222 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBitFieldOffset, in ForJSArrayBufferBitField()

12