Home
last modified time | relevance | path

Searched refs:np (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_arraybuffer.cpp53 JSHandle<JSNativePointer> np(thread, arrayBufferData.GetTaggedObject()); in Attach() local
55 allocator->IncreaseNativeMemoryUsage(MallocUsableSize(np->GetExternalPointer())); in Attach()
56 np->SetData(allocator); in Attach()
73 JSHandle<JSNativePointer> np(thread, arrayBufferData.GetTaggedObject()); in Detach() local
75 allocator->DecreaseNativeMemoryUsage(MallocUsableSize(np->GetExternalPointer())); in Detach()
76 np->SetData(nullptr); in Detach()
Djs_serializer.cpp709 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(bufferValue); in WriteJSRegExp() local
710 void *dynBuffer = np->GetExternalPointer(); in WriteJSRegExp()
846 JSHandle<JSNativePointer> np(thread_, arrayBuffer->GetArrayBufferData()); in WriteJSArrayBuffer() local
848 void *buffer = np->GetExternalPointer(); in WriteJSArrayBuffer()
856 if (!WriteJSNativePointer(np)) { in WriteJSArrayBuffer()
862 void *buffer = np->GetExternalPointer(); in WriteJSArrayBuffer()
1772 JSHandle<JSNativePointer> np = factory_->NewJSNativePointer(ToVoidPtr(externalPtr), in ReadJSNativePointer() local
1777 return JSHandle<JSTaggedValue>::Cast(np); in ReadJSNativePointer()
1805 JSHandle<JSTaggedValue> np = ReadJSNativePointer(); in ReadJSArrayBuffer() local
1806 if (np.IsEmpty()) { in ReadJSArrayBuffer()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/
DSamplerModuleFileCheck.py22 import numpy as np namespace
49 checksum = np.fromfile(file, dtype=np.uint32, count=1, sep='', offset=checksum_offset)
88 checksum: numpy.uint32 = np.uint32(line_content[0])
/arkcompiler/ets_frontend/test/scripts/performance_test/
Dperformance_entry.py22 import numpy as np namespace
63 performance_config.BuildMode.DEBUG:[np.nan, np.nan, np.nan],
64 performance_config.BuildMode.RELEASE:[np.nan, np.nan, np.nan]
/arkcompiler/ets_runtime/ecmascript/serializer/
Dvalue_serializer.cpp311 JSNativePointer *np = in SerializeJSArrayBufferPrologue() local
313 data_->WriteRawData(static_cast<uint8_t *>(np->GetExternalPointer()), arrayLength); in SerializeJSArrayBufferPrologue()
335 …JSNativePointer *np = reinterpret_cast<JSNativePointer *>(arrayBuffer->GetArrayBufferData().GetTag… in SerializeJSSharedArrayBufferPrologue() local
336 void *buffer = np->GetExternalPointer(); in SerializeJSSharedArrayBufferPrologue()
369 JSNativePointer *np = in SerializeJSRegExpPrologue() local
371 data_->WriteRawData(static_cast<uint8_t *>(np->GetExternalPointer()), bufferSize); in SerializeJSRegExpPrologue()
Dbase_deserializer.cpp263 …JSNativePointer *np = reinterpret_cast<JSNativePointer *>(arrayBuffer->GetArrayBufferData().GetTag… in TransferArrayBufferAttach() local
264 arrayBuffer->Attach(thread_, arrayLength, JSTaggedValue(np), withNativeAreaAllocator); in TransferArrayBufferAttach()
272 JSNativePointer *np = nullptr; in ResetNativePointerBuffer() local
276np = reinterpret_cast<JSNativePointer *>(arrayBuffer->GetArrayBufferData().GetTaggedObject()); in ResetNativePointerBuffer()
280 np = reinterpret_cast<JSNativePointer *>(jsRegExp->GetByteCodeBuffer().GetTaggedObject()); in ResetNativePointerBuffer()
284 np->SetExternalPointer(bufferPointer); in ResetNativePointerBuffer()
285 np->SetDeleter(NativeAreaAllocator::FreeBufferFunc); in ResetNativePointerBuffer()
286 np->SetData(thread_->GetEcmaVM()->GetNativeAreaAllocator()); in ResetNativePointerBuffer()
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/
DXMat4.js123 this.mat = np.dot(m4.mat, this.mat);
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp57 JSHandle<ModuleNamespace> np = ModuleNamespace::ModuleNamespaceCreate(vm->GetJSThread(), in IsModuleNamespaceObjectFuzztest() local
60 JSHandle<JSTaggedValue> moduleNamespaceTag = JSHandle<JSTaggedValue>::Cast(np); in IsModuleNamespaceObjectFuzztest()
/arkcompiler/runtime_core/static_core/static_linker/
Dlinker_context.cpp303 auto np = nm->GetProto(); in TryFindMethod() local
307 if (op->GetRefTypes().size() != np->GetRefTypes().size()) { in TryFindMethod()
311 if (op->GetShorty() != np->GetShorty()) { in TryFindMethod()
317 if (!IsSameType(np->GetRefTypes()[i], op->GetRefTypes()[i])) { in TryFindMethod()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_serializer_test.cpp525 auto np = JSHandle<JSNativePointer>::Cast(bufferData); in JSArrayBufferTest() local
526 void *buffer = np->GetExternalPointer(); in JSArrayBufferTest()
557 auto np = JSHandle<JSNativePointer>::Cast(bufferData); in JSSharedArrayBufferTest() local
558 void *buffer = np->GetExternalPointer(); in JSSharedArrayBufferTest()
886 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest1() local
887 uintptr_t bufferAddr = reinterpret_cast<uintptr_t>(np->GetExternalPointer()); in TransferJSArrayBufferTest1()
905 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest2() local
906 uintptr_t bufferAddr = reinterpret_cast<uintptr_t>(np->GetExternalPointer()); in TransferJSArrayBufferTest2()
939 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest4() local
940 uintptr_t bufferAddr = reinterpret_cast<uintptr_t>(np->GetExternalPointer()); in TransferJSArrayBufferTest4()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp264 JSHandle<ModuleNamespace> np = in HWTEST_F_L0() local
266 EXPECT_FALSE(np->IsExtensible()); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/docs/
Ddeoptimization.md25 3. create StateStamp(in compile time) for this address(np - native pc)
/arkcompiler/ets_runtime/ecmascript/serializer/tests/
Dserializer_test.cpp533 auto np = JSHandle<JSNativePointer>::Cast(bufferData); in JSSharedArrayBufferTest() local
534 void *buffer = np->GetExternalPointer(); in JSSharedArrayBufferTest()
841 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest1() local
842 uintptr_t bufferAddr = reinterpret_cast<uintptr_t>(np->GetExternalPointer()); in TransferJSArrayBufferTest1()
862 JSHandle<JSNativePointer> np = JSHandle<JSNativePointer>::Cast(nativePtr); in TransferJSArrayBufferTest2() local
863 uintptr_t bufferAddr = reinterpret_cast<uintptr_t>(np->GetExternalPointer()); in TransferJSArrayBufferTest2()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_second_tests.cpp1163 JSHandle<ModuleNamespace> np = in HWTEST_F_L0() local
1166 JSHandle<JSTaggedValue> moduleNamespaceTag = JSHandle<JSTaggedValue>::Cast(np); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp871 JSHandle<ModuleNamespace> np = in GetModuleNamespace() local
873 moduleNamespace.Update(np.GetTaggedValue()); in GetModuleNamespace()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js25736 function np(t) { function
25766 const n = 2 * np(e);
25773 g = m < 0 ? np(-m) : -np(m);
25780 g = np(-m + t);
25781 y = np(m + t);
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2np(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(le=fe(t.aliasTypeArguments,r.aliasTypeArgu… function