| /arkcompiler/runtime_core/tests/cts-generator/runner/reporters/ |
| D | jtr_reporter.rb | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 33 @output = '' 44 @logger.log 1, '#-----testdescription-----' 48 @logger.log 1, '#-----testresult-----' 57 # add output section in case of failure 58 if !(@status =~ /Passed\.|Not run\./) and !@output.empty? 59 @logger.log 1, 'sections=output' 61 @logger.log 1, '#section:output' 62 lines = @output.split("\n").map(&:strip).reject { |l| l.match(/^$/) } [all …]
|
| D | allure_reporter.rb | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 31 'message' => message, 'trace' => @output 44 pa_file.gsub('/', '_').gsub(/.pa$/, '-result.json') 50 @output = '' 101 @output << "\ncommand = #{cmd}" 104 def log_failed_compilation(output) argument 105 @output << "\n" << output 109 def log_negative_passed_compilation(output) argument 110 @output << "\n" << output [all …]
|
| D | test_reporter.rb | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 30 @logger.log 2, '----------------------------------------' 36 output = @logger.string 37 unless output.empty? 39 puts output 73 def log_failed_compilation(output) argument 76 @logger.log 1, output unless output.empty? 79 def log_failed_quickening(output) argument 82 @logger.log 1, output unless output.empty? [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/runner/reporters/ |
| D | jtr_reporter.rb | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 33 @output = '' 44 @logger.log 1, '#-----testdescription-----' 48 @logger.log 1, '#-----testresult-----' 57 # add output section in case of failure 58 if !(@status =~ /Passed\.|Not run\./) and !@output.empty? 59 @logger.log 1, 'sections=output' 61 @logger.log 1, '#section:output' 62 lines = @output.split("\n").map(&:strip).reject { |l| l.match(/^$/) } [all …]
|
| D | test_reporter.rb | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 30 @logger.log 2, '----------------------------------------' 36 output = @logger.string 37 unless output.empty? 39 puts output 73 def log_failed_compilation(output) argument 76 @logger.log 1, output unless output.empty? 79 def log_failed_quickening(output) argument 82 @logger.log 1, output unless output.empty? [all …]
|
| D | allure_reporter.rb | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 31 'message' => message, 'trace' => @output 44 pa_file.gsub('/', '_').gsub(/.pa$/, '-result.json') 50 @output = '' 101 @output << "\ncommand = #{cmd}" 104 def log_failed_compilation(output) argument 105 @output << "\n" << output 109 def log_negative_passed_compilation(output) argument 110 @output << "\n" << output [all …]
|
| /arkcompiler/runtime_core/static_core/irtoc/lang/ |
| D | ir_generator.rb | 3 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 8 # http://www.apache.org/licenses/LICENSE-2.0 16 require_relative 'output' 28 Output.scoped_puts "inline bool #{func.name}(Inst* source_inst) {" do 29 Output << "Graph* graph = source_inst->GetBasicBlock()->GetGraph();" 30 Output << "[[maybe_unused]] auto pc = source_inst->GetPc();" 31 Output << "[[maybe_unused]] auto save_state = source_inst->GetSaveState();" 32 Output << "[[maybe_unused]] auto current_inst = source_inst;" if @func.simple_control_flow? 34 Output << "Inst* p_#{index} = source_inst->GetInput(#{index}).GetInst();" 36 Output << "[[maybe_unused]] auto *runtime = graph->GetRuntime();" [all …]
|
| D | function.rb | 3 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 8 # http://www.apache.org/licenses/LICENSE-2.0 18 require_relative 'output' 153 … raise "Wrong place of `WhilePhi` instruction" unless @cf_stack[-1].kind == CfBlock::Kind::While 154 raise "Invalid `While` block" if @cf_stack[-1].head_bb.nil? 155 block = @cf_stack[-1].head_bb 207 @inst_index - 1 222 Output.printlni("COMPILE(#{@name}#{suffix}) {") 224 …Output.println("if(GetGraph()->GetArch() != #{Options.cpp_arch}) LOG(FATAL, IRTOC) << \"Arch doesn… 226 Output.println("GetGraph()->SetIrtocPrologEpilogOptimized();") [all …]
|
| D | irtoc.rb | 3 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 8 # http://www.apache.org/licenses/LICENSE-2.0 23 require_relative 'output' 41 #include "runtime/mem/gc/g1/g1-allocator.h" 48 // NOLINTBEGIN(readability-identifier-naming) 53 // NOLINTEND(readability-identifier-naming) 101 raise "Macro can't start with capital letter" if name.to_s.start_with? /[A-Z]/ 107 raise "Macro can't start with capital letter" if name.to_s.start_with? /[A-Z]/ 112 …if args.size != block.arity && block.arity >= 0 || args.size < -(block.arity + 1) && block.arity <… 144 output = "" [all …]
|
| D | instruction.rb | 3 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 8 # http://www.apache.org/licenses/LICENSE-2.0 18 require_relative 'output' 32 !@dscr.signature.empty? && @dscr.signature[0].split('-').include?('d') 93 @dscr.signature&.any? { |operand| operand.end_with?('-dyn') } 146 Output << "// #{self.to_s}" 147 Output << "// #{self.annotation}" 151 Output.println "PARAMETER(#{@index}, #{@fields[:ArgIndex]}).#{@type}();" 180 Output.println ss 209 :ref_uint => :'GetIntTypeForReference(GetGraph()->GetArch())' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/models/ |
| D | code.test.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 23 compile: { output: 'compile output', error: 'compile error', exit_code: 1 }, 24 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 }, 30 compile: { output: 'compile output', error: 'compile error', exit_code: 1 }, 31 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 }, 40 compile: { output: '', error: '', exit_code: -1 }, 41 disassembly: { output: '', code: '', error: '', exit_code: -1 }, 49 compile: { output: 'compile output', error: 'compile error', exit_code: 1 }, 50 …disassembly: { output: 'disasm output', code: 'disasm code', error: 'disasm error', exit_code: 2 }, 51 run: { output: 'run output', error: 'run error', exit_code: 3 }, [all …]
|
| D | code.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 output: string, 30 output: string, 38 output: string, 43 output: string, 49 output: string, 67 … compile: codeModel.fillDefaults(data.compile || {}, { output: '', error: '', exit_code: -1 }), 68 …bly: codeModel.fillDefaults(data.disassembly || {}, { output: '', code: '', error: '', exit_code: … 71 … compile: codeModel.fillDefaults(data.compile || {}, { output: '', error: '', exit_code: -1 }), 72 …bly: codeModel.fillDefaults(data.disassembly || {}, { output: '', code: '', error: '', exit_code: … [all …]
|
| /arkcompiler/ets_frontend/legacy_bin/ |
| D | BUILD.gn | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 16 # for js-loader 19 output = "js_linux/${source}" 26 output = "js_win/${source}" 33 output = "js_mac/${source}" 40 output = "js_linux/${source}" 47 output = "js_win/${source}" 54 output = "js_mac/${source}" 61 output = "js_linux/${source}" [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | json_helper.cpp | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 78 void JsonHelper::AppendValueToQuotedString(const CString& str, CString& output) in AppendValueToQuotedString() argument 80 output += "\""; in AppendValueToQuotedString() 83 output += str; in AppendValueToQuotedString() 84 output += "\""; in AppendValueToQuotedString() 91 output += "\\\""; in AppendValueToQuotedString() 94 output += "\\\\"; in AppendValueToQuotedString() 97 output += "\\b"; in AppendValueToQuotedString() 100 output += "\\f"; in AppendValueToQuotedString() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/async/ |
| D | async_dynamic.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 // NOLINTBEGIN(readability-magic-numbers) 37 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateAsyncfunctionenter, abc-kind=JS, category=pos… 40 …auto output = helpers::ExecuteDynamicAbc(ABCKIT_ABC_DIR "ut/isa/isa_dynamic/async/enter_resolve_re… in TEST_F() local 42 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 49 helpers::ReplaceInst(asyncEnterInst, g_dynG->iCreateAsyncfunctionenter(graph)); in TEST_F() 53 output = in TEST_F() 56 EXPECT_TRUE(helpers::Match(output, "42\n")); in TEST_F() 59 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateAsyncfunctionresolve, abc-kind=JS, category=p… 62 …auto output = helpers::ExecuteDynamicAbc(ABCKIT_ABC_DIR "ut/isa/isa_dynamic/async/enter_resolve_re… in TEST_F() local [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/runner/ |
| D | result.rb | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 17 # Class-level mutex and test execution statistics 29 def update_failed_compilation(output, file) argument 34 @reporter.log_failed_compilation output 37 def update_failed_quickening(output, file) argument 42 @reporter.log_failed_quickening output 45 def update_negative_passed_compilation(output, file) argument 50 @reporter.log_negative_passed_compilation output 53 def update_failed_negative_compilation(output, file) argument [all …]
|
| D | single_test_runner.rb | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 29 .grep(/^\s*##\s*runner-option\s*:\s*[\S*\s*]*\s*$/) 45 @pa_options = if @runner_options.include? 'use-pa' 46 '--load-runtimes="core" ' \ 47 '--boot-panda-files=' \ 53 @verifier_options = $verbose_verifier ? '--log-components=verifier --log-level=debug ' : '' 55 …@verifier_config_args = if (@runner_options.key?('verifier-config') || verifier_forced?) && !$veri… 56 "--config-file=#{$verifier_config} " 61 if @runner_options.include? 'main-exitcode-wrapper' [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/runner/ |
| D | result.rb | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 17 # Class-level mutex and test execution statistics 29 def update_failed_compilation(output, file) argument 34 @reporter.log_failed_compilation output 37 def update_failed_quickening(output, file) argument 42 @reporter.log_failed_quickening output 45 def update_negative_passed_compilation(output, file) argument 50 @reporter.log_negative_passed_compilation output 53 def update_failed_negative_compilation(output, file) argument [all …]
|
| D | single_test_runner.rb | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 29 .grep(/^\s*##\s*runner-option\s*:\s*[\S*\s*]*\s*$/) 46 @verifier_options = $verbose_verifier ? '--log-components=verifier --log-level=debug ' : '' 48 …@verifier_config_args = if (@runner_options.key?('verifier-config') || verifier_forced?) && !$veri… 49 "--config-file=#{$verifier_config} " 54 if @runner_options.include? 'main-exitcode-wrapper' 57 # this value is used to determine false-positive cases 70 if match = line.match(/^## panda-options: (.+)\s*$/) 104 (@runner_options.include? 'compile-failure' or [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/backend/tests/fixtures/ |
| D | overrides.py | 2 # -*- coding: utf-8 -*- 9 # http://www.apache.org/licenses/LICENSE-2.0 19 def parse_compile_options(options: dict) -> list: 28 "output": f"testing output: {code}, {options}", 33 "output": f"testing output: {code}", 41 "output": f"testing output: {code}", 52 "output": f"testing output: {code}, {options}", 60 "output": f"testing output: {code}", 78 "flag": "--opt-level",
|
| /arkcompiler/runtime_core/gn/build/toolchain/ |
| D | BUILD.gn | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 53 depfile = "{{output}}.d" 54 …command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} ${extra_cppf… 56 description = "CC {{output}}" 62 depfile = "{{output}}.d" 63 …command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} ${extra_cp… 65 description = "CXX {{output}}" 71 depfile = "{{output}}.d" 72 …command = "$asm -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} ${extra_asmflags} -c {… [all …]
|
| /arkcompiler/runtime_core/static_core/gn/build/toolchain/ |
| D | BUILD.gn | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 59 depfile = "{{output}}.d" 60 …command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} ${extra_cppf… 63 description = "CC {{output}}" 68 depfile = "{{output}}.d" 69 …command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} ${extra_cp… 72 description = "CXX {{output}}" 77 depfile = "{{output}}.d" 78 …command = "$asm -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} ${extra_asmflags} -c {… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | ProcessTest.sts | 7 * http://www.apache.org/licenses/LICENSE-2.0 31 let output: String = ""; 34 output += String.fromCharCode(buffer.$_get(i)); 37 return output; 49 let output = getChildOutputAsString(child); 50 let tokens: String[] = output.split(separator); 55 let output = getChildErrorOutputAsString(child); 56 let tokens: String[] = output.split(separator); 67 let output: String = runChildAndGetOutput(command); 68 let atributes: String[] = output.split(separator); [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/extensions/js/modify_api/obj/ |
| D | obj_modify.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 40 // Test: test-kind=api, api=IsaApiDynamicImpl::iCreateNewobjrange, abc-kind=JS, category=positive 43 …auto output = helpers::ExecuteDynamicAbc(ABCKIT_ABC_DIR "ut/extensions/js/modify_api/obj/newobj.ab… in TEST_F() local 45 EXPECT_TRUE(helpers::Match(output, expected)); in TEST_F() 54 AbckitInst *a = g_implG->gFindOrCreateConstantI32(graph, 3); in TEST_F() 55 ASSERT_EQ(g_impl->getLastError(), ABCKIT_STATUS_NO_ERROR); in TEST_F() 57 AbckitInst *storeThis = g_dynG->iCreateNewobjrange(graph, 3, defineClass, a, a); in TEST_F() 58 ASSERT_EQ(g_impl->getLastError(), ABCKIT_STATUS_NO_ERROR); in TEST_F() 62 ASSERT_EQ(g_impl->getLastError(), ABCKIT_STATUS_NO_ERROR); in TEST_F() 65 g_implG->iInsertBefore(storeThis, ret); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/extensions/js/modify_api/super_this/ |
| D | super_this_modify.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 46 param = g_implG->iGetNext( in StByNameTest() 47 … g_implG->iGetNext(helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_PARAMETER))); in StByNameTest() 48 ASSERT_EQ(g_impl->getLastError(), ABCKIT_STATUS_NO_ERROR); in StByNameTest() 52 AbckitInst *newAge = g_implG->gFindOrCreateConstantI32(graph, 2); in StByNameTest() 53 ASSERT_EQ(g_impl->getLastError(), ABCKIT_STATUS_NO_ERROR); in StByNameTest() 56 AbckitString *fieldName = g_implM->createString(file, "age", strlen("age")); in StByNameTest() 57 ASSERT_EQ(g_impl->getLastError(), ABCKIT_STATUS_NO_ERROR); in StByNameTest() 62 store = g_dynG->iCreateStsuperbyname(graph, newAge, fieldName, param); in StByNameTest() 64 store = g_dynG->iCreateStthisbyname(graph, newAge, fieldName); in StByNameTest() [all …]
|