Home
last modified time | relevance | path

Searched full:vm (Results 1 – 25 of 774) sorted by relevance

12345678910>>...31

/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi_expo.h222 Local(const EcmaVM *vm, const Global<T> &current);
224 Local(const EcmaVM *vm, const CopyableGlobal<T> &current);
308 CopyableGlobal(const EcmaVM *vm, const Local<S> &current);
310 CopyableGlobal(const EcmaVM *vm, const Local<T> &current);
406 Global(const EcmaVM *vm, const Local<S> &current);
408 Global(const EcmaVM *vm, const Global<S> &current);
420 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal() argument
422 return Local<T>(vm, *this); in ToLocal()
474 static Local<PrimitiveRef> Undefined(const EcmaVM *vm);
475 static Local<PrimitiveRef> Null(const EcmaVM *vm);
[all …]
Ddfx_jsnapi.h58 const EcmaVM *vm; member
65 …// isVmMode means the internal class in vm is visible. isPrivate means the number and string is no…
66 …static void DumpHeapSnapshot(const EcmaVM *vm, const std::string &path, const DumpSnapShotOption &…
67 …static void DumpHeapSnapshot(const EcmaVM *vm, Stream *stream, const DumpSnapShotOption &dumpOptio…
69 static void DumpCpuProfile(const EcmaVM *vm);
70 static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption);
71 …static void DumpHeapSnapshot(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_t tid);
72 …static void GenerateHeapSnapshotByBinFile(const EcmaVM *vm, std::string &inputFilePath, std::strin…
73 …static void DumpHeapSnapshotWithVm(const EcmaVM *vm, const DumpSnapShotOption &dumpOption, uint32_…
74 static void TriggerGC(const EcmaVM *vm, uint32_t tid);
[all …]
/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.cpp23 void DebuggerExecutor::Initialize(const EcmaVM *vm) in Initialize() argument
25 [[maybe_unused]] EcmaHandleScope handleScope(vm->GetJSThread()); in Initialize()
26 Local<ObjectRef> globalObj = JSNApi::GetGlobalObject(vm); in Initialize()
27 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "debuggerSetValue"), FunctionRef::New( in Initialize()
28 const_cast<panda::EcmaVM*>(vm), DebuggerExecutor::DebuggerSetValue)); in Initialize()
29 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "debuggerGetValue"), FunctionRef::New( in Initialize()
30 const_cast<panda::EcmaVM*>(vm), DebuggerExecutor::DebuggerGetValue)); in Initialize()
35 EcmaVM *vm = runtimeCallInfo->GetVM(); in DebuggerGetValue() local
38 return JSValueRef::Undefined(vm); in DebuggerGetValue()
41 if (!name->IsString(vm)) { in DebuggerGetValue()
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp152 Local<PrimitiveRef> JSValueRef::Undefined(const EcmaVM *vm) in Undefined() argument
155 vm->GetJSThread()->GlobalConstants()->GetHandledUndefined()); in Undefined()
158 Local<PrimitiveRef> JSValueRef::Null(const EcmaVM *vm) in Null() argument
161 vm->GetJSThread()->GlobalConstants()->GetHandledNull()); in Null()
164 Local<PrimitiveRef> JSValueRef::Hole(const EcmaVM *vm) in Hole() argument
167 vm->GetJSThread()->GlobalConstants()->GetHandledHole()); in Hole()
170 Local<PrimitiveRef> JSValueRef::True(const EcmaVM *vm) in True() argument
173 vm->GetJSThread()->GlobalConstants()->GetHandledTrue()); in True()
176 Local<PrimitiveRef> JSValueRef::False(const EcmaVM *vm) in False() argument
179 vm->GetJSThread()->GlobalConstants()->GetHandledFalse()); in False()
[all …]
Ddfx_jsnapi.cpp57 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const std::str… in DumpHeapSnapshot() argument
62 DumpHeapSnapshot(vm, &stream, dumpOption); in DumpHeapSnapshot()
69 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream *stream, in DumpHeapSnapshot() argument
75 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot()
84 void DFXJSNApi::DumpCpuProfile([[maybe_unused]] const EcmaVM *vm) in DumpCpuProfile() argument
90 if (DFXJSNApi::StopCpuProfilerForColdStart(vm)) { in DumpCpuProfile()
95 if (DFXJSNApi::CpuProfilerSamplingAnyTime(vm)) { in DumpCpuProfile()
105 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshot() argument
111 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in DumpHeapSnapshot()
118 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot()
[all …]
Djsnapi.cpp48 … bool StartDebug(const std::string& componentName, void* vm, bool isDebugMode, int32_t instanceId,
50 void StopDebug(void* vm);
51 void WaitForDebugger(void* vm);
147 …const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length) \
149 …CROSS_THREAD_AND_EXCEPTION_CHECK_WITH_RETURN(vm, JSValueRef::Undefined(vm)); \
150 …ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); \
151 …JSHandle<GlobalEnv> env = vm->GetGlobalEnv(); \
159 …RETURN_VALUE_IF_ABRUPT(thread, JSValueRef::Undefined(vm)); \
162 …RETURN_VALUE_IF_ABRUPT(thread, JSValueRef::Undefined(vm)); \
173 …const EcmaVM *vm, Local<SendableArrayBufferRef> buffer, int32_t byteOffset, int32_t length) \
[all …]
/arkcompiler/toolchain/tooling/
Ddebugger_service.cpp24 void InitializeDebugger(::panda::ecmascript::EcmaVM *vm, in InitializeDebugger() argument
27 if (vm == nullptr || vm->GetJsDebuggerManager() == nullptr) { in InitializeDebugger()
28 LOG_DEBUGGER(DEBUG) << "VM has already been destroyed"; in InitializeDebugger()
31 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in InitializeDebugger()
36 vm->GetJsDebuggerManager()->SetDebuggerHandler(new ProtocolHandler(onResponse, vm)); in InitializeDebugger()
39 void UninitializeDebugger(::panda::ecmascript::EcmaVM *vm) in UninitializeDebugger() argument
41 if (vm == nullptr || vm->GetJsDebuggerManager() == nullptr) { in UninitializeDebugger()
42 LOG_DEBUGGER(DEBUG) << "VM has already been destroyed"; in UninitializeDebugger()
45 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in UninitializeDebugger()
47 vm->GetJsDebuggerManager()->SetDebuggerHandler(nullptr); in UninitializeDebugger()
[all …]
/arkcompiler/ets_runtime/ecmascript/js_vm/
Dmain.cpp52 bool IsEqual(EcmaVM *vm, Local<JSValueRef> jsArg0, Local<JSValueRef> jsArg1) in IsEqual() argument
54 if (jsArg0->IsStrictEquals(vm, jsArg1)) { in IsEqual()
56 } else if ((jsArg0->IsJSArray(vm) && jsArg1->IsJSArray(vm))) { in IsEqual()
59 uint32_t length = arr0->Length(vm); in IsEqual()
60 if (length != arr1->Length(vm)) { in IsEqual()
64 Local<JSValueRef> arg0 = ArrayRef::GetValueAt(vm, arr0, i); in IsEqual()
65 Local<JSValueRef> arg1 = ArrayRef::GetValueAt(vm, arr1, i); in IsEqual()
66 if (!IsEqual(vm, arg0, arg1)) { in IsEqual()
77 EcmaVM *vm = runtimeInfo->GetVM(); in AssertEqual() local
82 auto error = panda::Exception::TypeError(vm, StringRef::NewFromUtf8(vm, errStr.c_str())); in AssertEqual()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp40 EcmaVM *vm = JSNApi::CreateJSVM(option); in IsModuleNamespaceObjectFuzztest() local
42 JsiFastNativeScope scope(vm); in IsModuleNamespaceObjectFuzztest()
47 ObjectFactory *objectFactory = vm->GetFactory(); in IsModuleNamespaceObjectFuzztest()
50 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry1, 0, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
52 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry2, 1, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
53 … JSHandle<TaggedArray> localExportEntries(vm->GetJSThread(), module->GetLocalExportEntries()); in IsModuleNamespaceObjectFuzztest()
56 … ModuleManager *moduleManager = vm->GetJSThread()->GetCurrentEcmaContext()->GetModuleManager(); in IsModuleNamespaceObjectFuzztest()
58 JSHandle<ModuleNamespace> np = ModuleNamespace::ModuleNamespaceCreate(vm->GetJSThread(), in IsModuleNamespaceObjectFuzztest()
63 moduleNamespace->IsModuleNamespaceObject(vm); in IsModuleNamespaceObjectFuzztest()
65 JSNApi::DestroyJSVM(vm); in IsModuleNamespaceObjectFuzztest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/templateclassglobal_fuzzer/
Dtemplateclassglobal_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in TemplateGlobalFuzzerTest() local
34 Local<BooleanRef> current = BooleanRef::New(vm, true); in TemplateGlobalFuzzerTest()
35 [[maybe_unused]]Global<JSValueRef> global(vm, current); in TemplateGlobalFuzzerTest()
36 JSNApi::DestroyJSVM(vm); in TemplateGlobalFuzzerTest()
43 EcmaVM *vm = JSNApi::CreateJSVM(option); in TemplateToLocalFuzzerTest() local
48 Global<BooleanRef> global(vm, BooleanRef::New(vm, true)); in TemplateToLocalFuzzerTest()
50 JSNApi::DestroyJSVM(vm); in TemplateToLocalFuzzerTest()
57 EcmaVM *vm = JSNApi::CreateJSVM(option); in TemplateToLocalFromVMFuzzerTest() local
62 Global<BooleanRef> global(vm, BooleanRef::New(vm, true)); in TemplateToLocalFromVMFuzzerTest()
63 [[maybe_unused]]Local<JSValueRef> local = global.ToLocal(vm); in TemplateToLocalFromVMFuzzerTest()
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_sample.cpp386 static std::vector<Local<SymbolRef>> GetSymbolRef(EcmaVM *vm) in GetSymbolRef() argument
389 …static std::vector<Local<SymbolRef>> value = { SymbolRef::New(vm, StringRef::NewFromUtf8(vm, "symb… in GetSymbolRef()
390 … SymbolRef::New(vm, StringRef::NewFromUtf8(vm, "symbolKey2")), in GetSymbolRef()
391 … SymbolRef::New(vm, StringRef::NewFromUtf8(vm, "symbolKey3")) }; in GetSymbolRef()
479 void ObjectRefSet(Local<ObjectRef> object, EcmaVM *vm, Local<SymbolRef> symbol) in ObjectRefSet() argument
483 bool b = object->Set(vm, cnt, StringRef::NewFromUtf8(vm, "TestValue1")); in ObjectRefSet()
485 …b = object->Set(vm, StringRef::NewFromUtf8(vm, "Test2"), StringRef::NewFromUtf8(vm, "TestValue2")); in ObjectRefSet()
487 …b = object->Set(vm, StringRef::NewFromUtf8(vm, "Test3"), StringRef::NewFromUtf8(vm, "TestValue3")); in ObjectRefSet()
489 b = object->Set(vm, symbol, StringRef::NewFromUtf8(vm, "symbolValue")); in ObjectRefSet()
492 Local<FunctionRef> getter1 = FunctionRef::New(vm, Getter1); in ObjectRefSet()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereffoundationvalue_fuzzer/
Djsvaluereffoundationvalue_fuzzer.cpp31 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsNumberValueFuzzTest() local
45 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefIsNumberValueFuzzTest()
50 Local<NumberRef> resUnit32 = NumberRef::New(vm, inputUnit32); in JSValueRefIsNumberValueFuzzTest()
55 Local<BooleanRef> resBool = BooleanRef::New(vm, inputBool); in JSValueRefIsNumberValueFuzzTest()
56 Local<StringRef> stringUtf8 = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in JSValueRefIsNumberValueFuzzTest()
61 JSNApi::DestroyJSVM(vm); in JSValueRefIsNumberValueFuzzTest()
68 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsStringValueFuzzTest() local
73 Local<JSValueRef> tag = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in JSValueRefIsStringValueFuzzTest()
74 tag->IsString(vm); in JSValueRefIsStringValueFuzzTest()
75 JSNApi::DestroyJSVM(vm); in JSValueRefIsStringValueFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefobject_fuzzer/
Djsvaluerefobject_fuzzer.cpp32 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsSymbolFuzzTest() local
37 Local<StringRef> description = StringRef::NewFromUtf8(vm, (char*)data, size); in JSValueRefIsSymbolFuzzTest()
38 Local<SymbolRef> symbol = SymbolRef::New(vm, description); in JSValueRefIsSymbolFuzzTest()
39 symbol->IsSymbol(vm); in JSValueRefIsSymbolFuzzTest()
40 JSNApi::DestroyJSVM(vm); in JSValueRefIsSymbolFuzzTest()
47 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsBigIntFuzzTest() local
53 Local<IntegerRef> intValue = IntegerRef::New(vm, input); in JSValueRefIsBigIntFuzzTest()
54 [[maybe_unused]]bool res = intValue->IsBigInt(vm); in JSValueRefIsBigIntFuzzTest()
55 JSNApi::DestroyJSVM(vm); in JSValueRefIsBigIntFuzzTest()
62 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsObjectFuzzTest() local
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_lazy_callback.cpp26 EcmaVM *vm = thread->GetEcmaVM(); in Date() local
27 ObjectFactory *factory = vm->GetFactory(); in Date()
28 auto env = vm->GetGlobalEnv(); in Date()
32 Builtins builtin(thread, factory, vm); in Date()
41 EcmaVM *vm = thread->GetEcmaVM(); in Set() local
42 ObjectFactory *factory = vm->GetFactory(); in Set()
43 auto env = vm->GetGlobalEnv(); in Set()
46 Builtins builtin(thread, factory, vm); in Set()
56 EcmaVM *vm = thread->GetEcmaVM(); in Map() local
57 ObjectFactory *factory = vm->GetFactory(); in Map()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/publicapilocalregexpref_fuzzer/
Dpublicapilocalregexpref_fuzzer.cpp31 EcmaVM *vm = JSNApi::CreateJSVM(option); in LocalRegExpGetOriginalSourceFuzzTest() local
33 JsiFastNativeScope scope(vm); in LocalRegExpGetOriginalSourceFuzzTest()
38 JSThread *thread = vm->GetJSThread(); in LocalRegExpGetOriginalSourceFuzzTest()
39 ObjectFactory *factory = vm->GetFactory(); in LocalRegExpGetOriginalSourceFuzzTest()
51 object->GetOriginalSource(vm); in LocalRegExpGetOriginalSourceFuzzTest()
53 JSNApi::DestroyJSVM(vm); in LocalRegExpGetOriginalSourceFuzzTest()
60 EcmaVM *vm = JSNApi::CreateJSVM(option); in LocalRegExpRefGetOriginalFlagsFuzzTest() local
62 JsiFastNativeScope scope(vm); in LocalRegExpRefGetOriginalFlagsFuzzTest()
67 JSThread *thread = vm->GetJSThread(); in LocalRegExpRefGetOriginalFlagsFuzzTest()
68 ObjectFactory *factory = vm->GetFactory(); in LocalRegExpRefGetOriginalFlagsFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisarray_fuzzer/
Djsvaluerefisarray_fuzzer.cpp28 EcmaVM *vm = JSNApi::CreateJSVM(option); in IsInt8ArrayFuzztest() local
34 …Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, … in IsInt8ArrayFuzztest()
35 Local<JSValueRef> typedArray = Int8ArrayRef::New(vm, arrayBuffer, 0, (int32_t)size); in IsInt8ArrayFuzztest()
36 typedArray->IsInt8Array(vm); in IsInt8ArrayFuzztest()
37 JSNApi::DestroyJSVM(vm); in IsInt8ArrayFuzztest()
44 EcmaVM *vm = JSNApi::CreateJSVM(option); in IsUint8ArrayFuzztest() local
50 …Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, … in IsUint8ArrayFuzztest()
51 Local<JSValueRef> typedArray = Uint8ArrayRef::New(vm, arrayBuffer, 0, (int32_t)size); in IsUint8ArrayFuzztest()
52 typedArray->IsUint8Array(vm); in IsUint8ArrayFuzztest()
53 JSNApi::DestroyJSVM(vm); in IsUint8ArrayFuzztest()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Decma_string_table.cpp161 auto vm = thread->GetEcmaVM(); in InternEmptyString() local
162 if (vm->IsCollectingScopeLockStats()) { in InternEmptyString()
163 vm->IncreaseStringTableLockCount(); in InternEmptyString()
178 EcmaString *EcmaStringTable::GetOrInternString(EcmaVM *vm, const JSHandle<EcmaString> &firstString, in GetOrInternString() argument
182 bool signalState = vm->GetJsDebuggerManager()->GetSignalState(); in GetOrInternString()
183 thread = signalState ? vm->GetJSThreadNoCheck() : vm->GetJSThread(); in GetOrInternString()
184 auto firstFlat = JSHandle<EcmaString>(thread, EcmaStringAccessor::Flatten(vm, firstString)); in GetOrInternString()
185 auto secondFlat = JSHandle<EcmaString>(thread, EcmaStringAccessor::Flatten(vm, secondString)); in GetOrInternString()
198 EcmaVM *vm = thread->GetEcmaVM(); in GetOrInternStringWithoutLock() local
199 auto firstFlat = JSHandle<EcmaString>(thread, EcmaStringAccessor::Flatten(vm, firstString)); in GetOrInternStringWithoutLock()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/arrayref_fuzzer/
Darrayref_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in ArrayRefNewFuzzerTest() local
34 ArrayRef::New(vm, (uint32_t)size); in ArrayRefNewFuzzerTest()
35 JSNApi::DestroyJSVM(vm); in ArrayRefNewFuzzerTest()
42 EcmaVM *vm = JSNApi::CreateJSVM(option); in ArrayRefGetValueAtFuzzerTest() local
43 Local<ObjectRef> globalObject = JSNApi::GetGlobalObject(vm); in ArrayRefGetValueAtFuzzerTest()
44 Local<ArrayRef> property = ArrayRef::New(vm, (uint32_t)size); in ArrayRefGetValueAtFuzzerTest()
49 … [[maybe_unused]]Local<JSValueRef> value = property->GetValueAt(vm, globalObject, (uint32_t)size); in ArrayRefGetValueAtFuzzerTest()
50 JSNApi::DestroyJSVM(vm); in ArrayRefGetValueAtFuzzerTest()
57 EcmaVM *vm = JSNApi::CreateJSVM(option); in ArrayRefLengthFuzzerTest() local
62 Local<ArrayRef> property = ArrayRef::New(vm, (uint32_t)size); in ArrayRefLengthFuzzerTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/promiseref_fuzzer/
Dpromiseref_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in PromiseRefCatchFuzzTest() local
36 Local<PromiseCapabilityRef> capability = PromiseCapabilityRef::New(vm); in PromiseRefCatchFuzzTest()
37 Local<PromiseRef> promise = capability->GetPromise(vm); in PromiseRefCatchFuzzTest()
39 Local<FunctionRef> reject = FunctionRef::New(vm, RejectCallback); in PromiseRefCatchFuzzTest()
40 promise->Catch(vm, reject); in PromiseRefCatchFuzzTest()
41 JSNApi::DestroyJSVM(vm); in PromiseRefCatchFuzzTest()
49 EcmaVM *vm = JSNApi::CreateJSVM(option); in PromiseRefThenFinallyFuzzTest() local
56 Local<PromiseCapabilityRef> capability = PromiseCapabilityRef::New(vm); in PromiseRefThenFinallyFuzzTest()
57 Local<PromiseRef> promise = capability->GetPromise(vm); in PromiseRefThenFinallyFuzzTest()
59 Local<FunctionRef> reject = FunctionRef::New(vm, RejectCallback); in PromiseRefThenFinallyFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/objectbool_fuzzer/
Dobjectbool_fuzzer.cpp28 EcmaVM *vm = JSNApi::CreateJSVM(option); in ObjectBoolGetFuzzTest() local
33 Local<ObjectRef> object = ObjectRef::New(vm); in ObjectBoolGetFuzzTest()
34 Local<JSValueRef> key = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in ObjectBoolGetFuzzTest()
35 object->Get(vm, key); in ObjectBoolGetFuzzTest()
36 JSNApi::DestroyJSVM(vm); in ObjectBoolGetFuzzTest()
43 EcmaVM *vm = JSNApi::CreateJSVM(option); in ObjectBoolHasFuzzTest() local
48 Local<ObjectRef> object = ObjectRef::New(vm); in ObjectBoolHasFuzzTest()
49 Local<JSValueRef> key = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in ObjectBoolHasFuzzTest()
50 object->Has(vm, key); in ObjectBoolHasFuzzTest()
51 JSNApi::DestroyJSVM(vm); in ObjectBoolHasFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containerslinkedlistcommon_fuzzer/
Dcontainerslinkedlistcommon_fuzzer.h111 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListAddFuzzTest() local
113 JsiFastNativeScope scope(vm); in ContainersLinkedListAddFuzzTest()
114 auto thread = vm->GetAssociatedJSThread(); in ContainersLinkedListAddFuzzTest()
129 JSNApi::DestroyJSVM(vm); in ContainersLinkedListAddFuzzTest()
136 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListGetFirstFuzzTest() local
138 JsiFastNativeScope scope(vm); in ContainersLinkedListGetFirstFuzzTest()
139 auto thread = vm->GetAssociatedJSThread(); in ContainersLinkedListGetFirstFuzzTest()
159 JSNApi::DestroyJSVM(vm); in ContainersLinkedListGetFirstFuzzTest()
166 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListGetLastFuzzTest() local
168 JsiFastNativeScope scope(vm); in ContainersLinkedListGetLastFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/bufferrefnew_fuzzer/
Dbufferrefnew_fuzzer.cpp28 EcmaVM *vm = JSNApi::CreateJSVM(option); in BufferRefNewFuzzTest() local
33 BufferRef::New(vm, (int32_t)size); in BufferRefNewFuzzTest()
34 JSNApi::DestroyJSVM(vm); in BufferRefNewFuzzTest()
45 EcmaVM *vm = JSNApi::CreateJSVM(option); in BufferRefMultiParamNewFuzzTest() local
47 BufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in BufferRefMultiParamNewFuzzTest()
48 JSNApi::DestroyJSVM(vm); in BufferRefMultiParamNewFuzzTest()
55 EcmaVM *vm = JSNApi::CreateJSVM(option); in BufferRefByteLengthFuzzTest() local
60 Local<BufferRef> buffer = BufferRef::New(vm, (int32_t)size); in BufferRefByteLengthFuzzTest()
61 buffer->ByteLength(vm); in BufferRefByteLengthFuzzTest()
62 JSNApi::DestroyJSVM(vm); in BufferRefByteLengthFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containersvectorcommon_fuzzer/
Dcontainersvectorcommon_fuzzer.h115 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorAddFuzzTest() local
117 JsiFastNativeScope scope(vm); in ContainersVectorAddFuzzTest()
118 auto thread = vm->GetAssociatedJSThread(); in ContainersVectorAddFuzzTest()
131 JSNApi::DestroyJSVM(vm); in ContainersVectorAddFuzzTest()
138 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorGetFirstElementFuzzTest() local
140 JsiFastNativeScope scope(vm); in ContainersVectorGetFirstElementFuzzTest()
141 auto thread = vm->GetAssociatedJSThread(); in ContainersVectorGetFirstElementFuzzTest()
160 JSNApi::DestroyJSVM(vm); in ContainersVectorGetFirstElementFuzzTest()
167 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorGetIndexOfFuzzTest() local
169 JsiFastNativeScope scope(vm); in ContainersVectorGetIndexOfFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/globalclass_fuzzer/
Dglobalclass_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in GlobalFuzzerTest() local
31 JsiFastNativeScope scope(vm); in GlobalFuzzerTest()
39 JSNApi::DestroyJSVM(vm); in GlobalFuzzerTest()
46 EcmaVM *vm = JSNApi::CreateJSVM(option); in GlobalOperatorEqualFuzzerTest() local
48 JsiFastNativeScope scope(vm); in GlobalOperatorEqualFuzzerTest()
57 JSNApi::DestroyJSVM(vm); in GlobalOperatorEqualFuzzerTest()
64 EcmaVM *vm = JSNApi::CreateJSVM(option); in GlobalMoveFuzzerTest() local
66 JsiFastNativeScope scope(vm); in GlobalMoveFuzzerTest()
74 JSNApi::DestroyJSVM(vm); in GlobalMoveFuzzerTest()
81 EcmaVM *vm = JSNApi::CreateJSVM(option); in GlobalOperatorEqualMoveFuzzerTest() local
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsnapiset_fuzzer/
Djsnapiset_fuzzer.cpp30 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiSetAssetPathFuzzTest() local
35 JSNApi::SetAssetPath(vm, str); in JSNApiSetAssetPathFuzzTest()
36 JSNApi::DestroyJSVM(vm); in JSNApiSetAssetPathFuzzTest()
43 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiSetBundleFuzzTest() local
50 JSNApi::SetBundle(vm, (bool)size); in JSNApiSetBundleFuzzTest()
51 JSNApi::DestroyJSVM(vm); in JSNApiSetBundleFuzzTest()
58 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiSetHostEnqueueJobFuzzTest() local
63 Local<JSValueRef> key = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in JSNApiSetHostEnqueueJobFuzzTest()
64 JSNApi::SetHostEnqueueJob(vm, key); in JSNApiSetHostEnqueueJobFuzzTest()
65 JSNApi::DestroyJSVM(vm); in JSNApiSetHostEnqueueJobFuzzTest()
[all …]

12345678910>>...31