Home
last modified time | relevance | path

Searched full:auto (Results 1 – 25 of 3430) sorted by relevance

12345678910>>...138

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_class_methods_returning_values/js_to_ets/
Dtest_class_methods.cpp27 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
28 auto ret = CallEtsMethod<bool>("TestReturnIntegerAsAny"); in TEST_F()
34 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
35 auto ret = CallEtsMethod<bool>("TestReturnStringAsAny"); in TEST_F()
42 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
43 auto ret = CallEtsMethod<bool>("TestReturnBigIntegerAsAny"); in TEST_F()
49 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
50 auto ret = CallEtsMethod<bool>("TestReturnBooleanAsAny"); in TEST_F()
56 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
57 auto ret = CallEtsMethod<bool>("TestReturnUndefinedAsAny"); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/verification/util/tests/
Denvironment.cpp38 …static const auto WS = Par::OfCharset(" \t\r\n"); // NOLINT(readability-static-accessed-through-i… in EnvOptions()
39 …static const auto DELIM = Par::OfString(";"); // NOLINT(readability-static-accessed-through-i… in EnvOptions()
40 …static const auto NAME_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end)… in EnvOptions()
46 static const auto NAME = in EnvOptions()
49 …static const auto EQ = NAME.OfString("="); // NOLINT(readability-static-accessed… in EnvOptions()
50 …static const auto BOOL_TRUE = EQ.OfString("true"); // NOLINT(readability-static-accessed… in EnvOptions()
51 …static const auto BOOL_FALSE = BOOL_TRUE.OfString("false"); // NOLINT(readability-static-accessed… in EnvOptions()
52 static const auto BOOL_HANDLER = [](auto a, Context &c, auto s, [[maybe_unused]] auto to, in EnvOptions()
53 [[maybe_unused]] auto end) { in EnvOptions()
63 static const auto BOOL = BOOL_FALSE | BOOL_TRUE |= BOOL_HANDLER; in EnvOptions()
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/apply/
Dapply_dynamic.cpp31 auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
35 auto g_dynG = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
37 auto g_icreateApplyLambda0 = [](AbckitFile *file, AbckitCoreFunction * /*method*/, AbckitGraph *gra… in __anonbaad4aa60202()
38 auto *ldlexvar = g_dynG->iCreateLdlexvar(graph, 0x0, 0x0); in __anonbaad4aa60202()
39 auto *ldundefined = g_dynG->iCreateLdundefined(graph); in __anonbaad4aa60202()
40 auto *createemptyarray = g_dynG->iCreateCreateemptyarray(graph); in __anonbaad4aa60202()
41 auto *const0 = g_implG->gFindOrCreateConstantU64(graph, 0x0); in __anonbaad4aa60202()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dencode_visitor.cpp25 auto [dst, src0] = enc->GetCodegen()->ConvertRegisters<1U>(inst); \
34 auto [dst, src0, src1] = enc->GetCodegen()->ConvertRegisters<2U>(inst); \
43 auto [dst, src0, src1] = enc->GetCodegen()->ConvertRegisters<2U>(inst); \
44 auto imm_shift_inst = static_cast<BinaryShiftedRegisterOperation *>(inst); \
45 auto imm_value = static_cast<uint32_t>(imm_shift_inst->GetImm()) & (dst.GetSize() - 1); \
46 auto shift = Shift(src1, imm_shift_inst->GetShiftType(), imm_value); \
65 auto binop = inst->CastTo##opc##I(); \ in ENCODE_INST_WITH_SHIFTED_OPERAND()
67 auto [dst, src0] = enc->GetCodegen()->ConvertRegisters<1U>(inst); \ in ENCODE_INST_WITH_SHIFTED_OPERAND()
90 auto type = inst->GetType(); \
91 auto binop = inst->CastTo##opc##I(); \
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/
Dscenarios.cpp25 auto ret = CallEtsMethod<bool>("TestStandaloneFunctionCall"); in TEST_F()
31 auto ret = CallEtsMethod<bool>("TestClassMethodCall"); in TEST_F()
39 auto ret = CallEtsMethod<bool>("TestInterfaceMethodCall"); in TEST_F()
46 auto ret = CallEtsMethod<bool>("TestClassGetter"); in TEST_F()
52 auto ret = CallEtsMethod<bool>("TestClassSetter"); in TEST_F()
58 auto ret = CallEtsMethod<bool>("TestLambdaFunctionCall"); in TEST_F()
64 auto ret = CallEtsMethod<bool>("TestGenericFunctionCall"); in TEST_F()
70 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeAny"); in TEST_F()
76 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeUnknown"); in TEST_F()
82 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeUndefined"); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/libllvmbackend/
Dets_llvm_ir_constructor_gen.inl56 auto offset = GetGraph()->GetRuntime()->GetArrayU16ClassPointerTlsOffset(GetGraph()->GetArch());
57auto klass = llvmbackend::runtime_calls::LoadTLSValue(&builder_, arkInterface_, offset, builder_.g…
58 auto eid = RuntimeInterface::EntrypointId::STRING_BUILDER_APPEND_BOOL;
59auto call = CreateFastPathCall(inst, eid, {GetInputValue(inst, 0), GetInputValue(inst, 1), klass});
66 auto offset = GetGraph()->GetRuntime()->GetArrayU16ClassPointerTlsOffset(GetGraph()->GetArch());
67auto klass = llvmbackend::runtime_calls::LoadTLSValue(&builder_, arkInterface_, offset, builder_.g…
68 auto eid = RuntimeInterface::EntrypointId::STRING_BUILDER_APPEND_CHAR_COMPRESSED;
69auto call = CreateFastPathCall(inst, eid, {GetInputValue(inst, 0), GetInputValue(inst, 1), klass});
76 auto call = CreateStringBuilderAppendLong(inst);
83 auto call = CreateStringBuilderAppendLong(inst);
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
Dinspector_server.cpp37 …server_.OnCall("Debugger.enable", [](auto, auto &result, auto &) { result.AddProperty("debuggerId"… in InspectorServer() argument
66 sessionManager_.EnumerateSessions([this](auto &id, auto thread) { in OnOpen()
90 auto sessionId = sessionManager_.GetSessionIdByThread(thread); in CallDebuggerPaused()
92 server_.Call(sessionId, "Debugger.paused", [&](auto &params) { in CallDebuggerPaused()
116 auto sessionId = sessionManager_.GetSessionIdByThread(thread); in CallDebuggerScriptParsed()
117 … server_.Call(sessionId, "Debugger.scriptParsed", [&sourceFile, &thread, &scriptId](auto &params) { in CallDebuggerScriptParsed()
132 auto sessionId = sessionManager_.GetSessionIdByThread(thread); in CallRuntimeConsoleApiCalled()
134 server_.Call(sessionId, "Runtime.consoleAPICalled", [&](auto &params) { in CallRuntimeConsoleApiCalled()
159 for (const auto &argument : arguments) { in CallRuntimeConsoleApiCalled()
168 auto sessionId = sessionManager_.GetSessionIdByThread(thread); in CallRuntimeExecutionContextCreated()
[all …]
Ddebug_info_cache.cpp28 std::forward_as_tuple(file, [this, &file](auto methodId, auto sourceName) { in AddPandaFile()
38 auto method = frame.GetMethod(); in GetSourceLocation()
39 auto pandaFile = method->GetPandaFile(); in GetSourceLocation()
40 auto &debugInfo = GetDebugInfo(pandaFile); in GetSourceLocation()
49 auto &table = debugInfo.GetLineNumberTable(method->GetFileId()); in GetSourceLocation()
50 auto lineNumberIter = std::upper_bound(table.begin(), table.end(), frame.GetBytecodeOffset(), in GetSourceLocation()
51 … [](auto offset, auto &entry) { return offset < entry.offset; }); in GetSourceLocation()
60 auto method = frame.GetMethod(); in GetCurrentLineLocations()
61 auto pandaFile = method->GetPandaFile(); in GetCurrentLineLocations()
62 auto methodId = method->GetFileId(); in GetCurrentLineLocations()
[all …]
/arkcompiler/runtime_core/libabckit/tests/helpers/
Dhelpers_mode.cpp31 static auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 static auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 static auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 static auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
58 constexpr auto INPUT_PATH = ABCKIT_ABC_DIR "wrong_mode_tests/mode_test_static.abc"; in OpenWrongModeFile()
59 auto *file = g_impl->openAbc(INPUT_PATH, strlen(INPUT_PATH)); in OpenWrongModeFile()
60 auto *foo = helpers::FindMethodByName(file, "foo"); in OpenWrongModeFile()
61 auto *graph = CreateGraphFromFunctionStatic(foo); in OpenWrongModeFile()
64 constexpr auto INPUT_PATH = ABCKIT_ABC_DIR "wrong_mode_tests/mode_test_dynamic.abc"; in OpenWrongModeFile()
65 auto *file = g_impl->openAbc(INPUT_PATH, strlen(INPUT_PATH)); in OpenWrongModeFile()
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/define/
Ddefineclasswithbuffer_dynamic.cpp29 static auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
30 static auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
31 static auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 static auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 static auto g_dynG = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
41 auto output = helpers::ExecuteDynamicAbc( in TEST_F()
49auto *inst = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINECLASSWITHBUFFER); in TEST_F()
50 auto *litArr = g_implG->iGetLiteralArray(inst); in TEST_F()
51 auto *input = g_implG->iGetInput(inst, 0); in TEST_F()
52 auto *user = g_implG->iGetNext(inst); in TEST_F()
[all …]
Ddefinegettersetterbyvalue_dynamic.cpp29 static auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
30 static auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
31 static auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 static auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 static auto g_dynG = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
41 auto output = in TEST_F()
50auto *getterFunc = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TEST_F()
51auto *createObj = helpers::FindLastInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_CREATEOBJECTWITHBUFFE… in TEST_F()
52auto *ldundefined = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_LDUNDEFINED); in TEST_F()
53 auto *ldfalse = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_LDFALSE); in TEST_F()
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/create/
Dcreateobjectwithexcludedkeys_dynamic.cpp30 static auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
31 static auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 static auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 static auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 static auto g_dynG = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
40auto *createobjectwithbuffer = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_CREATEO… in FillMainBb1()
41 auto *stringValue = g_implM->createString(file, "value", strlen("value")); in FillMainBb1()
42 auto *stringAge = g_implM->createString(file, "age", strlen("age")); in FillMainBb1()
43 auto *loadStringValue = g_dynG->iCreateLoadString(graph, stringValue); in FillMainBb1()
44 auto *loadStringAge = g_dynG->iCreateLoadString(graph, stringAge); in FillMainBb1()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
Dintrinsics_api_impl.cpp30 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeFinalizationRegistryCallback()
31 auto ctx = InteropCtx::Current(coro); in JSRuntimeFinalizationRegistryCallback()
40 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueDouble()
41 auto ctx = InteropCtx::Current(coro); in JSRuntimeNewJSValueDouble()
47 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueBoolean()
48 auto ctx = InteropCtx::Current(coro); in JSRuntimeNewJSValueBoolean()
54 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueString()
55 auto ctx = InteropCtx::Current(coro); in JSRuntimeNewJSValueString()
71 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueObject()
72 auto ctx = InteropCtx::Current(coro); in JSRuntimeNewJSValueObject()
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/call_runtime/
Dcall_runtime_dynamic.cpp31 auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
35 auto g_dynG = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
37 auto g_icreateCallruntimeCallinit1Lambda = [](AbckitFile *file, AbckitCoreFunction * /*method*/, Ab… in __anon207942d80202()
38 auto *newlexenv = g_dynG->iCreateNewlexenv(graph, 0x1); in __anon207942d80202()
39 auto *poplexenv = g_dynG->iCreatePoplexenv(graph); in __anon207942d80202()
41 auto *classConstr = helpers::FindMethodByName(file, "innerConstr"); in __anon207942d80202()
43 auto arr = std::vector<AbckitLiteral *>(); in __anon207942d80202()
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dunique_fd_test.cpp35 auto fd_a = UniqueFd();
36 auto fd_b = UniqueFd(dupDF.stdinValue);
37 auto fd_c = UniqueFd(dupDF.stdoutValue);
38 auto fd_d = UniqueFd(dupDF.stferrValue);
45 auto fd_e = std::move(fd_a);
46 auto fd_f = std::move(fd_b);
47 auto fd_g = std::move(fd_c);
48 auto fd_h = std::move(fd_d);
63 auto fd_a = UniqueFd();
64 auto fd_b = UniqueFd(dupDF.stdinValue);
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dmcr_circuit_builder.cpp26 auto currentLabel = env_->GetCurrentLabel(); in ObjectTypeCheck()
27 auto currentControl = currentLabel->GetControl(); in ObjectTypeCheck()
28 auto currentDepend = currentLabel->GetDepend(); in ObjectTypeCheck()
42 auto currentLabel = env_->GetCurrentLabel(); in HeapObjectCheck()
43 auto currentControl = currentLabel->GetControl(); in HeapObjectCheck()
44 auto currentDepend = currentLabel->GetDepend(); in HeapObjectCheck()
56 auto currentLabel = env_->GetCurrentLabel(); in EcmaObjectCheck()
57 auto currentControl = currentLabel->GetControl(); in EcmaObjectCheck()
58 auto currentDepend = currentLabel->GetDepend(); in EcmaObjectCheck()
59 auto frameState = acc_.FindNearestFrameState(currentDepend); in EcmaObjectCheck()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_incorrect_conversion_types/ts_to_arkts/
Dincorrect_conversion_types.cpp25 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
31 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
37 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
43 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
49 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
55 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
61 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
67 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
73 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
79 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F()
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/get_insts/
Dgettemplateobject_dynamic.cpp31 auto g_impl = AbckitGetApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
32 auto g_implI = AbckitGetInspectApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
33 auto g_implM = AbckitGetModifyApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34 auto g_implG = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
35 auto g_dynG = AbckitGetIsaApiDynamicImpl(ABCKIT_VERSION_RELEASE_1_0_0);
37 auto g_icreateGettemplateobject1Lambda = [](AbckitFile *file, AbckitCoreFunction * /*method*/, Abck… in __anon6679643d0202()
38 auto *worldStr = g_implM->createString(file, "world", strlen("world")); in __anon6679643d0202()
39 auto *loadStringWorld = g_dynG->iCreateLoadString(graph, worldStr); in __anon6679643d0202()
40 auto *stringPrint = g_implM->createString(file, "print", strlen("print")); in __anon6679643d0202()
41 auto *tryldglobalbyname = g_dynG->iCreateTryldglobalbyname(graph, stringPrint); in __anon6679643d0202()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
Dast_builder_test.cpp106 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F()
107 auto right = NumberLiteralBuilder(Allocator()).SetValue("5").Build(); in TEST_F()
108 auto binaryExpr = BinaryExpressionBuilder(Allocator()) in TEST_F()
113 auto awaitExpr = AwaitExpressionBuilder(Allocator()).SetArgument(binaryExpr).Build(); in TEST_F()
119 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F()
120 auto right = NumberLiteralBuilder(Allocator()).SetValue("5").Build(); in TEST_F()
121 auto binaryExpr = BinaryExpressionBuilder(Allocator()) in TEST_F()
126 auto awaitExpr = AwaitExpressionBuilder(Allocator()).SetArgument(binaryExpr).Build(); in TEST_F()
132 auto bigint = BigIntLiteralBuilder(Allocator()).SetValue("123").Build(); in TEST_F()
138 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dinstruction_combine_test.cpp76 auto x = builder.Arguments(1); in HWTEST_F_L0()
77 auto const_i64_0 = builder.Int64(0); in HWTEST_F_L0()
78 auto test_x_add_0 = builder.Int64Add(x, const_i64_0); in HWTEST_F_L0()
83 auto const_i64_1 = builder.Int64(1); in HWTEST_F_L0()
84 auto const_i64_2 = builder.Int64(2); in HWTEST_F_L0()
85 auto result = instcombie.VisitGate(builder.Int64Add(const_i64_1, const_i64_2)); in HWTEST_F_L0()
90 auto const_i64_max = builder.Int64(9223372036854775807); in HWTEST_F_L0()
91 auto const_i64_1 = builder.Int64(1); in HWTEST_F_L0()
92 auto result = instcombie.VisitGate(builder.Int64Add(const_i64_max, const_i64_1)); in HWTEST_F_L0()
100 auto y = builder.Arguments(2); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dgc_barriers.cpp34 auto func = builder->GetInsertBlock()->getParent(); in EmitPreWRB()
35 auto module = func->getParent(); in EmitPreWRB()
36 auto &ctx = module->getContext(); in EmitPreWRB()
37 auto initialBb = builder->GetInsertBlock(); in EmitPreWRB()
39 auto createUniqBasicBlockName = [&initialBb](const std::string &suffix) { in EmitPreWRB()
42auto createBasicBlock = [&ctx, &initialBb, &createUniqBasicBlockName](const std::string &suffix) { in EmitPreWRB()
43 auto name = createUniqBasicBlockName(suffix); in EmitPreWRB()
44 auto funcIbb = initialBb->getParent(); in EmitPreWRB()
48 auto loadValueBb = createBasicBlock("pre_wrb_load_value"); in EmitPreWRB()
49 auto callRuntimeBb = createBasicBlock("pre_wrb_call_runtime"); in EmitPreWRB()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dunique_fd_test.cpp41 auto fdA = UniqueFd(); in TEST()
42 auto fdB = UniqueFd(dupDf.stdinValue); in TEST()
43 auto fdC = UniqueFd(dupDf.stdoutValue); in TEST()
44 auto fdD = UniqueFd(dupDf.stferrValue); in TEST()
51 auto fdE = std::move(fdA); in TEST()
52 auto fdF = std::move(fdB); in TEST()
53 auto fdG = std::move(fdC); in TEST()
54 auto fdH = std::move(fdD); in TEST()
70 auto fdA = UniqueFd(); in TEST()
71 auto fdB = UniqueFd(dupDf.stdinValue); in TEST()
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyProgramProto.cpp23 for (const auto &[name, record] : program.record_table) { in Serialize()
24 auto *recordMap = protoProgram.add_recordtable(); in Serialize()
26 auto *protoRecord = recordMap->mutable_value(); in Serialize()
30 for (const auto &[name, func] : program.function_table) { in Serialize()
31 auto *functionMap = protoProgram.add_functiontable(); in Serialize()
33 auto *protoFunc = functionMap->mutable_value(); in Serialize()
37 for (const auto &[name, array] : program.literalarray_table) { in Serialize()
38 auto *literalarrayMap = protoProgram.add_literalarraytable(); in Serialize()
40 auto *protoArray = literalarrayMap->mutable_value(); in Serialize()
43 for (const auto &str : program.strings) { in Serialize()
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DenumLowering.cpp33auto *const paramIdent = checker->AllocNode<ir::Identifier>(name, typeAnnotation, checker->Allocat… in MakeFunctionParam()
34 auto *const param = checker->AllocNode<ir::ETSParameterExpression>(paramIdent, nullptr); in MakeFunctionParam()
42auto *const refIdent = checker->AllocNode<ir::Identifier>(paramExpr->Ident()->Name(), checker->All… in MakeParamRefIdent()
49 auto *const ident = checker->AllocNode<ir::Identifier>(name, checker->Allocator()); in MakeTypeReference()
50 auto *const referencePart = checker->AllocNode<ir::ETSTypeReferencePart>(ident); in MakeTypeReference()
57 auto *const functionExpr = checker->AllocNode<ir::FunctionExpression>(function); in MakeMethodDef()
58 auto *const identClone = ident->Clone(checker->Allocator(), nullptr); in MakeMethodDef()
60 auto *const methodDef = checker->AllocNode<ir::MethodDefinition>( in MakeMethodDef()
80 auto *const function = checker_->AllocNode<ir::ScriptFunction>( in MakeFunction()
107 for (const auto *const member : enumDecl->Members()) { in MakeArray()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/standalone_function/js_to_ets/
Darg_type.cpp25 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeAny"); in TEST_F()
31 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeUnknown"); in TEST_F()
37 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeUndefined"); in TEST_F()
43 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeDouble"); in TEST_F()
49 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeByte"); in TEST_F()
55 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeShort"); in TEST_F()
61 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeInt"); in TEST_F()
67 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeLong"); in TEST_F()
73 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeFloat"); in TEST_F()
79 auto ret = CallEtsMethod<bool>("TestFunctionArgTypeChar"); in TEST_F()
[all …]

12345678910>>...138