Home
last modified time | relevance | path

Searched refs:vm (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/arkcompiler/ets_runtime/ecmascript/napi/include/
Ddfx_jsnapi.h52 const EcmaVM *vm; member
64 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, const std::string &path, bool isVmM…
66 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, Stream *stream, Progress *progress …
69 …static void DumpCpuProfile(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool isPrivate …
71 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool isPrivat…
73 …static void DumpHeapSnapshotAllVMs(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool is…
75 static void DestroyHeapProfiler(const EcmaVM *vm);
77 static bool BuildNativeAndJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr);
78 static bool BuildJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr);
79 static bool StartHeapTracking(const EcmaVM *vm, double timeInterval, bool isVmMode = true,
[all …]
Djsnapi_expo.h135 Local(const EcmaVM *vm, const Global<T> &current);
137 Local(const EcmaVM *vm, const CopyableGlobal<T> &current);
221 CopyableGlobal(const EcmaVM *vm, const Local<S> &current);
223 CopyableGlobal(const EcmaVM *vm, const Local<T> &current);
319 Global(const EcmaVM *vm, const Local<S> &current);
321 Global(const EcmaVM *vm, const Global<S> &current);
333 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal() argument
335 return Local<T>(vm, *this); in ToLocal()
382 static Local<PrimitiveRef> Undefined(const EcmaVM *vm);
383 static Local<PrimitiveRef> Null(const EcmaVM *vm);
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/
Ddfx_jsnapi.cpp55 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpHeapSnapshot() argument
61 DumpHeapSnapshot(vm, dumpFormat, &stream, nullptr, isVmMode, isPrivate, captureNumericValue); in DumpHeapSnapshot()
67 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpHeapSnapshot() argument
74 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot()
84 void DFXJSNApi::DumpCpuProfile([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpCpuProfile() argument
92 if (DFXJSNApi::StopCpuProfilerForColdStart(vm)) { in DumpCpuProfile()
97 if (DFXJSNApi::CpuProfilerSamplingAnyTime(vm)) { in DumpCpuProfile()
106 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpHeapSnapshot() argument
112 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in DumpHeapSnapshot()
119 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot()
[all …]
Djsnapi_expo.cpp205 Local<PrimitiveRef> JSValueRef::Undefined(const EcmaVM *vm) in Undefined() argument
208 vm->GetJSThread()->GlobalConstants()->GetHandledUndefined()); in Undefined()
211 Local<PrimitiveRef> JSValueRef::Null(const EcmaVM *vm) in Null() argument
214 vm->GetJSThread()->GlobalConstants()->GetHandledNull()); in Null()
217 Local<PrimitiveRef> JSValueRef::True(const EcmaVM *vm) in True() argument
220 vm->GetJSThread()->GlobalConstants()->GetHandledTrue()); in True()
223 Local<PrimitiveRef> JSValueRef::False(const EcmaVM *vm) in False() argument
226 vm->GetJSThread()->GlobalConstants()->GetHandledFalse()); in False()
229 Local<ObjectRef> JSValueRef::ToObject(const EcmaVM *vm) in ToObject() argument
231 CROSS_THREAD_AND_EXCEPTION_CHECK_WITH_RETURN(vm, JSValueRef::Undefined(vm)); in ToObject()
[all …]
Djsnapi.cpp102 … bool StartDebug(const std::string& componentName, void* vm, bool isDebugMode, int32_t instanceId,
105 void WaitForDebugger(void* vm);
201 …const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length) \
203 …CROSS_THREAD_AND_EXCEPTION_CHECK_WITH_RETURN(vm, JSValueRef::Undefined(vm)); \
204 …JSHandle<GlobalEnv> env = vm->GetGlobalEnv(); \
212 …RETURN_VALUE_IF_ABRUPT(thread, JSValueRef::Undefined(vm)); \
215 …RETURN_VALUE_IF_ABRUPT(thread, JSValueRef::Undefined(vm)); \
225 Local<JSValueRef> JSON::Parse(const EcmaVM *vm, Local<StringRef> string) in TYPED_ARRAY_ALL()
227 CROSS_THREAD_AND_EXCEPTION_CHECK_WITH_RETURN(vm, JSValueRef::Undefined(vm)); in TYPED_ARRAY_ALL()
237 RETURN_VALUE_IF_ABRUPT(thread, JSValueRef::Undefined(vm)); in TYPED_ARRAY_ALL()
[all …]
DJSNapi接口说明.md7 Local<ArrayBufferRef> ArrayBufferRef::New(const EcmaVM *vm, int32_t length)��
9 Local<ArrayBufferRef> ArrayBufferRef::New(const EcmaVM *vm, void *buffer, int32_t length, const Del…
17 | vm | const EcmaVM * | �� | ��������� |
32 Local<ArrayBufferRef> arrayBuffer1 = ArrayBufferRef::New(vm, 10);
41 Local<ArrayBufferRef> arrayBuffer2 = ArrayBufferRef::New(vm, buffer, 10, deleter, data);
73 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, buffer, 10, deleter, data);
79 int32_t ArrayBufferRef::ByteLength([[maybe_unused]] const EcmaVM *vm)��
87 | vm | const EcmaVM * | �� | ��������� |
98 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, 10);
99 int lenth = arrayBuffer->ByteLength(vm);
[all …]
/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.cpp22 void DebuggerExecutor::Initialize(const EcmaVM *vm) in Initialize() argument
24 [[maybe_unused]] EcmaHandleScope handleScope(vm->GetJSThread()); in Initialize()
25 Local<ObjectRef> globalObj = JSNApi::GetGlobalObject(vm); in Initialize()
26 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "debuggerSetValue"), FunctionRef::New( in Initialize()
27 const_cast<panda::EcmaVM*>(vm), DebuggerExecutor::DebuggerSetValue)); in Initialize()
28 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "debuggerGetValue"), FunctionRef::New( in Initialize()
29 const_cast<panda::EcmaVM*>(vm), DebuggerExecutor::DebuggerGetValue)); in Initialize()
34 EcmaVM *vm = runtimeCallInfo->GetVM(); in DebuggerGetValue() local
37 return JSValueRef::Undefined(vm); in DebuggerGetValue()
41 return JSValueRef::Undefined(vm); in DebuggerGetValue()
[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/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/builtins/
Dbuiltins_lazy_callback.cpp28 EcmaVM *vm = thread->GetEcmaVM(); in Date() local
29 ObjectFactory *factory = vm->GetFactory(); in Date()
30 auto env = vm->GetGlobalEnv(); in Date()
34 Builtins builtin(thread, factory, vm); in Date()
43 EcmaVM *vm = thread->GetEcmaVM(); in Set() local
44 ObjectFactory *factory = vm->GetFactory(); in Set()
45 auto env = vm->GetGlobalEnv(); in Set()
48 Builtins builtin(thread, factory, vm); in Set()
58 EcmaVM *vm = thread->GetEcmaVM(); in Map() local
59 ObjectFactory *factory = vm->GetFactory(); in Map()
[all …]
/arkcompiler/toolchain/tooling/
Ddebugger_service.cpp24 void InitializeDebugger(::panda::ecmascript::EcmaVM *vm, in InitializeDebugger() argument
27 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in InitializeDebugger()
32 vm->GetJsDebuggerManager()->SetDebuggerHandler(new ProtocolHandler(onResponse, vm)); in InitializeDebugger()
35 void UninitializeDebugger(::panda::ecmascript::EcmaVM *vm) in UninitializeDebugger() argument
37 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in UninitializeDebugger()
39 vm->GetJsDebuggerManager()->SetDebuggerHandler(nullptr); in UninitializeDebugger()
42 void WaitForDebugger(const ::panda::ecmascript::EcmaVM *vm) in WaitForDebugger() argument
44 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in WaitForDebugger()
50 void OnMessage(const ::panda::ecmascript::EcmaVM *vm, std::string &&message) in OnMessage() argument
52 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in OnMessage()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp40 EcmaVM *vm = JSNApi::CreateJSVM(option); in IsModuleNamespaceObjectFuzztest() local
45 ObjectFactory *objectFactory = vm->GetFactory(); in IsModuleNamespaceObjectFuzztest()
48 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry1, 0, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
50 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry2, 1, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
51 JSHandle<TaggedArray> localExportEntries(vm->GetJSThread(), module->GetLocalExportEntries()); in IsModuleNamespaceObjectFuzztest()
54 module->SetEcmaModuleFilename(vm->GetJSThread(), moduleFilename); in IsModuleNamespaceObjectFuzztest()
55 ModuleManager *moduleManager = vm->GetJSThread()->GetCurrentEcmaContext()->GetModuleManager(); in IsModuleNamespaceObjectFuzztest()
57 JSHandle<ModuleNamespace> np = ModuleNamespace::ModuleNamespaceCreate(vm->GetJSThread(), in IsModuleNamespaceObjectFuzztest()
63 JSNApi::DestroyJSVM(vm); in IsModuleNamespaceObjectFuzztest()
70 EcmaVM *vm = JSNApi::CreateJSVM(option); in IsProxyFuzztest() local
[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()
75 JSNApi::DestroyJSVM(vm); in JSValueRefIsStringValueFuzzTest()
82 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefWithinInt32ValueFuzzTest() local
[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/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/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/jsnapiset_fuzzer/
Djsnapiset_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiSetAssetPathFuzzTest() local
34 JSNApi::SetAssetPath(vm, str); in JSNApiSetAssetPathFuzzTest()
35 JSNApi::DestroyJSVM(vm); in JSNApiSetAssetPathFuzzTest()
42 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiSetBundleFuzzTest() local
49 JSNApi::SetBundle(vm, (bool)size); in JSNApiSetBundleFuzzTest()
50 JSNApi::DestroyJSVM(vm); in JSNApiSetBundleFuzzTest()
57 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiSetHostEnqueueJobFuzzTest() local
62 Local<JSValueRef> key = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in JSNApiSetHostEnqueueJobFuzzTest()
63 JSNApi::SetHostEnqueueJob(vm, key); in JSNApiSetHostEnqueueJobFuzzTest()
64 JSNApi::DestroyJSVM(vm); in JSNApiSetHostEnqueueJobFuzzTest()
[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/jsvaluerefobject_fuzzer/
Djsvaluerefobject_fuzzer.cpp30 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsSymbolFuzzTest() local
35 Local<StringRef> description = StringRef::NewFromUtf8(vm, (char*)data, size); in JSValueRefIsSymbolFuzzTest()
36 Local<SymbolRef> symbol = SymbolRef::New(vm, description); in JSValueRefIsSymbolFuzzTest()
38 JSNApi::DestroyJSVM(vm); in JSValueRefIsSymbolFuzzTest()
45 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsBigIntFuzzTest() local
51 Local<IntegerRef> intValue = IntegerRef::New(vm, input); in JSValueRefIsBigIntFuzzTest()
53 JSNApi::DestroyJSVM(vm); in JSValueRefIsBigIntFuzzTest()
60 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSValueRefIsObjectFuzzTest() local
65 Local<JSValueRef> res = IntegerRef::New(vm, (int)size); in JSValueRefIsObjectFuzzTest()
67 JSNApi::DestroyJSVM(vm); in JSValueRefIsObjectFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/typedarrayref_fuzzer/
Dtypedarrayref_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in TypedArrayrefArrayLengthFuzzerTest() local
36 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, (int32_t)size); in TypedArrayrefArrayLengthFuzzerTest()
37 Local<Int8ArrayRef> typedArray = Int8ArrayRef::New(vm, arrayBuffer, byteOffset, length); in TypedArrayrefArrayLengthFuzzerTest()
38 typedArray->ArrayLength(vm); in TypedArrayrefArrayLengthFuzzerTest()
39 JSNApi::DestroyJSVM(vm); in TypedArrayrefArrayLengthFuzzerTest()
46 EcmaVM *vm = JSNApi::CreateJSVM(option); in TypedArrayrefByteOffSetFuzzerTest() local
53 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, (int32_t)size); in TypedArrayrefByteOffSetFuzzerTest()
54 Local<Int8ArrayRef> typedArray = Int8ArrayRef::New(vm, arrayBuffer, byteOffset, length); in TypedArrayrefByteOffSetFuzzerTest()
55 typedArray->ByteOffset(vm); in TypedArrayrefByteOffSetFuzzerTest()
56 JSNApi::DestroyJSVM(vm); in TypedArrayrefByteOffSetFuzzerTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsnapiexceptions_fuzzer/
Djsnapiexceptions_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiGetAndClearUncaughtExceptionFuzzTest() local
34 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char *)data, (int)size); in JSNApiGetAndClearUncaughtExceptionFuzzTest()
35 Local<JSValueRef> error = Exception::Error(vm, message); in JSNApiGetAndClearUncaughtExceptionFuzzTest()
36 JSNApi::ThrowException(vm, error); in JSNApiGetAndClearUncaughtExceptionFuzzTest()
37 JSNApi::GetAndClearUncaughtException(vm); in JSNApiGetAndClearUncaughtExceptionFuzzTest()
38 JSNApi::DestroyJSVM(vm); in JSNApiGetAndClearUncaughtExceptionFuzzTest()
45 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiPrintExceptionInfoFuzzTest() local
49 JSNApi::PrintExceptionInfo(vm); in JSNApiPrintExceptionInfoFuzzTest()
50 JSNApi::DestroyJSVM(vm); in JSNApiPrintExceptionInfoFuzzTest()
57 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiThrowExceptionFuzzTest() local
[all …]
/arkcompiler/ets_runtime/test/fuzztest/exceptionclass_fuzzer/
Dexceptionclass_fuzzer.cpp30 EcmaVM *vm = JSNApi::CreateJSVM(option); in ExpectionErrorFuzzTest() local
35 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in ExpectionErrorFuzzTest()
36 [[maybe_unused]]Local<JSValueRef> error = Exception::Error(vm, message); in ExpectionErrorFuzzTest()
37 JSNApi::DestroyJSVM(vm); in ExpectionErrorFuzzTest()
44 EcmaVM *vm = JSNApi::CreateJSVM(option); in ExpectionRangeErrorFuzzTest() local
49 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in ExpectionRangeErrorFuzzTest()
50 [[maybe_unused]]Local<JSValueRef> error = Exception::RangeError(vm, message); in ExpectionRangeErrorFuzzTest()
51 JSNApi::DestroyJSVM(vm); in ExpectionRangeErrorFuzzTest()
58 EcmaVM *vm = JSNApi::CreateJSVM(option); in ReferenceErrorFuzzTest() local
63 Local<StringRef> message = StringRef::NewFromUtf8(vm, (char*)data, (int)size); in ReferenceErrorFuzzTest()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/promisecapabilityref_fuzzer/
Dpromisecapabilityref_fuzzer.cpp29 EcmaVM *vm = JSNApi::CreateJSVM(option); in PromiseCapabilityRefNewFuzzTest() local
34 [[maybe_unused]]Local<PromiseCapabilityRef> capability = PromiseCapabilityRef::New(vm); in PromiseCapabilityRefNewFuzzTest()
35 JSNApi::DestroyJSVM(vm); in PromiseCapabilityRefNewFuzzTest()
42 EcmaVM *vm = JSNApi::CreateJSVM(option); in PromiseCapabilityRefResolveFuzzTest() local
47 Local<PromiseCapabilityRef> capability = PromiseCapabilityRef::New(vm); in PromiseCapabilityRefResolveFuzzTest()
48 Local<StringRef> value = NumberRef::New(vm, (double)size); in PromiseCapabilityRefResolveFuzzTest()
49 capability->Resolve(vm, value); in PromiseCapabilityRefResolveFuzzTest()
50 JSNApi::DestroyJSVM(vm); in PromiseCapabilityRefResolveFuzzTest()
57 EcmaVM *vm = JSNApi::CreateJSVM(option); in PromiseCapabilityRefRejectFuzzTest() local
62 Local<PromiseCapabilityRef> capability = PromiseCapabilityRef::New(vm); in PromiseCapabilityRefRejectFuzzTest()
[all …]
/arkcompiler/toolchain/inspector/
Dinspector.cpp117 void SendReply(const void* vm, const std::string& message) in SendReply() argument
120 auto iter = g_inspectors.find(vm); in SendReply()
127 void ResetServiceLocked(void *vm, bool isCloseHandle) in ResetServiceLocked() argument
129 auto iter = g_inspectors.find(vm); in ResetServiceLocked()
146 …void* vm, const DebuggerPostTask& debuggerPostTask, const DebugInfo& debugInfo, int tidForSocketPa… in InitializeInspector() argument
150 auto iter = g_inspectors.find(vm); in InitializeInspector()
152 newInspector = g_inspectors[vm]; in InitializeInspector()
155 if (!g_inspectors.emplace(vm, newInspector).second) { in InitializeInspector()
163 newInspector->vm_ = vm; in InitializeInspector()
258 debuggerPostTask_([tid = tid_, vm = vm_] { in OnMessage()
[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()
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()
53 JSNApi::DestroyJSVM(vm); in IsUint8ArrayFuzztest()
60 EcmaVM *vm = JSNApi::CreateJSVM(option); in IsUint8ClampedArrayFuzztest() local
66 …Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, … in IsUint8ClampedArrayFuzztest()
[all …]

12345678910>>...27