Home
last modified time | relevance | path

Searched refs:JSNativePointer (Results 1 – 25 of 42) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
Djs_arraybuffer.cpp31 void *fromBuf = JSNativePointer::Cast(fromBlock.GetTaggedObject())->GetExternalPointer(); in CopyDataBlockBytes()
32 void *toBuf = JSNativePointer::Cast(toBlock.GetTaggedObject())->GetExternalPointer(); in CopyDataBlockBytes()
53 JSHandle<JSNativePointer> np(thread, arrayBufferData.GetTaggedObject()); in Attach()
73 JSHandle<JSNativePointer> np(thread, arrayBufferData.GetTaggedObject()); in Detach()
Dobject_factory-inl.h64 JSHandle<JSNativePointer> ObjectFactory::NewJSNativePointer(void *externalPointer, in NewJSNativePointer()
78 JSHandle<JSNativePointer> obj(thread_, header); in NewJSNativePointer()
86 vm_->PushToNativePointerList(static_cast<JSNativePointer *>(header)); in NewJSNativePointer()
112 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSIntlIcuData()
116 JSHandle<JSNativePointer> pointer = NewJSNativePointer(icuPoint, callback, vm_); in NewJSIntlIcuData()
Djs_native_pointer.h26 class JSNativePointer : public TaggedObject {
28 static JSNativePointer *Cast(TaggedObject *object) in Cast()
31 return reinterpret_cast<JSNativePointer *>(object); in Cast()
Daccessor_data.h52 JSNativePointer *getter = JSNativePointer::Cast(GetGetter().GetTaggedObject()); in CallInternalGet()
61 JSNativePointer *setter = JSNativePointer::Cast(GetSetter().GetTaggedObject());
Djs_plural_rules.cpp30 auto result = JSNativePointer::Cast(GetIcuNF().GetTaggedObject())->GetExternalPointer(); in GetIcuNumberFormatter()
57 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuNumberFormatter()
61 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuPointer, callback, ecmaVm); in SetIcuNumberFormatter()
68 auto result = JSNativePointer::Cast(GetIcuPR().GetTaggedObject())->GetExternalPointer(); in GetIcuPluralRules()
95 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuPluralRules()
99 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuPointer, callback, ecmaVm); in SetIcuPluralRules()
Decma_vm.cpp380 JSNativePointer *object = *iter; in ProcessNativeDelete()
401 JSNativePointer *object = *iter; in ProcessReferences()
408 heap_->IncreaseNativeBindingSize(JSNativePointer::Cast(fwd)); in ProcessReferences()
410 *iter = JSNativePointer::Cast(fwd); in ProcessReferences()
417 void EcmaVM::PushToNativePointerList(JSNativePointer *array) in PushToNativePointerList()
422 void EcmaVM::RemoveFromNativePointerList(JSNativePointer *array) in RemoveFromNativePointerList()
426 JSNativePointer *object = *iter; in RemoveFromNativePointerList()
601 JSHandle<JSNativePointer> extraInfo(thread_, extraInfoValue); in TriggerConcurrentCallback()
Decma_vm.h46 class JSNativePointer; variable
183 void PushToNativePointerList(JSNativePointer *array);
184 void RemoveFromNativePointerList(JSNativePointer *array);
443 CList<JSNativePointer *> nativePointerList_;
Djs_collator.h66 JSNativePointer *nativePointer = JSNativePointer::Cast(GetIcuField().GetTaggedObject()); in FIRST_BIT_FIELD()
Djs_displaynames.cpp51 auto result = JSNativePointer::Cast(GetIcuLDN().GetTaggedObject())->GetExternalPointer(); in GetIcuLocaleDisplayNames()
74 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuLocaleDisplayNames()
78 … JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(iculocaledisplaynames, callback); in SetIcuLocaleDisplayNames()
Djs_list_format.cpp42 auto result = JSNativePointer::Cast(GetIcuLF().GetTaggedObject())->GetExternalPointer(); in GetIcuListFormatter()
64 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuListFormatter()
68 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuListFormatter, callback); in SetIcuListFormatter()
Djs_relative_time_format.h73 auto result = JSNativePointer::Cast(GetIcuField().GetTaggedObject())->GetExternalPointer(); in GetIcuRTFFormatter()
Djs_serializer.cpp694 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(bufferValue); in WriteJSRegExp()
770 bool JSSerializer::WriteJSNativePointer(const JSHandle<JSNativePointer> &nativePtr) in WriteJSNativePointer()
831 JSHandle<JSNativePointer> np(thread_, arrayBuffer->GetArrayBufferData()); in WriteJSArrayBuffer()
976 DetachFunc detachNative = reinterpret_cast<DetachFunc>(JSNativePointer::Cast( in WriteNativeBindingObject()
982 AttachFunc attachNative = reinterpret_cast<AttachFunc>(JSNativePointer::Cast( in WriteNativeBindingObject()
1749 JSHandle<JSNativePointer> np = factory_->NewJSNativePointer(ToVoidPtr(externalPtr), in ReadJSNativePointer()
1794JSNativePointer* np = JSNativePointer::Cast(arrayBuffer->GetArrayBufferData().GetTaggedObject()); in ReadJSArrayBuffer()
Djs_collator.cpp70 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuCollator()
74 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuCollator, callback); in SetIcuCollator()
Djs_date_time_format.cpp96 auto result = JSNativePointer::Cast(GetLocaleIcu().GetTaggedObject())->GetExternalPointer(); in GetIcuLocale()
110 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuLocale()
114 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuPointer, callback, ecmaVm); in SetIcuLocale()
133 …auto result = JSNativePointer::Cast(GetSimpleDateTimeFormatIcu().GetTaggedObject())->GetExternalPo… in GetIcuSimpleDateFormat()
148 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in SetIcuSimpleDateFormat()
154 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuPointer, callback, ecmaVm, in SetIcuSimpleDateFormat()
Djs_number_format.h97 auto result = JSNativePointer::Cast(GetIcuField().GetTaggedObject())->GetExternalPointer(); in FIRST_BIT_FIELD()
Djs_serializer.h144 bool WriteJSNativePointer(const JSHandle<JSNativePointer> &value);
/arkcompiler/ets_runtime/ecmascript/tests/
Dgc_test.cpp191 [[maybe_unused]] JSHandle<JSNativePointer> obj = factory->NewJSNativePointer(newData, in HWTEST_F_L0()
197 [[maybe_unused]] JSHandle<JSNativePointer> obj2 = factory->NewJSNativePointer(newData1, in HWTEST_F_L0()
204 [[maybe_unused]] JSHandle<JSNativePointer> obj3 = factory->NewJSNativePointer(newData2, in HWTEST_F_L0()
226 [[maybe_unused]] JSHandle<JSNativePointer> obj = factory->NewJSNativePointer(newData, in HWTEST_F_L0()
232 [[maybe_unused]] JSHandle<JSNativePointer> obj2 = factory->NewJSNativePointer(newData1, in HWTEST_F_L0()
240 [[maybe_unused]] JSHandle<JSNativePointer> obj3 = factory->NewJSNativePointer(newData2, in HWTEST_F_L0()
265 [[maybe_unused]] JSHandle<JSNativePointer> obj = factory->NewJSNativePointer(newData, in HWTEST_F_L0()
271 [[maybe_unused]] JSHandle<JSNativePointer> obj2 = factory->NewJSNativePointer(newData1, in HWTEST_F_L0()
278 [[maybe_unused]] JSHandle<JSNativePointer> obj3 = factory->NewJSNativePointer(newData2, in HWTEST_F_L0()
300 [[maybe_unused]] JSHandle<JSNativePointer> obj = factory->NewJSNativePointer(newData, in HWTEST_F_L0()
[all …]
Djs_array_buffer_test.cpp64 …JSHandle<JSNativePointer> toNativePointer = factory->NewJSNativePointer(toBuffer, nullptr, nullptr… in HWTEST_F_L0()
71 JSHandle<JSNativePointer> fromNativePointer = in HWTEST_F_L0()
107 JSHandle<JSNativePointer> nativePointer = in HWTEST_F_L0()
Djs_serializer_test.cpp505 auto np = JSHandle<JSNativePointer>::Cast(bufferData); in JSArrayBufferTest()
509 JSHandle<JSNativePointer> resNp = JSHandle<JSNativePointer>::Cast(resBufferData); in JSArrayBufferTest()
537 auto np = JSHandle<JSNativePointer>::Cast(bufferData); in JSSharedArrayBufferTest()
541 JSHandle<JSNativePointer> resNp = JSHandle<JSNativePointer>::Cast(resBufferData); in JSSharedArrayBufferTest()
566 JSHandle<JSNativePointer> resNp = JSHandle<JSNativePointer>::Cast(resBufferData); in JSSharedArrayBufferTest1()
600 JSHandle<JSNativePointer> resNp = JSHandle<JSNativePointer>::Cast(resBufferData); in JSRegexpTest()
641 JSHandle<JSNativePointer> resNp = JSHandle<JSNativePointer>::Cast(resBufferData); in TypedArrayTest1()
849 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest1()
868 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest2()
917 JSHandle<JSNativePointer> resNp = JSHandle<JSNativePointer>::Cast(resBufferData); in TransferJSArrayBufferTest4()
[all …]
Daccessor_data_test.cpp190 JSHandle<JSNativePointer> prototypeGetterFuncNativePtrHandle = in HWTEST_F_L0()
199 JSHandle<JSNativePointer> prototypeSetterFuncNativePtrHandle = in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp140 JSNativePointer *extraInfo = JSNativePointer::Cast(extraInfoValue.GetTaggedObject()); in GetNativeStack()
277 JSNativePointer *extraInfo = JSNativePointer::Cast(extraInfoValue.GetTaggedObject()); in GetMethodIdentifier()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dscope_info_extractor.cpp58 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer( in GenerateScopeInfo()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtyped_array_stub_builder.h69 GateRef offset = IntPtr(JSNativePointer::POINTER_OFFSET); in GetExternalPointer()
/arkcompiler/ets_runtime/ecmascript/mem/
Dheap.h40 class JSNativePointer; variable
492 void IncreaseNativeBindingSize(JSNativePointer *object);
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_namespace.cpp337 JSHandle<JSNativePointer> registerPointer = factory->NewJSNativePointer( in SetModuleDeregisterProcession()

12