| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_class_methods_returning_values/js_to_ets/ |
| D | test_class_methods.cpp | 27 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F() 28 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestReturnIntegerAsAny"); in TEST_F() 34 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F() 35 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestReturnStringAsAny"); in TEST_F() 42 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F() 43 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestReturnBigIntegerAsAny"); in TEST_F() 49 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F() 50 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestReturnBooleanAsAny"); in TEST_F() 56 // NOLINTNEXTLINE(modernize-use-auto) in TEST_F() 57 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestReturnUndefinedAsAny"); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/tests/ |
| D | environment.cpp | 39 …static const auto WS = Par::OfCharset(" \t\r\n"); // NOLINT(readability-static-accessed-through-i… in EnvOptions() 40 …static const auto DELIM = Par::OfString(";"); // NOLINT(readability-static-accessed-through-i… in EnvOptions() 41 …static const auto NAME_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end)… in EnvOptions() 47 static const auto NAME = in EnvOptions() 50 …static const auto EQ = NAME.OfString("="); // NOLINT(readability-static-accessed… in EnvOptions() 51 …static const auto BOOL_TRUE = EQ.OfString("true"); // NOLINT(readability-static-accessed… in EnvOptions() 52 …static const auto BOOL_FALSE = BOOL_TRUE.OfString("false"); // NOLINT(readability-static-accessed… in EnvOptions() 53 static const auto BOOL_HANDLER = [](auto a, Context &c, auto s, [[maybe_unused]] auto to, in EnvOptions() 54 [[maybe_unused]] auto end) { in EnvOptions() 64 static const auto BOOL = BOOL_FALSE | BOOL_TRUE |= BOOL_HANDLER; in EnvOptions() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
| D | ir_build_intrinsics_ets.cpp | 35 auto methodIndex = bcInst->GetId(0).AsIndex(); in BuildIsFiniteIntrinsic() 36 auto methodId = GetRuntime()->ResolveMethodIndex(GetMethod(), methodIndex); in BuildIsFiniteIntrinsic() 37 auto type = GetMethodArgumentType(methodId, 0); in BuildIsFiniteIntrinsic() 38 auto itype = type == DataType::FLOAT32 ? DataType::INT32 : DataType::INT64; in BuildIsFiniteIntrinsic() 40 auto fpFractSize = type == DataType::FLOAT32 ? 23 : 52; in BuildIsFiniteIntrinsic() 42 auto fpExpMask = type == DataType::FLOAT32 ? 0xff : 0x7ff; in BuildIsFiniteIntrinsic() 44 auto bitcast = in BuildIsFiniteIntrinsic() 46 auto shift = in BuildIsFiniteIntrinsic() 48 …auto mask = GetGraph()->CreateInstAnd(itype, GetPc(bcInst->GetAddress()), shift, FindOrCreateConst… in BuildIsFiniteIntrinsic() 49 auto cmp = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), mask, in BuildIsFiniteIntrinsic() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/apply/ |
| D | apply_dynamic.cpp | 31 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 __anon0f0f2c480202() 38 auto *ldlexvar = g_dynG->iCreateLdlexvar(graph, 0x0, 0x0); in __anon0f0f2c480202() 39 auto *ldundefined = g_dynG->iCreateLdundefined(graph); in __anon0f0f2c480202() 40 auto *createemptyarray = g_dynG->iCreateCreateemptyarray(graph); in __anon0f0f2c480202() 41 auto *const0 = g_implG->gFindOrCreateConstantU64(graph, 0x0); in __anon0f0f2c480202() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | mcr_circuit_builder.cpp | 26 auto currentLabel = env_->GetCurrentLabel(); in ObjectTypeCheck() 27 auto currentControl = currentLabel->GetControl(); in ObjectTypeCheck() 28 auto currentDepend = currentLabel->GetDepend(); in ObjectTypeCheck() 37 for (auto index : hclassIndexList) { in ObjectTypeCheck() 51 auto currentLabel = env_->GetCurrentLabel(); in ObjectTypeCheck() 52 auto currentControl = currentLabel->GetControl(); in ObjectTypeCheck() 53 auto currentDepend = currentLabel->GetDepend(); in ObjectTypeCheck() 67 auto currentLabel = env_->GetCurrentLabel(); in HeapObjectCheck() 68 auto currentControl = currentLabel->GetControl(); in HeapObjectCheck() 69 auto currentDepend = currentLabel->GetDepend(); in HeapObjectCheck() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/libllvmbackend/ |
| D | ets_llvm_ir_constructor_gen.inl | 56 auto offset = GetGraph()->GetRuntime()->GetArrayU16ClassPointerTlsOffset(GetGraph()->GetArch()); 57 …auto klass = llvmbackend::runtime_calls::LoadTLSValue(&builder_, arkInterface_, offset, builder_.g… 58 auto eid = RuntimeInterface::EntrypointId::STRING_BUILDER_APPEND_BOOL; 59 …auto call = CreateFastPathCall(inst, eid, {GetInputValue(inst, 0), GetInputValue(inst, 1), klass}); 66 auto offset = GetGraph()->GetRuntime()->GetArrayU16ClassPointerTlsOffset(GetGraph()->GetArch()); 67 …auto klass = llvmbackend::runtime_calls::LoadTLSValue(&builder_, arkInterface_, offset, builder_.g… 68 auto eid = RuntimeInterface::EntrypointId::STRING_BUILDER_APPEND_CHAR_COMPRESSED; 69 …auto 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/debugger/ |
| D | debug_info_cache.cpp | 28 auto &debugInfo = in AddPandaFile() 32 [this, &file](auto methodId, auto sourceName) { in AddPandaFile() 42 for (auto methodId : debugInfo.GetMethodIdList()) { in AddPandaFile() 46 auto inserted = fileToSourceCode_.try_emplace(sourceRelativePath, sourceCode).second; in AddPandaFile() 58 auto method = frame.GetMethod(); in GetSourceLocation() 59 auto pandaFile = method->GetPandaFile(); in GetSourceLocation() 60 auto debugInfo = GetDebugInfo(pandaFile); in GetSourceLocation() 73 auto &table = debugInfo->GetLineNumberTable(method->GetFileId()); in GetSourceLocation() 74 auto lineNumberIter = std::upper_bound(table.begin(), table.end(), frame.GetBytecodeOffset(), in GetSourceLocation() 75 … [](auto offset, auto &entry) { return offset < entry.offset; }); in GetSourceLocation() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/helpers/ |
| D | helpers_mode.cpp | 31 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/ |
| D | defineclasswithbuffer_dynamic.cpp | 29 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() 49 … auto *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 …]
|
| D | definegettersetterbyvalue_dynamic.cpp | 29 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() 50 … auto *getterFunc = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TEST_F() 51 …auto *createObj = helpers::FindLastInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_CREATEOBJECTWITHBUFFE… in TEST_F() 52 … auto *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/toolchain/tooling/static/debugger/ |
| D | debug_info_cache.cpp | 28 auto &debugInfo = in AddPandaFile() 32 [this, &file](auto methodId, auto sourceName) { in AddPandaFile() 42 for (auto methodId : debugInfo.GetMethodIdList()) { in AddPandaFile() 46 auto inserted = fileToSourceCode_.try_emplace(sourceRelativePath, sourceCode).second; in AddPandaFile() 58 auto method = frame.GetMethod(); in GetSourceLocation() 59 auto pandaFile = method->GetPandaFile(); in GetSourceLocation() 60 auto debugInfo = GetDebugInfo(pandaFile); in GetSourceLocation() 73 auto &table = debugInfo->GetLineNumberTable(method->GetFileId()); in GetSourceLocation() 74 auto lineNumberIter = std::upper_bound(table.begin(), table.end(), frame.GetBytecodeOffset(), in GetSourceLocation() 75 … [](auto offset, auto &entry) { return offset < entry.offset; }); in GetSourceLocation() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/call_runtime/ |
| D | call_runtime_dynamic.cpp | 31 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 __anon254457fa0202() 38 auto *newlexenv = g_dynG->iCreateNewlexenv(graph, 0x1); in __anon254457fa0202() 39 auto *poplexenv = g_dynG->iCreatePoplexenv(graph); in __anon254457fa0202() 41 auto *classConstr = helpers::FindMethodByName(file, "innerConstr"); in __anon254457fa0202() 43 auto arr = std::vector<AbckitLiteral *>(); in __anon254457fa0202() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/create/ |
| D | createobjectwithexcludedkeys_dynamic.cpp | 30 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); 40 …auto *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/libpandabase/tests/ |
| D | unique_fd_test.cpp | 35 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/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | encode_visitor.cpp | 25 auto [dst, src0] = enc->GetCodegen()->ConvertRegisters<1U>(inst); \ 34 auto [dst, src0, src1] = enc->GetCodegen()->ConvertRegisters<2U>(inst); \ 44 auto [dst, src0, src1] = enc->GetCodegen()->ConvertRegisters<2U>(inst); \ 45 auto imm_shift_inst = static_cast<BinaryShiftedRegisterOperation *>(inst); \ 46 auto dstSize = dst.GetSize() > 1 ? dst.GetSize() - 1 : 0; \ 47 auto imm_value = static_cast<uint32_t>(imm_shift_inst->GetImm()) & (dstSize); \ 48 auto shift = Shift(src1, imm_shift_inst->GetShiftType(), imm_value); \ 67 auto binop = inst->CastTo##opc##I(); \ in ENCODE_INST_WITH_SHIFTED_OPERAND() 69 auto [dst, src0] = enc->GetCodegen()->ConvertRegisters<1U>(inst); \ in ENCODE_INST_WITH_SHIFTED_OPERAND() 92 auto type = inst->GetType(); \ [all …]
|
| /arkcompiler/ets_frontend/ets2panda/bindings/native/src/generated/ |
| D | bridges.cpp | 25 const auto ctx = reinterpret_cast<es2panda_Context *>(context); in impl_CreateMemberExpression() 26 const auto objArg = reinterpret_cast<es2panda_AstNode *>(objectArg); in impl_CreateMemberExpression() 27 const auto prop = reinterpret_cast<es2panda_AstNode *>(property); in impl_CreateMemberExpression() 28 const auto expressionKind = static_cast<Es2pandaMemberExpressionKind>(kind); in impl_CreateMemberExpression() 29 const auto isComputed = static_cast<KBoolean>(computed); in impl_CreateMemberExpression() 30 const auto optArg = static_cast<KBoolean>(optionalArg); in impl_CreateMemberExpression() 31 …const auto result = GetPublicImpl()->CreateMemberExpression(ctx, objArg, prop, expressionKind, isC… in impl_CreateMemberExpression() 42 const auto _context = reinterpret_cast<es2panda_Context *>(context); in TS_INTEROP_6() 43 const auto _original = reinterpret_cast<es2panda_AstNode *>(original); in TS_INTEROP_6() 44 const auto _object_arg = reinterpret_cast<es2panda_AstNode *>(object_arg); in TS_INTEROP_6() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/ |
| D | scenarios.cpp | 25 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestStandaloneFunctionCall"); in TEST_F() 31 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestClassMethodCall"); in TEST_F() 39 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestInterfaceMethodCall"); in TEST_F() 46 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestClassGetter"); in TEST_F() 52 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestClassSetter"); in TEST_F() 58 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestLambdaFunctionCall"); in TEST_F() 64 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestGenericFunctionCall"); in TEST_F() 70 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestFunctionArgTypeAny"); in TEST_F() 76 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestFunctionArgTypeUnknown"); in TEST_F() 82 auto ret = CallEtsFunction<bool>(GetPackageName(), "TestFunctionArgTypeUndefined"); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/get_insts/ |
| D | gettemplateobject_dynamic.cpp | 31 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 __anonca5e49df0202() 38 auto *worldStr = g_implM->createString(file, "world", strlen("world")); in __anonca5e49df0202() 39 auto *loadStringWorld = g_dynG->iCreateLoadString(graph, worldStr); in __anonca5e49df0202() 40 auto *stringPrint = g_implM->createString(file, "print", strlen("print")); in __anonca5e49df0202() 41 auto *tryldglobalbyname = g_dynG->iCreateTryldglobalbyname(graph, stringPrint); in __anonca5e49df0202() [all …]
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
| D | gc_barriers.cpp | 34 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() 42 … auto 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/ |
| D | unique_fd_test.cpp | 41 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_runtime/ecmascript/compiler/tests/ |
| D | instruction_combine_test.cpp | 76 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/ets_frontend/merge_abc/src/ |
| D | assemblyProgramProto.cpp | 23 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/test/unit/public/ |
| D | ast_builder_test.cpp | 105 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() 106 auto right = NumberLiteralBuilder(Allocator()).SetValue("5").Build(); in TEST_F() 107 auto binaryExpr = BinaryExpressionBuilder(Allocator()) in TEST_F() 112 auto awaitExpr = AwaitExpressionBuilder(Allocator()).SetArgument(binaryExpr).Build(); in TEST_F() 118 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() 119 auto right = NumberLiteralBuilder(Allocator()).SetValue("5").Build(); in TEST_F() 120 auto binaryExpr = BinaryExpressionBuilder(Allocator()) in TEST_F() 125 auto awaitExpr = AwaitExpressionBuilder(Allocator()).SetArgument(binaryExpr).Build(); in TEST_F() 131 auto bigint = BigIntLiteralBuilder(Allocator()).SetValue("123").Build(); in TEST_F() 137 auto left = NumberLiteralBuilder(Allocator()).SetValue("10").Build(); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/lsp/ |
| D | get_auto_completion_test.cpp | 35 auto ctx = initializer.CreateContext(fileName, ES2PANDA_STATE_CHECKED, fileSource); in TEST_F() 36 auto ast = GetAstFromContext<ark::es2panda::ir::AstNode>(ctx); in TEST_F() 37 auto targetImportSpecifier = in TEST_F() 39 auto targetImportDeclaration = in TEST_F() 42 auto importDecl = targetImportDeclaration->AsETSImportDeclaration()->Source()->ToString(); in TEST_F() 43 auto importSpec = targetImportSpecifier->AsImportSpecifier()->Imported()->ToString(); in TEST_F() 44 …auto config = reinterpret_cast<ark::es2panda::public_lib::Context *>(ctx)->config->options->ArkTSC… in TEST_F() 47 auto data = ark::es2panda::lsp::CompletionEntryData(fileName, importSpec, importDecl, ""); in TEST_F() 48 auto result = ark::es2panda::lsp::GetAutoImportCompletionEntry(&data, config, ""); in TEST_F() 58 auto ctx = initializer.CreateContext(fileName, ES2PANDA_STATE_CHECKED, fileSource); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
| D | intrinsics_api_impl.cpp | 54 auto coro = EtsCoroutine::GetCurrent(); in LoadJSModule() 55 auto ctx = InteropCtx::Current(coro); in LoadJSModule() 61 auto env = ctx->GetJSEnv(); in LoadJSModule() 83 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeFinalizationRegistryCallback() 84 auto ctx = InteropCtx::Current(coro); in JSRuntimeFinalizationRegistryCallback() 95 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueDouble() 96 auto ctx = InteropCtx::Current(coro); in JSRuntimeNewJSValueDouble() 106 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueBoolean() 107 auto ctx = InteropCtx::Current(coro); in JSRuntimeNewJSValueBoolean() 117 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueString() [all …]
|