/arkcompiler/toolchain/tooling/test/ |
D | debugger_params_test.cpp | 71 std::string msg; in HWTEST_F_L0() local 75 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 76 enableParams = EnableParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 81 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"maxScriptsCacheSize":100}})"; in HWTEST_F_L0() 82 enableParams = EnableParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 89 std::string msg; in HWTEST_F_L0() local 93 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 94 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 99 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 100 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() [all …]
|
D | dispatcher_test.cpp | 53 std::string msg = ""; in HWTEST_F_L0() local 54 auto dispatchRequest = std::make_unique<DispatchRequest>(msg); in HWTEST_F_L0() 57 msg = std::string() + R"({"id":0,"method":"Tracing.xxx","params":{}})"; in HWTEST_F_L0() 58 auto dispatchRequest1 = std::make_unique<DispatchRequest>(msg); in HWTEST_F_L0() 61 msg = std::string() + R"("":0)"; in HWTEST_F_L0() 62 auto dispatchRequest2 = std::make_unique<DispatchRequest>(msg); in HWTEST_F_L0() 65 msg = std::string() + R"({"method":"Tracing","params":{}})"; in HWTEST_F_L0() 66 auto dispatchRequest3 = std::make_unique<DispatchRequest>(msg); in HWTEST_F_L0() 68 msg = std::string() + R"({"id":0,"params":{}})"; in HWTEST_F_L0() 69 auto dispatchRequest9 = std::make_unique<DispatchRequest>(msg); in HWTEST_F_L0() [all …]
|
D | debugger_types_test.cpp | 71 std::string msg; in HWTEST_F_L0() local 75 msg = std::string() + R"({})"; in HWTEST_F_L0() 76 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 80 msg = std::string() + R"({"id":0,"method":"Debugger.Test"})"; in HWTEST_F_L0() 81 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 85 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 86 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 90 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 91 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 95 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":100}})"; in HWTEST_F_L0() [all …]
|
D | runtime_impl_test.cpp | 61 std::string msg = std::string() + R"({"id":0,"method":"Rumtime.test","params":{}})"; in HWTEST_F_L0() local 62 DispatchRequest request(msg); in HWTEST_F_L0() 66 msg = std::string() + R"({"id":0,"method":"Rumtime.enable","params":{}})"; in HWTEST_F_L0() 67 DispatchRequest request1(msg); in HWTEST_F_L0() 85 std::string msg = std::string() + R"({"id":0,"method":"Rumtime.enable","params":{}})"; in HWTEST_F_L0() local 86 DispatchRequest request1(msg); in HWTEST_F_L0() 104 std::string msg = std::string() + R"({"id":0,"method":"Rumtime.disable","params":{}})"; in HWTEST_F_L0() local 105 DispatchRequest request1(msg); in HWTEST_F_L0() 123 …std::string msg = std::string() + R"({"id":0,"method":"Rumtime.runIfWaitingForDebugger","params":{… in HWTEST_F_L0() local 124 DispatchRequest request1(msg); in HWTEST_F_L0() [all …]
|
D | protocol_handler_test.cpp | 57 std::string msg = std::string() + R"({"id":0,"method":"Tracing.Test","params":{}})"; in HWTEST_F_L0() local 58 protocol->DispatchCommand(msg + ""); in HWTEST_F_L0() 69 std::string msg = std::string() + R"({"id":0,"method":"Tracing.Test","params":{}})"; in HWTEST_F_L0() local 72 protocol->DispatchCommand(msg + ""); in HWTEST_F_L0() 83 std::string msg = std::string() + R"({"id":0,"method":"Tracing.Test","params":{}})"; in HWTEST_F_L0() local 86 protocol->DispatchCommand(msg + ""); in HWTEST_F_L0() 97 std::string msg = std::string() + R"({"id":0,"method":"Tracing.Test","params":{}})"; in HWTEST_F_L0() local 98 DispatchRequest request(msg); in HWTEST_F_L0() 100 msg = "error"; in HWTEST_F_L0() 101 DispatchResponse response = DispatchResponse::Create(code, msg); in HWTEST_F_L0() [all …]
|
D | heapprofiler_impl_test.cpp | 158 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() local 159 DispatchRequest request(msg); in HWTEST_F_L0() 162 msg = std::string() + R"({"id":0,"method":"Debugger.disable","params":{}})"; in HWTEST_F_L0() 163 DispatchRequest request1 = DispatchRequest(msg); in HWTEST_F_L0() 180 std::string msg = std::string() + R"({"id":0,"method":"HeapProfiler.disable","params":{}})"; in HWTEST_F_L0() local 181 DispatchRequest request(msg); in HWTEST_F_L0() 184 … msg = std::string() + R"({"id":0,"method":"HeapProfiler.disable","params":{"heapObjectId":"0"}})"; in HWTEST_F_L0() 185 DispatchRequest request1 = DispatchRequest(msg); in HWTEST_F_L0() 202 …std::string msg = std::string() + R"({"id":0,"method":"HeapProfiler.collectGarbage","params":{}})"; in HWTEST_F_L0() local 203 DispatchRequest request(msg); in HWTEST_F_L0() [all …]
|
D | profiler_impl_test.cpp | 131 … std::string msg = std::string() + R"({"id":0,"method":"Debugger.requestMemoryDump","params":{}})"; in HWTEST_F_L0() local 132 DispatchRequest request = DispatchRequest(msg); in HWTEST_F_L0() 170 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() local 171 DispatchRequest request(msg); in HWTEST_F_L0() 174 msg = std::string() + R"({"id":0,"method":"Debugger.disable","params":{}})"; in HWTEST_F_L0() 175 DispatchRequest request1 = DispatchRequest(msg); in HWTEST_F_L0() 192 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() local 193 DispatchRequest request(msg); in HWTEST_F_L0() 210 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() local 211 DispatchRequest request(msg); in HWTEST_F_L0() [all …]
|
D | debugger_impl_test.cpp | 93 std::string msg = std::string() + in HWTEST_F_L0() local 101 DispatchRequest request(msg); in HWTEST_F_L0() 123 std::string msg = std::string() + in HWTEST_F_L0() local 131 DispatchRequest request(msg); in HWTEST_F_L0() 154 std::string msg = std::string() + in HWTEST_F_L0() local 159 DispatchRequest request(msg); in HWTEST_F_L0() 182 std::string msg = std::string() + in HWTEST_F_L0() local 188 DispatchRequest request(msg); in HWTEST_F_L0() 210 std::string msg = std::string() + in HWTEST_F_L0() local 219 DispatchRequest request(msg); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/importElisionExportNonExportAndDefault/ |
D | MyComponent.ts | 21 interface MyFunction { msg: string; } 23 export const MyFunction = ({ msg }: MyFunction) => console.log(`Got message "${msg}"`); 25 AssertType(({ msg }: MyFunction) => console.log(`Got message "${msg}"`), "(MyFunction) => void"); 26 AssertType(msg, "string"); 27 AssertType(console.log(`Got message "${msg}"`), "void"); 29 AssertType(`Got message "${msg}"`, "string"); 30 AssertType(msg, "string");
|
D | main.ts | 23 MyFunction({msg: "Hello World"}); 24 AssertType(MyFunction({msg: "Hello World"}), "error"); 26 AssertType({msg: "Hello World"}, "{ msg: string; }"); 27 AssertType(msg, "string");
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_global.h | 33 static JSTaggedValue NotSupportEval(EcmaRuntimeCallInfo *msg); 35 static JSTaggedValue IsFinite(EcmaRuntimeCallInfo *msg); 37 static JSTaggedValue IsNaN(EcmaRuntimeCallInfo *msg); 39 static JSTaggedValue DecodeURI(EcmaRuntimeCallInfo *msg); 40 static JSTaggedValue EncodeURI(EcmaRuntimeCallInfo *msg); 41 static JSTaggedValue DecodeURIComponent(EcmaRuntimeCallInfo *msg); 42 static JSTaggedValue EncodeURIComponent(EcmaRuntimeCallInfo *msg); 44 static JSTaggedValue PrintEntrypoint(EcmaRuntimeCallInfo *msg); 45 static JSTaggedValue MarkModuleCollectable(EcmaRuntimeCallInfo *msg); 46 static JSTaggedValue CallJsBoundFunction(EcmaRuntimeCallInfo *msg); [all …]
|
D | builtins_cjs_module.cpp | 37 JSTaggedValue BuiltinsCjsModule::Compiler(EcmaRuntimeCallInfo *msg) in Compiler() argument 39 ASSERT(msg); in Compiler() 40 JSThread *thread = msg->GetThread(); in Compiler() 46 JSTaggedValue BuiltinsCjsModule::Load(EcmaRuntimeCallInfo *msg) in Load() argument 48 ASSERT(msg); in Load() 49 JSThread *thread = msg->GetThread(); in Load() 79 JSTaggedValue BuiltinsCjsModule::Require(EcmaRuntimeCallInfo *msg) in Require() argument 81 ASSERT(msg); in Require() 82 JSThread *thread = msg->GetThread(); in Require() 88 JSTaggedValue BuiltinsCjsModule::GetExportsForCircularRequire(EcmaRuntimeCallInfo *msg) in GetExportsForCircularRequire() argument [all …]
|
D | builtins_global.cpp | 37 JSTaggedValue BuiltinsGlobal::NotSupportEval(EcmaRuntimeCallInfo *msg) in NotSupportEval() argument 39 JSThread *thread = msg->GetThread(); in NotSupportEval() 46 JSTaggedValue BuiltinsGlobal::IsFinite(EcmaRuntimeCallInfo *msg) in IsFinite() argument 48 ASSERT(msg); in IsFinite() 49 JSThread *thread = msg->GetThread(); in IsFinite() 52 JSHandle<JSTaggedValue> numberInput = GetCallArg(msg, 0); in IsFinite() 65 JSTaggedValue BuiltinsGlobal::IsNaN(EcmaRuntimeCallInfo *msg) in IsNaN() argument 67 ASSERT(msg); in IsNaN() 68 JSThread *thread = msg->GetThread(); in IsNaN() 71 JSHandle<JSTaggedValue> numberInput = GetCallArg(msg, 0); in IsNaN() [all …]
|
D | builtins_cjs_module.h | 29 static JSTaggedValue Compiler(EcmaRuntimeCallInfo *msg); 31 static JSTaggedValue Load(EcmaRuntimeCallInfo *msg); 33 static JSTaggedValue Require(EcmaRuntimeCallInfo *msg); 35 static JSTaggedValue GetExportsForCircularRequire(EcmaRuntimeCallInfo *msg); 37 static JSTaggedValue UpdateChildren(EcmaRuntimeCallInfo *msg);
|
D | builtins_math.cpp | 35 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in Abs() local 36 JSTaggedNumber numberValue = JSTaggedValue::ToNumber(thread, msg); in Abs() 54 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in Acos() local 55 JSTaggedNumber numberValue = JSTaggedValue::ToNumber(thread, msg); in Acos() 73 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in Acosh() local 74 JSTaggedNumber numberValue = JSTaggedValue::ToNumber(thread, msg); in Acosh() 91 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in Asin() local 92 JSTaggedNumber numberValue = JSTaggedValue::ToNumber(thread, msg); in Asin() 109 JSHandle<JSTaggedValue> msg = GetCallArg(argv, 0); in Asinh() local 110 JSTaggedNumber numberValue = JSTaggedValue::ToNumber(thread, msg); in Asinh() [all …]
|
D | builtins_cjs_require.cpp | 50 JSTaggedValue BuiltinsCjsRequire::Main(EcmaRuntimeCallInfo *msg) in Main() argument 52 ASSERT(msg); in Main() 53 JSThread *thread = msg->GetThread(); in Main() 59 JSTaggedValue BuiltinsCjsRequire::Resolve(EcmaRuntimeCallInfo *msg) in Resolve() argument 61 ASSERT(msg); in Resolve() 62 JSThread *thread = msg->GetThread(); in Resolve()
|
D | builtins_generator.cpp | 38 JSHandle<JSTaggedValue> msg = GetThis(argv); in GeneratorPrototypeNext() local 39 if (!msg->IsGeneratorObject()) { in GeneratorPrototypeNext() 42 …GeneratorObject> generator(thread, JSGeneratorObject::Cast(*JSTaggedValue::ToObject(thread, msg))); in GeneratorPrototypeNext() 59 JSHandle<JSTaggedValue> msg = GetThis(argv); in GeneratorPrototypeReturn() local 60 if (!msg->IsGeneratorObject()) { in GeneratorPrototypeReturn() 63 …GeneratorObject> generator(thread, JSGeneratorObject::Cast(*JSTaggedValue::ToObject(thread, msg))); in GeneratorPrototypeReturn() 84 JSHandle<JSTaggedValue> msg = GetThis(argv); in GeneratorPrototypeThrow() local 85 if (!msg->IsGeneratorObject()) { in GeneratorPrototypeThrow() 88 …GeneratorObject> generator(thread, JSGeneratorObject::Cast(*JSTaggedValue::ToObject(thread, msg))); in GeneratorPrototypeThrow()
|
D | builtins_async_generator.cpp | 39 JSHandle<JSTaggedValue> msg = GetThis(argv); in AsyncGeneratorPrototypeNext() local 47 return JSAsyncGeneratorObject::AsyncGeneratorEnqueue(thread, msg, completionRecord); in AsyncGeneratorPrototypeNext() 57 JSHandle<JSTaggedValue> msg = GetThis(argv); in AsyncGeneratorPrototypeReturn() local 64 return JSAsyncGeneratorObject::AsyncGeneratorEnqueue(thread, msg, completionRecord); in AsyncGeneratorPrototypeReturn() 74 JSHandle<JSTaggedValue> msg = GetThis(argv); in AsyncGeneratorPrototypeThrow() local 81 return JSAsyncGeneratorObject::AsyncGeneratorEnqueue(thread, msg, completionRecord); in AsyncGeneratorPrototypeThrow()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | builtins_base.h | 36 static JSHandle<TaggedArray> GetArgsArray(EcmaRuntimeCallInfo *msg); 37 static inline JSHandle<JSTaggedValue> GetConstructor(EcmaRuntimeCallInfo *msg) in GetConstructor() argument 39 return msg->GetFunction(); in GetConstructor() 42 static inline JSHandle<JSTaggedValue> GetThis(EcmaRuntimeCallInfo *msg) in GetThis() argument 44 return msg->GetThis(); in GetThis() 47 static inline JSHandle<JSTaggedValue> GetNewTarget(EcmaRuntimeCallInfo *msg) in GetNewTarget() argument 49 return msg->GetNewTarget(); in GetNewTarget() 52 static inline JSHandle<JSTaggedValue> GetCallArg(EcmaRuntimeCallInfo *msg, uint32_t position) in GetCallArg() argument 54 if (position >= msg->GetArgsNumber()) { in GetCallArg() 55 JSThread *thread = msg->GetThread(); in GetCallArg() [all …]
|
D | builtins_base.cpp | 21 JSHandle<TaggedArray> BuiltinsBase::GetArgsArray(EcmaRuntimeCallInfo *msg) in GetArgsArray() argument 23 JSThread *thread = msg->GetThread(); in GetArgsArray() 25 uint32_t length = msg->GetArgsNumber(); in GetArgsArray() 28 array->Set(thread, i, GetCallArg(msg, i).GetTaggedValue()); in GetArgsArray()
|
/arkcompiler/runtime_core/templates/messages/ |
D | messages.h.erb | 30 % Messages.messages.each do |msg| 31 <%= msg.name %> = <%= msg.number %>, 38 % Messages.messages.each do |msg| 40 #define <%= msg.macro_name %>(<%= msg.args %>) \ 41 % level = msg.level.upcase 43 LOG(<%= level %>, <%= component %>) << <%= msg.stream_ops(true) %>; \ 45 % if msg.message # may be nil if short message is enough 46 LOG(DEBUG, <%= component %>) << <%= msg.stream_ops(false) %>; 54 % Messages.messages.each do |msg| 55 if (num == <%= Messages.enum_name %>::<%= msg.name %>) { return "<%= msg.name %>"; } [all …]
|
/arkcompiler/ets_frontend/test/scripts/ |
D | send_email.py | 39 def add_attachment(msg, file_list): argument 45 msg.attach(attachment) 48 def add_image(msg, img_dic): argument 54 msg.attach(img) 73 msg = MIMEMultipart() 74 msg['From'] = sender 75 msg['To'] = ", ".join(receiver) 76 msg['Subject'] = "Arkcompiler Test" 85 msg.attach(MIMEText(html, 'html', 'utf-8')) 86 add_attachment(msg, attachment_files) [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | utils.h | 49 explicit UnreachableException(const char *msg) : msg_(msg) {} in UnreachableException() argument 50 explicit UnreachableException(const std::string_view &msg) : msg_(msg) {} in UnreachableException() argument
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile_executor.cpp | 66 CString msg = "Load file with filename '" + name + "' failed, recordName '" + entry + "'"; in ExecuteFromFile() local 67 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromFile() 85 CString msg = "cannot find record '" + realEntry + "', please check the request path."; in ExecuteFromFile() local 86 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromFile() 121 …CString msg = "Load file with filename '" + normalName + "' failed, recordName '" + entryPoint.dat… in ExecuteFromBuffer() local 122 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBuffer() 132 CString msg = "cannot find record '" + entry + "', please check the request path."; in ExecuteFromBuffer() local 133 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteFromBuffer() 164 CString msg = "Load file with filename '" + name + "' failed, recordName '" + entry + "'"; in ExecuteModuleBuffer() local 165 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), Unexpected(false)); in ExecuteModuleBuffer() [all …]
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
D | library_loader_load.cpp | 33 char *msg = dlerror(); in Load() local 34 return msg != nullptr ? Unexpected(Error(msg)) : Unexpected(Error("no error message")); in Load()
|