/arkcompiler/ets_runtime/ecmascript/napi/include/ |
D | dfx_jsnapi.h | 53 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, const std::string &path, bool isVmM… 55 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, Stream *stream, Progress *progress … 57 …static void DumpHeapSnapshot(const EcmaVM *vm, int dumpFormat, bool isVmMode = true, bool isPrivat… 59 static void DestroyHeapProfiler(const EcmaVM *vm); 61 static bool BuildNativeAndJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr); 62 static bool BuildJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr); 63 static bool StartHeapTracking(const EcmaVM *vm, double timeInterval, bool isVmMode = true, 65 static bool UpdateHeapTracking(const EcmaVM *vm, Stream *stream); 66 …static bool StopHeapTracking(const EcmaVM *vm, const std::string &filePath, bool newThread = true); 67 …static bool StopHeapTracking(const EcmaVM *vm, Stream *stream, Progress *progress = nullptr, bool … [all …]
|
D | jsnapi.h | 99 Local(const EcmaVM *vm, const Global<T> ¤t); 101 Local(const EcmaVM *vm, const CopyableGlobal<T> ¤t); 179 CopyableGlobal(const EcmaVM *vm, const Local<S> ¤t); 181 CopyableGlobal(const EcmaVM *vm, const Local<T> ¤t); 277 Global(const EcmaVM *vm, const Local<S> ¤t); 279 Global(const EcmaVM *vm, const Global<S> ¤t); 291 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal() argument 293 return Local<T>(vm, *this); in ToLocal() 341 explicit LocalScope(const EcmaVM *vm); 345 inline LocalScope(const EcmaVM *vm, JSTaggedType value); [all …]
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | dfx_jsnapi.cpp | 53 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpHeapSnapshot() argument 59 DumpHeapSnapshot(vm, dumpFormat, &stream, nullptr, isVmMode, isPrivate, captureNumericValue); in DumpHeapSnapshot() 65 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpHeapSnapshot() argument 73 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot() 83 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int dumpFormat, in DumpHeapSnapshot() argument 91 if (DFXJSNApi::StopCpuProfilerForColdStart(vm)) { in DumpHeapSnapshot() 96 if (DFXJSNApi::CpuProfilerSamplingAnyTime(vm)) { in DumpHeapSnapshot() 101 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in DumpHeapSnapshot() 108 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot() 118 DumpHeapSnapshot(vm, dumpFormat, &stream, nullptr, isVmMode, isPrivate, captureNumericValue); in DumpHeapSnapshot() [all …]
|
D | jsnapi.cpp | 101 … bool StartDebug(const std::string& componentName, void* vm, bool isDebugMode, int32_t instanceId, 257 #define CHECK_HAS_PENDING_EXCEPTION(vm, returnVal) \ argument 259 if (vm->GetJSThread()->HasPendingException()) { \ 263 JSNApi::PrintExceptionInfo(vm); \ 268 #define CHECK_HAS_PENDING_EXCEPTION_RETURN_UNDEFINED(vm) \ argument 269 CHECK_HAS_PENDING_EXCEPTION(vm, JSValueRef::Undefined(vm)) 271 #define CHECK_HAS_PENDING_EXCEPTION_WITHOUT_RETURN(vm) \ argument 273 if (vm->GetJSThread()->HasPendingException()) { \ 277 JSNApi::PrintExceptionInfo(vm); \ 313 EcmaContext *JSNApi::CreateJSContext(EcmaVM *vm) in CreateJSContext() argument [all …]
|
/arkcompiler/toolchain/tooling/backend/ |
D | debugger_executor.cpp | 22 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 …]
|
D | debugger_executor.h | 29 static void Initialize(const EcmaVM *vm); 31 …static Local<JSValueRef> GetValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<String… 32 static bool SetValue(const EcmaVM *vm, FrameHandler *frameHandler, 42 static void ThrowException(const EcmaVM *vm, const std::string &error); 44 …static Local<JSValueRef> GetLocalValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<S… 45 static Local<JSValueRef> GetLexicalValue(const EcmaVM *vm, const FrameHandler *frameHandler, 47 …static Local<JSValueRef> GetModuleValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<… 48 static Local<JSValueRef> GetGlobalValue(const EcmaVM *vm, Local<StringRef> name); 50 static bool SetLocalValue(const EcmaVM *vm, FrameHandler *frameHandler, 52 static bool SetLexicalValue(const EcmaVM *vm, const FrameHandler *frameHandler, [all …]
|
/arkcompiler/toolchain/tooling/ |
D | debugger_service.cpp | 24 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 …]
|
D | debugger_service.h | 39 TOOLCHAIN_EXPORT void InitializeDebugger(::panda::ecmascript::EcmaVM *vm, 42 TOOLCHAIN_EXPORT void UninitializeDebugger(::panda::ecmascript::EcmaVM *vm); 44 TOOLCHAIN_EXPORT void OnMessage(const ::panda::ecmascript::EcmaVM *vm, std::string &&message); 46 TOOLCHAIN_EXPORT void WaitForDebugger(const ::panda::ecmascript::EcmaVM *vm); 48 TOOLCHAIN_EXPORT void ProcessMessage(const ::panda::ecmascript::EcmaVM *vm); 50 TOOLCHAIN_EXPORT int32_t GetDispatchStatus(const ::panda::ecmascript::EcmaVM *vm);
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_lazy_callback.cpp | 28 EcmaVM *vm = thread->GetEcmaVM(); in Date() local 29 ObjectFactory *factory = vm->GetFactory(); in Date() 30 auto env = vm->GetGlobalEnv(); in Date() 33 Builtins builtin(thread, factory, vm); in Date() 42 EcmaVM *vm = thread->GetEcmaVM(); in Set() local 43 ObjectFactory *factory = vm->GetFactory(); in Set() 44 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/ecmascript/tests/ |
D | js_array_buffer_test.cpp | 58 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() local 59 auto factory = vm->GetFactory(); in HWTEST_F_L0() 63 void *toBuffer = vm->GetNativeAreaAllocator()->AllocateBuffer(length); in HWTEST_F_L0() 65 uint8_t *data = static_cast<uint8_t *>(vm->GetNativeAreaAllocator()->AllocateBuffer(length)); in HWTEST_F_L0() 70 void *formBuffer = vm->GetNativeAreaAllocator()->AllocateBuffer(length); in HWTEST_F_L0() 82 vm->GetNativeAreaAllocator()->FreeBuffer(toBuffer); in HWTEST_F_L0() 83 vm->GetNativeAreaAllocator()->FreeBuffer(data); in HWTEST_F_L0() 84 vm->GetNativeAreaAllocator()->FreeBuffer(formBuffer); in HWTEST_F_L0() 96 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() local 97 auto factory = vm->GetFactory(); in HWTEST_F_L0() [all …]
|
D | js_finalization_registry_test.cpp | 68 auto vm = thread->GetEcmaVM(); in CreateFinalizationRegistry() local 69 auto factory = vm->GetFactory(); in CreateFinalizationRegistry() 70 auto env = vm->GetGlobalEnv(); in CreateFinalizationRegistry() 100 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() local 101 auto factory = vm->GetFactory(); in HWTEST_F_L0() 102 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() 134 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() local 135 auto factory = vm->GetFactory(); in HWTEST_F_L0() 136 auto env = vm->GetGlobalEnv(); in HWTEST_F_L0() 172 auto vm = thread->GetEcmaVM(); in HWTEST_F_L0() local [all …]
|
D | concurrent_sweep_test.cpp | 39 TestHelper::CreateEcmaVMWithScope(vm, thread, scope); in SetUp() 44 TestHelper::DestroyEcmaVMWithScope(vm, scope); in TearDown() 47 EcmaVM *vm {nullptr}; member in panda::test::ConcurrentSweepTest 56 EcmaStringAccessor::CreateFromUtf8(vm, utf8, 4, true)); // 4 : utf8 encoding length in TEST_F() 57 if (vm->IsInitialized()) { in TEST_F() 58 vm->CollectGarbage(ecmascript::TriggerGCType::OLD_GC); in TEST_F() 61 EcmaStringAccessor::CreateFromUtf8(vm, utf8, 4, true)); // 4 : utf8 encoding length in TEST_F()
|
/arkcompiler/ets_runtime/ecmascript/quick_fix/ |
D | main.cpp | 90 EcmaVM *vm = JSNApi::CreateEcmaVM(runtimeOptions); in Main() local 91 if (vm == nullptr) { in Main() 98 LocalScope scope(vm); in Main() 109 JSNApi::DestroyJSVM(vm); in Main() 114 JSNApi::SetBundle(vm, !isMergeAbc); in Main() 120 JSNApi::DestroyJSVM(vm); in Main() 124 auto res = JSNApi::Execute(vm, baseFileName, entryList[0]); in Main() 127 JSNApi::DestroyJSVM(vm); in Main() 130 JSNApi::EnableUserUncaughtErrorHandler(vm); in Main() 137 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containerslinkedlistcommon_fuzzer/ |
D | containerslinkedlistcommon_fuzzer.h | 111 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListAddFuzzTest() local 112 auto thread = vm->GetAssociatedJSThread(); in ContainersLinkedListAddFuzzTest() 126 JSNApi::DestroyJSVM(vm); in ContainersLinkedListAddFuzzTest() 133 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListGetFirstFuzzTest() local 134 auto thread = vm->GetAssociatedJSThread(); in ContainersLinkedListGetFirstFuzzTest() 153 JSNApi::DestroyJSVM(vm); in ContainersLinkedListGetFirstFuzzTest() 160 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListGetLastFuzzTest() local 161 auto thread = vm->GetAssociatedJSThread(); in ContainersLinkedListGetLastFuzzTest() 180 JSNApi::DestroyJSVM(vm); in ContainersLinkedListGetLastFuzzTest() 187 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersLinkedListAddFirstFuzzTest() local [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersvectorcommon_fuzzer/ |
D | containersvectorcommon_fuzzer.h | 115 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorAddFuzzTest() local 116 auto thread = vm->GetAssociatedJSThread(); in ContainersVectorAddFuzzTest() 129 JSNApi::DestroyJSVM(vm); in ContainersVectorAddFuzzTest() 136 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorGetFirstElementFuzzTest() local 137 auto thread = vm->GetAssociatedJSThread(); in ContainersVectorGetFirstElementFuzzTest() 156 JSNApi::DestroyJSVM(vm); in ContainersVectorGetFirstElementFuzzTest() 163 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorGetIndexOfFuzzTest() local 164 auto thread = vm->GetAssociatedJSThread(); in ContainersVectorGetIndexOfFuzzTest() 184 JSNApi::DestroyJSVM(vm); in ContainersVectorGetIndexOfFuzzTest() 191 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersVectorGetLastElementFuzzTest() local [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_string-inl.h | 28 inline EcmaString *EcmaString::CreateEmptyString(const EcmaVM *vm) in CreateEmptyString() argument 30 auto string = vm->GetFactory()->AllocNonMovableLineStringObject(EcmaString::SIZE); in CreateEmptyString() 37 inline EcmaString *EcmaString::CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t u… in CreateFromUtf8() argument 42 return vm->GetFactory()->GetEmptyString().GetObject<EcmaString>(); in CreateFromUtf8() 47 string = CreateConstantString(vm, utf8Data, utf8Len, canBeCompress, type, idOffset); in CreateFromUtf8() 49 string = CreateLineStringWithSpaceType(vm, utf8Len, true, type); in CreateFromUtf8() 59 string = CreateLineStringWithSpaceType(vm, utf16Len, false, type); in CreateFromUtf8() 71 inline EcmaString *EcmaString::CreateFromUtf16(const EcmaVM *vm, const uint16_t *utf16Data, uint32_… in CreateFromUtf16() argument 75 return vm->GetFactory()->GetEmptyString().GetObject<EcmaString>(); in CreateFromUtf16() 77 auto string = CreateLineStringWithSpaceType(vm, utf16Len, canBeCompress, type); in CreateFromUtf16() [all …]
|
D | ecma_string.h | 47 #define ECMA_STRING_CHECK_LENGTH_AND_TRHOW(vm, length) \ argument 49 THROW_RANGE_ERROR_AND_RETURN((vm)->GetJSThread(), "Invalid string length", nullptr); \ 85 static EcmaString *CreateEmptyString(const EcmaVM *vm); 86 static EcmaString *CreateFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf8Len, 89 … static EcmaString *CreateFromUtf16(const EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len, 91 static EcmaString *CreateLineString(const EcmaVM *vm, size_t length, bool compressed); 92 static EcmaString *CreateLineStringNoGC(const EcmaVM *vm, size_t length, bool compressed); 93 static EcmaString *CreateLineStringWithSpaceType(const EcmaVM *vm, 95 static EcmaString *CreateTreeString(const EcmaVM *vm, 97 static EcmaString *CreateConstantString(const EcmaVM *vm, const uint8_t *utf8Data, [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/containersplainarray_fuzzer/ |
D | containersplainarray_fuzzer.cpp | 88 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersPlainArray_Constructor_FuzzTest() local 89 auto thread = vm->GetAssociatedJSThread(); in ContainersPlainArray_Constructor_FuzzTest() 105 JSNApi::DestroyJSVM(vm); in ContainersPlainArray_Constructor_FuzzTest() 116 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersPlainArray_Add_Has_FuzzTest() local 117 auto thread = vm->GetAssociatedJSThread(); in ContainersPlainArray_Add_Has_FuzzTest() 118 auto factory = vm->GetFactory(); in ContainersPlainArray_Add_Has_FuzzTest() 149 JSNApi::DestroyJSVM(vm); in ContainersPlainArray_Add_Has_FuzzTest() 160 EcmaVM *vm = JSNApi::CreateJSVM(option); in ContainersPlainArray_Clone_FuzzTest() local 161 auto thread = vm->GetAssociatedJSThread(); in ContainersPlainArray_Clone_FuzzTest() 162 auto factory = vm->GetFactory(); in ContainersPlainArray_Clone_FuzzTest() [all …]
|
/arkcompiler/toolchain/test/fuzztest/pttypesobjectremoteobject_fuzzer/ |
D | pttypesobjectremoteobject_fuzzer.cpp | 32 auto vm = JSNApi::CreateJSVM(option); in PtTypesObjectRemoteObjectFuzzTest() local 33 ObjectRemoteObject obj(vm, StringRef::NewFromUtf8(vm, (const char*)data, size), in PtTypesObjectRemoteObjectFuzzTest() 35 ObjectRemoteObject object(vm, StringRef::NewFromUtf8(vm, (const char*)data, size), in PtTypesObjectRemoteObjectFuzzTest() 37 JSNApi::DestroyJSVM(vm); in PtTypesObjectRemoteObjectFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/arraylist_fuzzer/ |
D | arraylist_fuzzer.cpp | 130 EcmaVM *vm = JSNApi::CreateJSVM(option); in ArrayListForEachFuzzTest() local 131 auto thread = vm->GetAssociatedJSThread(); in ArrayListForEachFuzzTest() 132 ObjectFactory *factory = vm->GetFactory(); in ArrayListForEachFuzzTest() 133 JSHandle<GlobalEnv> env = vm->GetGlobalEnv(); in ArrayListForEachFuzzTest() 158 JSNApi::DestroyJSVM(vm); in ArrayListForEachFuzzTest() 165 EcmaVM *vm = JSNApi::CreateJSVM(option); in ArrayListAddFuzzTest() local 166 auto thread = vm->GetAssociatedJSThread(); in ArrayListAddFuzzTest() 186 JSNApi::DestroyJSVM(vm); in ArrayListAddFuzzTest() 197 EcmaVM *vm = JSNApi::CreateJSVM(option); in ArrayListClearFuzzTest() local 198 auto thread = vm->GetAssociatedJSThread(); in ArrayListClearFuzzTest() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/jsnapideserializevalue_fuzzer/ |
D | jsnapideserializevalue_fuzzer.cpp | 30 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSNApiDeserializeValueFuzzTest() local 43 Local<JSValueRef> value(NumberRef::New(vm, input)); in JSNApiDeserializeValueFuzzTest() 44 Local<JSValueRef> transfer(JSValueRef::Undefined(vm)); in JSNApiDeserializeValueFuzzTest() 45 void *serializationData = JSNApi::SerializeValue(vm, value, transfer); in JSNApiDeserializeValueFuzzTest() 47 JSNApi::DeserializeValue(vm, serializationData, hint); in JSNApiDeserializeValueFuzzTest() 48 JSNApi::DestroyJSVM(vm); in JSNApiDeserializeValueFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/objecthas_fuzzer/ |
D | objecthas_fuzzer.cpp | 29 EcmaVM *vm = JSNApi::CreateJSVM(option); in ObjectHasFuzzTest() local 42 Local<ObjectRef> object = ObjectRef::New(vm); in ObjectHasFuzzTest() 43 Local<JSValueRef> value(JSValueRef::Undefined(vm)); in ObjectHasFuzzTest() 44 object->Set(vm, key, value); in ObjectHasFuzzTest() 45 object->Has(vm, key); in ObjectHasFuzzTest() 46 JSNApi::DestroyJSVM(vm); in ObjectHasFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/objectdelete_fuzzer/ |
D | objectdelete_fuzzer.cpp | 29 EcmaVM *vm = JSNApi::CreateJSVM(option); in ObjectDeleteFuzzTest() local 42 Local<ObjectRef> object = ObjectRef::New(vm); in ObjectDeleteFuzzTest() 43 Local<JSValueRef> value(JSValueRef::Undefined(vm)); in ObjectDeleteFuzzTest() 44 object->Set(vm, key, value); in ObjectDeleteFuzzTest() 45 object->Delete(vm, key); in ObjectDeleteFuzzTest() 46 JSNApi::DestroyJSVM(vm); in ObjectDeleteFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile_executor.cpp | 38 EcmaVM *vm = thread->GetEcmaVM(); in ExecuteFromFile() local 39 if (!vm->IsBundlePack() && !excuteFromJob) { in ExecuteFromFile() 45 ModulePathHelper::ParseOhmUrl(vm, normalName, name, entry); in ExecuteFromFile() 48 name = vm->GetAssetPath(); in ExecuteFromFile() 51 CString assetPath = vm->GetAssetPath(); in ExecuteFromFile() 54 CString assetPath = vm->GetAssetPath(); in ExecuteFromFile() 69 LoadAOTFilesForFile(vm, jsPandaFile.get()); in ExecuteFromFile() 74 if (!jsPandaFile->IsBundlePack() && !excuteFromJob && !vm->GetBundleName().empty()) { in ExecuteFromFile() 124 auto vm = thread->GetEcmaVM(); in ExecuteFromBuffer() local 125 LoadAOTFilesForFile(vm, jsPandaFile.get()); in ExecuteFromBuffer() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/jsonstringify_fuzzer/ |
D | jsonstringify_fuzzer.cpp | 33 EcmaVM *vm = JSNApi::CreateJSVM(option); in JSONStringifyFuzzTest() local 40 JSNApi::DestroyJSVM(vm); in JSONStringifyFuzzTest() 47 Local<StringRef> res = StringRef::NewFromUtf8(vm, test, (int)size); in JSONStringifyFuzzTest() 48 Local<JSValueRef> jsValue = JSON::Parse(vm, res); in JSONStringifyFuzzTest() 49 JSON::Stringify(vm, jsValue); in JSONStringifyFuzzTest() 50 JSNApi::DestroyJSVM(vm); in JSONStringifyFuzzTest()
|