/arkcompiler/ets_runtime/ecmascript/ |
D | js_arraybuffer.cpp | 53 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()
|
D | js_serializer.cpp | 709 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/ |
D | SamplerModuleFileCheck.py | 22 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/ |
D | performance_entry.py | 22 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/ |
D | value_serializer.cpp | 311 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()
|
D | base_deserializer.cpp | 263 …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 276 … np = 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/ |
D | XMat4.js | 123 this.mat = np.dot(m4.mat, this.mat);
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/ |
D | jsvaluerefismodulenamespace_fuzzer.cpp | 57 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/ |
D | linker_context.cpp | 303 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/ |
D | js_serializer_test.cpp | 525 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/ |
D | ecma_module_test.cpp | 264 JSHandle<ModuleNamespace> np = in HWTEST_F_L0() local 266 EXPECT_FALSE(np->IsExtensible()); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/docs/ |
D | deoptimization.md | 25 3. create StateStamp(in compile time) for this address(np - native pc)
|
/arkcompiler/ets_runtime/ecmascript/serializer/tests/ |
D | serializer_test.cpp | 533 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/ |
D | jsnapi_second_tests.cpp | 1163 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/ |
D | js_module_source_text.cpp | 871 JSHandle<ModuleNamespace> np = in GetModuleNamespace() local 873 moduleNamespace.Update(np.GetTaggedValue()); in GetModuleNamespace()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 25736 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/ |
D | index.js | 2 …np(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(le=fe(t.aliasTypeArguments,r.aliasTypeArgu… function
|