Home
last modified time | relevance | path

Searched refs:StringRef (Results 1 – 23 of 23) sorted by relevance

/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.h31 …al<JSValueRef> GetValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<StringRef> name);
33 Local<StringRef> name, Local<JSValueRef> value);
44 …ValueRef> GetLocalValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<StringRef> name);
46 Local<StringRef> name);
47 …alueRef> GetModuleValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<StringRef> name);
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);
55 Local<StringRef> name, Local<JSValueRef> value);
56 static bool SetGlobalValue(const EcmaVM *vm, Local<StringRef> name, Local<JSValueRef> value);
Ddebugger_executor.cpp26 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "debuggerSetValue"), FunctionRef::New( in Initialize()
28 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "debuggerGetValue"), FunctionRef::New( in Initialize()
48 Local<JSValueRef> value = GetValue(vm, frameHandler.get(), Local<StringRef>(name)); in DebuggerGetValue()
58 std::string varName = Local<StringRef>(name)->ToString(); in DebuggerGetValue()
79 if (SetValue(vm, frameHandler.get(), Local<StringRef>(name), value)) { in DebuggerSetValue()
83 std::string varName = StringRef::Cast(*name)->ToString(); in DebuggerSetValue()
88 …buggerExecutor::GetValue(const EcmaVM *vm, const FrameHandler *frameHandler, Local<StringRef> name) in GetValue()
112 Local<StringRef> name, Local<JSValueRef> value) in SetValue()
132 Local<StringRef> msg = StringRef::NewFromUtf8(vm, error.c_str()); in ThrowException()
138 Local<StringRef> name) in GetLocalValue()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/stringrefwriteutf8_fuzzer/
Dstringrefwriteutf8_fuzzer.cpp36 Local<StringRef> res = StringRef::StringRef::NewFromUtf8(vm, (char*)data, (int)size); in StringRefWriteUtf8FuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp130 Local<ObjectRef> key = StringRef::NewFromUtf8(vm_, "Number"); in HWTEST_F_L0()
146 Local<ObjectRef> key = StringRef::NewFromUtf8(vm_, "Test"); in HWTEST_F_L0()
163 Local<ObjectRef> jsonString = StringRef::NewFromUtf8(vm_, test); in HWTEST_F_L0()
168 Local<ObjectRef> keyString = StringRef::NewFromUtf8(vm_, "orientation"); in HWTEST_F_L0()
176 Local<StringRef> origin = StringRef::NewFromUtf8(vm_, "1"); in HWTEST_F_L0()
177 Local<StringRef> target1 = StringRef::NewFromUtf8(vm_, "1"); in HWTEST_F_L0()
196 Local<StringRef> origin = StringRef::NewFromUtf8(vm_, "1"); in HWTEST_F_L0()
197 Local<StringRef> typeString = origin->Typeof(vm_); in HWTEST_F_L0()
208 Local<StringRef> description = StringRef::NewFromUtf8(vm_, "test"); in HWTEST_F_L0()
219 Local<StringRef> testString = StringRef::NewFromUtf8(vm_, test.c_str()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/execute_fuzzer/
Dexecute_fuzzer.cpp33 Local<StringRef> entry = StringRef::NewFromUtf8(vm, PANDA_MAIN_FUNCTION); in ExecuteFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesobjectremoteobject_fuzzer/
Dpttypesobjectremoteobject_fuzzer.cpp33 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()
/arkcompiler/ets_runtime/test/fuzztest/jsonstringify_fuzzer/
Djsonstringify_fuzzer.cpp47 Local<StringRef> res = StringRef::NewFromUtf8(vm, test, (int)size); in JSONStringifyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsonparse_fuzzer/
Djsonparse_fuzzer.cpp47 Local<StringRef> res = StringRef::NewFromUtf8(vm, test, (int)size); in JSONParseFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h46 class StringRef; variable
402 Local<StringRef> ToString(const EcmaVM *vm);
480 Local<StringRef> Typeof(const EcmaVM *vm);
547 class PUBLIC_API StringRef : public PrimitiveRef {
549 static inline StringRef *Cast(JSValueRef *value) in Cast()
552 return static_cast<StringRef *>(value); in Cast()
554 static Local<StringRef> NewFromUtf8(const EcmaVM *vm, const char *utf8, int length = -1);
555 static Local<StringRef> NewFromUtf16(const EcmaVM *vm, const char16_t *utf16, int length = -1);
562 static Local<StringRef> GetNapiWrapperString(const EcmaVM *vm);
567 static Local<SymbolRef> New(const EcmaVM *vm, Local<StringRef> description);
[all …]
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp1217 Local<StringRef> StringRef::NewFromUtf8(const EcmaVM *vm, const char *utf8, int length) in NewFromUtf8()
1222 return JSNApiHelper::ToLocal<StringRef>(current); in NewFromUtf8()
1225 return JSNApiHelper::ToLocal<StringRef>(current); in NewFromUtf8()
1228 Local<StringRef> StringRef::NewFromUtf16(const EcmaVM *vm, const char16_t *utf16, int length) in NewFromUtf16()
1233 return JSNApiHelper::ToLocal<StringRef>(current); in NewFromUtf16()
1236 return JSNApiHelper::ToLocal<StringRef>(current); in NewFromUtf16()
1239 std::string StringRef::ToString() in ToString()
1244 uint32_t StringRef::Length() in Length()
1249 int32_t StringRef::Utf8Length(const EcmaVM *vm) in Utf8Length()
1256 int StringRef::WriteUtf8(char *buffer, int length, bool isWriteBuffer) in WriteUtf8()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/stringrefnewfromutf8_fuzzer/
Dstringrefnewfromutf8_fuzzer.cpp35 StringRef::NewFromUtf8(vm, (char*)data, (int)size); in StringRefNewFromUtf8FuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesstringremoteobject_fuzzer/
Dpttypesstringremoteobject_fuzzer.cpp33 StringRemoteObject obj(vm, StringRef::NewFromUtf8(vm, (const char*)data, size)); in PtTypesStringRemoteObjectFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypesprimitiveremoteobject_fuzzer/
Dpttypesprimitiveremoteobject_fuzzer.cpp33 PrimitiveRemoteObject obj(vm, StringRef::NewFromUtf8(vm, (const char*)data, size)); in PtTypesPrimitiveRemoteObjectFuzzTest()
/arkcompiler/toolchain/test/fuzztest/pttypessymbolremoteobject_fuzzer/
Dpttypessymbolremoteobject_fuzzer.cpp33 …SymbolRemoteObject obj(vm, SymbolRef::New(vm, StringRef::NewFromUtf8(vm, (const char*)data, size))… in PtTypesSymbolRemoteObjectFuzzTest()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp306 Local<JSValueRef> DebuggerApi::GetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name) in GetGlobalValue()
331 bool DebuggerApi::SetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name, Local<JSValueRef> val… in SetGlobalValue()
914 Local<JSValueRef> jsKey = StringRef::NewFromUtf8(ecmaVm, "key"); in GetHashMapValue()
915 Local<JSValueRef> jsValue = StringRef::NewFromUtf8(ecmaVm, "value"); in GetHashMapValue()
947 Local<JSValueRef> jsValue = StringRef::NewFromUtf8(ecmaVm, "value"); in GetHashSetValue()
979 Local<JSValueRef> jsKey = StringRef::NewFromUtf8(ecmaVm, "key"); in GetLightWeightMapValue()
980 Local<JSValueRef> jsValue = StringRef::NewFromUtf8(ecmaVm, "value"); in GetLightWeightMapValue()
1003 Local<JSValueRef> jsValue = StringRef::NewFromUtf8(ecmaVm, "value"); in GetLightWeightSetValue()
1071 Local<JSValueRef> jsKey = StringRef::NewFromUtf8(ecmaVm, "key"); in GetPlainArrayValue()
1072 Local<JSValueRef> jsValue = StringRef::NewFromUtf8(ecmaVm, "value"); in GetPlainArrayValue()
[all …]
Ddebugger_api.h79 static Local<JSValueRef> GetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name);
80 … static bool SetGlobalValue(const EcmaVM *ecmaVm, Local<StringRef> name, Local<JSValueRef> value);
/arkcompiler/ets_runtime/
Dlibark_jsruntime.map45 panda::StringRef::*;
/arkcompiler/toolchain/tooling/agent/
Druntime_impl.cpp161 auto error = Exception::EvalError(vm_, StringRef::NewFromUtf8(vm_, "Unsupport eval now")); in CallFunctionOn()
615 objRef->Set(vm_, StringRef::NewFromUtf8(vm_, "key"), jsKey); in GetMapValue()
616 objRef->Set(vm_, StringRef::NewFromUtf8(vm_, "value"), jsValue); in GetMapValue()
641 objRef->Set(vm_, StringRef::NewFromUtf8(vm_, "key"), jsKey); in GetWeakMapValue()
642 objRef->Set(vm_, StringRef::NewFromUtf8(vm_, "value"), jsValue); in GetWeakMapValue()
666 objRef->Set(vm_, StringRef::NewFromUtf8(vm_, "value"), elementRef); in GetSetValue()
693 objRef->Set(vm_, StringRef::NewFromUtf8(vm_, "value"), elementRef); in GetWeakSetValue()
737 jsValueRef = StringRef::NewFromUtf8(vm_, strFlags.c_str()); in GetRegExpValue()
740 jsValueRef = StringRef::NewFromUtf8(vm_, strSource.c_str()); in GetRegExpValue()
Ddebugger_impl.cpp661 Exception::EvalError(vm_, StringRef::NewFromUtf8(vm_, msg.data()))); in EvaluateOnCallFrame()
1262 name = StringRef::NewFromUtf8(vm_, funcName.c_str()); in GetLocalVariables()
1267 name = StringRef::NewFromUtf8(vm_, varName.c_str()); in GetLocalVariables()
1309 Local<JSValueRef> name = StringRef::NewFromUtf8(vm_, varName.c_str()); in GetClosureVariables()
1359 Local<JSValueRef> name = StringRef::NewFromUtf8(vm_, varName.data()); in UpdateScopeObject()
1382 Exception::EvalError(vm_, StringRef::NewFromUtf8(vm_, "Native Frame not support."))); in CmptEvaluateValue()
1388 Exception::EvalError(vm_, StringRef::NewFromUtf8(vm_, "Internal error."))); in CmptEvaluateValue()
1399 Local<StringRef> name = StringRef::NewFromUtf8(vm_, varName.c_str()); in CmptEvaluateValue()
1424 Exception::EvalError(vm_, StringRef::NewFromUtf8(vm_, "Unsupported expression."))); in CmptEvaluateValue()
1439 … taggedValue = StringRef::NewFromUtf8(vm_, varValue.substr(1, varValue.length() - 2).c_str()); in ConvertToLocal()
/arkcompiler/toolchain/tooling/test/
Dpt_types_test.cpp401 …SymbolRemoteObject obj(ecmaVm, SymbolRef::New(ecmaVm, StringRef::NewFromUtf8(ecmaVm, (const char*)… in HWTEST_F_L0()
466 Local<JSValueRef> name = StringRef::NewFromUtf8(ecmaVm, "name"); in HWTEST_F_L0()
724 Local<SymbolRef> symbol = SymbolRef::New(ecmaVm, StringRef::NewFromUtf8(ecmaVm, "test")); in HWTEST_F_L0()
726 property.SetGetter(StringRef::NewFromUtf8(ecmaVm, "test")); in HWTEST_F_L0()
727 property.SetSetter(StringRef::NewFromUtf8(ecmaVm, "test")); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp312 return globalObject->Get(vm, JSNApiHelper::ToLocal<StringRef>(funcName)); in GetRequireNativeModuleFunc()
326 arguments[0] = StringRef::NewFromUtf8(vm, soName.c_str()); in MakeAppArgs()
328 arguments.emplace_back(StringRef::NewFromUtf8(vm, path.c_str())); in MakeAppArgs()
335 arguments.emplace_back(StringRef::NewFromUtf8(vm, "")); in MakeInternalArgs()
337 arguments.emplace_back(StringRef::NewFromUtf8(vm, moduleDir.c_str())); in MakeInternalArgs()
351 arguments.emplace_back(StringRef::NewFromUtf8(vm, moduleName.c_str())); in LoadNativeModule()
/arkcompiler/toolchain/tooling/base/
Dpt_types.cpp121 return std::make_unique<StringRemoteObject>(ecmaVm, Local<StringRef>(tagged)); in FromTagged()
261 StringRemoteObject::StringRemoteObject([[maybe_unused]] const EcmaVM *ecmaVm, Local<StringRef> tagg… in StringRemoteObject()
658 Local<JSValueRef> name = StringRef::NewFromUtf8(ecmaVm, "name"); in DescriptionForError()
661 Local<JSValueRef> message = StringRef::NewFromUtf8(ecmaVm, "message"); in DescriptionForError()
759 Local<JSValueRef> name = StringRef::NewFromUtf8(ecmaVm, "name"); in DescriptionForGeneratorObject()
912 Local<StringRef> name = tagged->GetName(ecmaVm); in DescriptionForFunction()
926 Local<StringRef> name = tagged->GetName(ecmaVm); in DescriptionForGeneratorFunction()
Dpt_types.h499 StringRemoteObject(const EcmaVM *ecmaVm, Local<StringRef> tagged);