Home
last modified time | relevance | path

Searched refs:JSValueRef (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.h70 static Local<JSValueRef> GetVRegValue(const EcmaVM *ecmaVm,
72 static void SetVRegValue(FrameHandler *frameHandler, size_t index, Local<JSValueRef> value);
74 static Local<JSValueRef> GetProperties(const EcmaVM *ecmaVm, const FrameHandler *frameHandler,
77 uint32_t slot, Local<JSValueRef> value);
79 static Local<JSValueRef> GetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name);
80 … static bool SetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name, Local<JSValueRef> value);
83 static Local<JSValueRef> GetAndClearException(const EcmaVM *ecmaVm);
91 …static Local<JSValueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue…
94 std::string &name, Local<JSValueRef> value);
95 …static Local<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &curre…
[all …]
Ddebugger_api.cpp124 void DebuggerApi::SetVRegValue(FrameHandler *frameHandler, size_t index, Local<JSValueRef> value) in SetVRegValue()
191 Local<JSValueRef> DebuggerApi::GetVRegValue(const EcmaVM *ecmaVm, in GetVRegValue()
196 return JSNApiHelper::ToLocal<JSValueRef>(handledValue); in GetVRegValue()
200 Local<JSValueRef> DebuggerApi::GetAndClearException(const EcmaVM *ecmaVm) in GetAndClearException()
205 return JSNApiHelper::ToLocal<JSValueRef>(handledException); in GetAndClearException()
208 void DebuggerApi::SetException(const EcmaVM *ecmaVm, Local<JSValueRef> exception) in SetException()
257 Local<JSValueRef> DebuggerApi::GetProperties(const EcmaVM *ecmaVm, const FrameHandler *frameHandler, in GetProperties()
268 return JSNApiHelper::ToLocal<JSValueRef>(handledValue); in GetProperties()
272 int32_t level, uint32_t slot, Local<JSValueRef> value) in SetProperties()
306 Local<JSValueRef> DebuggerApi::GetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name) in GetGlobalValue()
[all …]
Djs_debugger_manager.h36 std::function<void(const FrameHandler *, std::string_view, Local<JSValueRef>)>;
117 void NotifyLocalScopeUpdated(std::string_view varName, Local<JSValueRef> value) in NotifyLocalScopeUpdated()
/arkcompiler/toolchain/tooling/agent/
Druntime_impl.h74 void CacheObjectIfNeeded(Local<JSValueRef> valRef, RemoteObject *remoteObj);
83 void GetProtoOrProtoType(Local<JSValueRef> value, bool isOwn, bool isAccessorOnly,
85 void GetAdditionalProperties(Local<JSValueRef> value,
87 void SetKeyValue(Local<JSValueRef> &jsValueRef,
89 void GetPrimitiveNumberValue(Local<JSValueRef> value,
91 void GetPrimitiveStringValue(Local<JSValueRef> value,
93 void GetPrimitiveBooleanValue(Local<JSValueRef> value,
95 void GetMapIteratorValue(Local<JSValueRef> value,
97 void GetSetIteratorValue(Local<JSValueRef> value,
99 void GetGeneratorFunctionValue(Local<JSValueRef> value,
[all …]
Druntime_impl.cpp192 Local<JSValueRef> value = Local<JSValueRef>(vm_, iter->second); in GetProperties()
288 Local<JSValueRef> name = JSValueRef::Undefined(vm_); in GetProperties()
302 properties_[curObjectId_++] = Global<JSValueRef>(vm_, jsProperty.GetGetter(vm_)); in GetProperties()
306 properties_[curObjectId_++] = Global<JSValueRef>(vm_, jsProperty.GetSetter(vm_)); in GetProperties()
309 Local<JSValueRef> vValue = jsProperty.GetValue(vm_); in GetProperties()
312 properties_[curObjectId_++] = Global<JSValueRef>(vm_, vValue); in GetProperties()
317 properties_[curObjectId_++] = Global<JSValueRef>(vm_, name); in GetProperties()
376 Local<JSValueRef> jsValueRef; in AddSharedArrayBufferRefs()
386 Local<JSValueRef> jsValueRefTypedArray(TypedArrayRef::New(vm_, arrayBufferRef, 0, length)); in AddTypedArrayRef()
389 properties_[curObjectId_++] = Global<JSValueRef>(vm_, jsValueRefTypedArray); in AddTypedArrayRef()
[all …]
Ddebugger_impl.cpp192 Local<JSValueRef> exception = DebuggerApi::GetAndClearException(vm_); in NotifyPaused()
1180 runtime_->properties_[runtime_->curObjectId_++] = Global<JSValueRef>(vm_, localObj); in GetLocalScopeChain()
1182 Local<JSValueRef> thisVal = JSNApiHelper::ToLocal<JSValueRef>( in GetLocalScopeChain()
1223 runtime_->properties_[runtime_->curObjectId_++] = Global<JSValueRef>(vm_, moduleObj); in GetModuleScopeChain()
1233 const JSPandaFile *jsPandaFile, Local<JSValueRef> &thisVal, Local<ObjectRef> &localObj) in GetLocalVariables()
1236 Local<JSValueRef> value = JSValueRef::Undefined(vm_); in GetLocalVariables()
1258 Local<JSValueRef> name = JSValueRef::Undefined(vm_); in GetLocalVariables()
1279 void DebuggerImpl::GetClosureVariables(const FrameHandler *frameHandler, Local<JSValueRef> &thisVal, in GetClosureVariables()
1300 Local<JSValueRef> value = JSNApiHelper::ToLocal<JSValueRef>( in GetClosureVariables()
1309 Local<JSValueRef> name = StringRef::NewFromUtf8(vm_, varName.c_str()); in GetClosureVariables()
[all …]
Ddebugger_impl.h159 const JSPandaFile *jsPandaFile, Local<JSValueRef> &thisVal, Local<ObjectRef> &localObj);
160 void GetClosureVariables(const FrameHandler *frameHandler, Local<JSValueRef> &thisVal,
163 …eScopeObject(const FrameHandler *frameHandler, std::string_view varName, Local<JSValueRef> newVal);
165 Local<JSValueRef> ConvertToLocal(const std::string &varValue);
/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.h31 …static Local<JSValueRef> GetValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<String…
33 Local<StringRef> name, Local<JSValueRef> value);
39 static Local<JSValueRef> DebuggerGetValue(JsiRuntimeCallInfo *runtimeCallInfo);
40 static Local<JSValueRef> DebuggerSetValue(JsiRuntimeCallInfo *runtimeCallInfo);
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);
51 Local<StringRef> name, Local<JSValueRef> value);
53 Local<StringRef> name, Local<JSValueRef> value);
[all …]
Ddebugger_executor.cpp32 Local<JSValueRef> DebuggerExecutor::DebuggerGetValue(JsiRuntimeCallInfo *runtimeCallInfo) in DebuggerGetValue()
37 return JSValueRef::Undefined(vm); in DebuggerGetValue()
39 Local<JSValueRef> name = runtimeCallInfo->GetCallArgRef(0); in DebuggerGetValue()
41 return JSValueRef::Undefined(vm); in DebuggerGetValue()
43 Local<JSValueRef> isThrow = runtimeCallInfo->GetCallArgRef(1); in DebuggerGetValue()
48 Local<JSValueRef> value = GetValue(vm, frameHandler.get(), Local<StringRef>(name)); in DebuggerGetValue()
55 return JSValueRef::Undefined(vm); in DebuggerGetValue()
60 return Local<JSValueRef>(); in DebuggerGetValue()
63 Local<JSValueRef> DebuggerExecutor::DebuggerSetValue(JsiRuntimeCallInfo *runtimeCallInfo) in DebuggerSetValue()
68 return JSValueRef::Undefined(vm); in DebuggerSetValue()
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h43 class JSValueRef; variable
73 using ConcurrentCallback = void (*)(Local<JSValueRef> result, bool success, void *taskInfo, void *d…
388 class PUBLIC_API JSValueRef {
479 bool IsStrictEquals(const EcmaVM *vm, Local<JSValueRef> value);
481 bool InstanceOf(const EcmaVM *vm, Local<JSValueRef> value);
508 class PUBLIC_API PrimitiveRef : public JSValueRef {
510 Local<JSValueRef> GetValue(const EcmaVM *vm);
534 …static Local<JSValueRef> CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t…
549 static inline StringRef *Cast(JSValueRef *value) in Cast()
572 class PUBLIC_API NativePointerRef : public JSValueRef {
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp269 CHECK_HAS_PENDING_EXCEPTION(vm, JSValueRef::Undefined(vm))
389 void JSNApi::ThrowException(const EcmaVM *vm, Local<JSValueRef> error) in ThrowException()
780 void *JSNApi::SerializeValue(const EcmaVM *vm, Local<JSValueRef> value, Local<JSValueRef> transfer) in SerializeValue()
798 Local<JSValueRef> JSNApi::DeserializeValue(const EcmaVM *vm, void *recoder, void *hint) in DeserializeValue()
825 …Local<JSValueRef> promiseVal = JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>::Cast(pro… in HostPromiseRejectionTracker()
826 PromiseRejectInfo promiseRejectInfo(promiseVal, JSNApiHelper::ToLocal<JSValueRef>(reason), in HostPromiseRejectionTracker()
856 void JSNApi::SetHostEnqueueJob(const EcmaVM *vm, Local<JSValueRef> cb) in SetHostEnqueueJob()
865 PromiseRejectInfo::PromiseRejectInfo(Local<JSValueRef> promise, Local<JSValueRef> reason, in PromiseRejectInfo()
869 Local<JSValueRef> PromiseRejectInfo::GetPromise() const in GetPromise()
874 Local<JSValueRef> PromiseRejectInfo::GetReason() const in GetReason()
[all …]
Djsnapi_helper.h80 static inline ecmascript::JSTaggedValue ToJSTaggedValue(JSValueRef *from) in ToJSTaggedValue()
86 static inline ecmascript::JSHandle<ecmascript::JSTaggedValue> ToJSHandle(Local<JSValueRef> from) in ToJSHandle()
92 static inline ecmascript::JSHandle<ecmascript::JSTaggedValue> ToJSHandle(JSValueRef *from) in ToJSHandle()
/arkcompiler/ets_runtime/test/fuzztest/functionrefcall_fuzzer/
Dfunctionrefcall_fuzzer.cpp24 Local<JSValueRef> FuncRefCallCallbackForTest(JsiRuntimeCallInfo* info) in FuncRefCallCallbackForTest()
42 Local<JSValueRef> thisObj(JSValueRef::Undefined(vm)); in FunctionRefCallFuzzTest()
43 Local<JSValueRef> argv[argvLen]; in FunctionRefCallFuzzTest()
45 argv[i] = JSValueRef::Undefined(vm); in FunctionRefCallFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsnapideleteserializationdata_fuzzer/
Djsnapideleteserializationdata_fuzzer.cpp43 Local<JSValueRef> value(NumberRef::New(vm, input)); in JSNApiDeleteSerializationDataFuzzTest()
44 Local<JSValueRef> transfer(JSValueRef::Undefined(vm)); in JSNApiDeleteSerializationDataFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsnapideserializevalue_fuzzer/
Djsnapideserializevalue_fuzzer.cpp43 Local<JSValueRef> value(NumberRef::New(vm, input)); in JSNApiDeserializeValueFuzzTest()
44 Local<JSValueRef> transfer(JSValueRef::Undefined(vm)); in JSNApiDeserializeValueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp71 Local<JSValueRef> FunctionCallback(JsiRuntimeCallInfo* info) in FunctionCallback()
114 std::vector<Local<JSValueRef>> arguments; in HWTEST_F_L0()
115 arguments.emplace_back(JSValueRef::Undefined(vm_)); in HWTEST_F_L0()
116 Local<JSValueRef> result = in HWTEST_F_L0()
117 callback->Call(vm_, JSValueRef::Undefined(vm_), arguments.data(), arguments.size()); in HWTEST_F_L0()
165 Local<JSValueRef> result = JSON::Parse(vm_, jsonString); in HWTEST_F_L0()
169 Local<JSValueRef> property = Local<ObjectRef>(result)->Get(vm_, keyString); in HWTEST_F_L0()
302 Local<JSValueRef> toValue(toString); in HWTEST_F_L0()
314 Local<JSValueRef> toValue(toString); in HWTEST_F_L0()
337 Local<JSValueRef> key = StringRef::NewFromUtf8(vm_, "TestKey"); in HWTEST_F_L0()
[all …]
/arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectgetvalue_fuzzer/
Dpttypesremoteobjectgetvalue_fuzzer.cpp34 Local<PrimitiveRef> val = JSValueRef::Undefined(vm); in PtTypesRemoteObjectGetValueFuzzTest()
36 Local<JSValueRef> ref = obj.GetValue(); in PtTypesRemoteObjectGetValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/objectset_fuzzer/
Dobjectset_fuzzer.cpp43 Local<JSValueRef> value(JSValueRef::Undefined(vm)); in ObjectSetFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/objecthas_fuzzer/
Dobjecthas_fuzzer.cpp43 Local<JSValueRef> value(JSValueRef::Undefined(vm)); in ObjectHasFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/objectdelete_fuzzer/
Dobjectdelete_fuzzer.cpp43 Local<JSValueRef> value(JSValueRef::Undefined(vm)); in ObjectDeleteFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefconstructor_fuzzer/
Dfunctionrefconstructor_fuzzer.cpp25 Local<JSValueRef> FuncRefConCallbackForTest(JsiRuntimeCallInfo* info) in FuncRefConCallbackForTest()
42 Local<JSValueRef> argv[1]; in FunctionRefConstructorFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesgeneratorfunctionremoteobject_fuzzer/
Dpttypesgeneratorfunctionremoteobject_fuzzer.cpp33 GeneratorFunctionRemoteObject obj(vm, JSValueRef::Undefined(vm)); in PtTypesGeneratorFunctionRemoteObjectFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/
Dpttypesremoteobjectsetvalue_fuzzer.cpp34 Local<PrimitiveRef> val = JSValueRef::Undefined(vm); in PtTypesRemoteObjectSetValueFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesfunctionremoteobject_fuzzer/
Dpttypesfunctionremoteobject_fuzzer.cpp33 Local<JSValueRef> exception = DebuggerApi::GetAndClearException(vm); in PtTypesFunctionRemoteObjectFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefnewclassfunction_fuzzer/
Dfunctionrefnewclassfunction_fuzzer.cpp24 Local<JSValueRef> FuncRefNewCFCallbackForTest(JsiRuntimeCallInfo* info) in FuncRefNewCFCallbackForTest()

12