/arkcompiler/ets_runtime/test/moduletest/stringreplace/ |
H A D | stringreplace.js | 31 let a = r[Symbol.replace]('', '[$<length>]'); 41 var res1 = lineString1.replace(re1, "X"); 42 var res2 = lineString1.replace(re2, "X"); 43 var res3 = treeString1.replace(re1, "X"); 44 var res4 = treeString1.replace(re2, "X"); 45 var res5 = slicedString.replace(re1, "X"); 46 var res6 = slicedString.replace(re2, "X"); 60 var res = lineString2.replace(re2, func1); 66 res = lineString2.replace(re2, func2); 72 res = lineString2.replace(re [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/ |
H A D | spec_report.py | 89 res = src.replace("\\", "\\\\") 90 res = res.replace("|", "\\|") 91 res = res.replace("_", "\\_") 92 res = res.replace("<", "\\<") 93 res = res.replace(">", "\\>") 94 res = res.replace("*", "\\*") 95 res = res.replace("`", "\\`") 96 res = res.replace("{", "\\{") 97 res = res.replace("}", "\\}") 98 res = res.replace("[", "\\[") [all...] |
H A D | report.py | 111 report = report.replace(REPORT_TITLE, self.test.test_id) 112 report = report.replace(REPORT_PATH, self.test.path) 114 report = report.replace(REPORT_STATUS_CLASS, STATUS_PASSED_CLASS) 115 report = report.replace(REPORT_STATUS, STATUS_PASSED) 117 report = report.replace(REPORT_STATUS_CLASS, STATUS_FAILED_CLASS) 118 report = report.replace(REPORT_STATUS, STATUS_FAILED) 120 report = report.replace(REPORT_TIME, f"{round(self.test.time, 2)} sec") 122 report = report.replace(REPORT_TIME, NO_TIME) 124 report = report.replace(REPORT_REPRODUCE, self.test.reproduce) 125 report = report.replace(REPORT_EXPECTE [all...] |
H A D | html_view.py | 56 report = report.replace(INDEX_TITLE, f"Summary for {self.__summary.name} {datetime.now(pytz.UTC)}") 57 report = report.replace(INDEX_OPTIONS, str(self.__config)) 58 report = report.replace(INDEX_TOTAL, str(self.__summary.total)) 59 report = report.replace(INDEX_PASSED, str(self.__summary.passed)) 60 report = report.replace(INDEX_FAILED, str(self.__summary.failed)) 61 report = report.replace(INDEX_IGNORED, str(self.__summary.ignored)) 62 report = report.replace(INDEX_EXCLUDED_LISTS, str(self.__summary.excluded)) 63 report = report.replace(INDEX_EXCLUDED_OTHER, str(self.__summary.excluded_after)) 64 report = report.replace(INDEX_FAILED_TESTS_LIST, self.__get_failed_tests_report(fail_lists)) 90 replaced = template.replace(INDEX_TEST_NAM [all...] |
H A D | detailed_report.py | 76 report = report.replace(self.REPORT_DATE, str(date.today())) 77 report = report.replace(self.REPORT_TEST_SUITE, self.test_suite) 79 report = report.replace(self.REPORT_EXCLUDED_HEADER, "") 80 report = report.replace(self.REPORT_EXCLUDED_DIVIDER, "") 82 report = report.replace(self.REPORT_EXCLUDED_HEADER, self.EXCLUDED_HEADER) 83 report = report.replace(self.REPORT_EXCLUDED_DIVIDER, self.EXCLUDED_DIVIDER) 88 report = report.replace(self.REPORT_RESULT, result)
|
/arkcompiler/ets_runtime/test/moduletest/propertydetector/ |
H A D | propertydetector.js | 33 let newStr1 = str.replace(regexp, "$1" ); 38 let unused = p[Symbol.replace] 41 p["replace"] = function () {return "abc"} 45 let newStr2 = str.replace(regexp, "$2" ); 51 p[Symbol.replace] = function () {return "aaa"} 52 let newStr3 = str.replace(regexp, "$3" ); 56 p[Symbol.replace] = function () {return 4} 57 let newStr4 = str.replace( /([0-9])([a-z])/g,"$4" );
|
/arkcompiler/ets_runtime/script/ |
H A D | build_resource_to_cpp.py | 44 input_file = input_file.replace(".", "_") 45 template1 = template1.replace("$1", str(input_file)) \ 46 .replace("$2", str(length)) \ 47 .replace("$3", str(byte_code)) 48 template2 = template2.replace("$1", str(input_file)) \ 49 .replace("$2", str(length))
|
/arkcompiler/runtime_core/static_core/plugins/ets/doc/ |
H A D | merge_markdown.py | 41 line = line.replace("`a | b`", "`a \| b`") 42 line = line.replace("`a || b`", "`a \|\| b`") 46 line = '%s**\n' % line.strip().replace("### Rule", "**Rule") 69 line = line.replace("(recipes.md)", "(#recipes)") 72 line = line.replace(
|
H A D | validate_spec.py | 38 file_name = line.replace(" ", "").replace("\n", "")
|
/arkcompiler/ets_runtime/test/moduletest/regexp/ |
H A D | regexp.js | 25 print(JSON.stringify(str.replace(regexp,"b"))); 30 print(JSON.stringify(str.replace(regexp,"b"))); 35 print(JSON.stringify(str.replace(regexp,"b"))); 40 print(JSON.stringify(str.replace(regexp,"b"))); 306 print(str1.replace(/[^A-Z0-9]+/gi, '')) 320 let t1 = str2.replace(/([A-Z])/g, function(e) { 324 let t2 = str2.replace(/([A-Z])/g, "_$1"); 326 print(t1.replace(/([a-z]+)/g, "_xy")); 327 print(t2.replace(/_/g, "")); 391 // Testing regexp.prototype.replace afte [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | terminate.cpp | 31 char *replace = std::getenv("FUZZING_EXIT_ON_FAILED_ASSERT"); in Terminate() local 32 if ((replace != nullptr) && (std::string(replace) == "false")) { in Terminate()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | ark_config.py | 18 from dataclasses import replace namespace 78 return replace(ark_compiler_default_options) 103 return replace(ark_disassembler_default_options) 132 return replace(ark_runtime_default_options)
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
H A D | lowering.cpp | 120 auto replace = graph->CreateInstIf(DataType::NO_TYPE, inst->GetPc(), cc); in LowerIf() local 121 replace->SetMethod(inst->GetMethod()); in LowerIf() 122 replace->SetOperandsType(input->CastToCompare()->GetOperandsType()); in LowerIf() 123 replace->SetInput(0, input->GetInput(0).GetInst()); in LowerIf() 124 replace->SetInput(1, input->GetInput(1).GetInst()); in LowerIf() 127 inst->GetBasicBlock()->ReplaceInst(inst, replace); in LowerIf() 130 OptimizeIfInput(replace); in LowerIf()
|
/arkcompiler/ets_frontend/test262/ |
H A D | mix_compile.py | 54 temp_abc = out_file.replace(ABC_EXT, f'_{count}{TEMP_ABC_EXT}') 55 temp_files_info_path = out_file.replace(ABC_EXT, f'_{count}{TEMP_TXT_EXT}') 68 abc = out_file.replace(ABC_EXT, f'_{count}{ABC_EXT}') 69 files_info_path = out_file.replace(ABC_EXT, f'_{count}{TXT_EXT}')
|
/arkcompiler/ets_frontend/testTs/ |
H A D | run_testTs.py | 77 out_file_path = file.replace(TEST_PATH, OUT_PATH).replace(TS_EXT, TXT_EXT) 78 temp_out_file_path = file.replace(TS_EXT, TXT_EXT) 79 temp_abc_file_path = file.replace(TS_EXT, ABC_EXT) 102 sj_path = ts_file.replace(TEST_PATH, OUT_PATH) 198 out_path = file.replace(TEST_PATH, OUT_PATH).replace(TS_EXT, TXT_EXT) 199 expect_path = file.replace(TEST_PATH, EXPECT_PATH).replace(TS_EXT, TXT_EXT) 220 i = json.loads(i.replace("'", '"') [all...] |
/arkcompiler/runtime_core/gn/build/ |
H A D | cmake_configure_file.py | 41 values[key] = val.replace('\\n', '\n') 47 def replace(pattern): function 54 in_line = re.sub(pattern, replace, in_line)
|
/arkcompiler/runtime_core/static_core/gn/build/ |
H A D | cmake_configure_file.py | 42 values[key] = val.replace('\\n', '\n') 48 def replace(pattern): function 55 in_line = re.sub(pattern, replace, in_line)
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/gclog/ |
H A D | abstract_gclog_parser.py | 30 yield line.replace('\r', '').replace('\n', '')
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
H A D | propagate_lenarray.cpp | 46 llvm::DenseMap<llvm::CallInst *, llvm::ConstantInt *> replace {}; in run() 60 replace.insert({call, maybeSize}); in run() 66 for (auto &[lenArray, size] : replace) { in run()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/ |
H A D | bytecode.py | 74 expected_func_body[0] = expected_func_body[0].replace( 93 patch_func_body[0] = patch_func_body[0].replace( 127 line = line.replace(p, "")
|
/arkcompiler/runtime_core/static_core/abc2program/ |
H A D | abc_method_processor.cpp | 91 std::replace(className.begin(), className.end(), '/', '.'); in GetMetaData() 132 function_.name.replace(function_.name.find(ctorName), ctorName.length(), "_ctor_"); in GetMetaData() 135 function_.name.replace(function_.name.find(cctorName), cctorName.length(), "_cctor_"); in GetMetaData() 184 std::replace(typeName.begin(), typeName.end(), '/', '.'); in PFTypeToPandasmType()
|
/arkcompiler/ets_frontend/arkguard/scripts/ |
H A D | execute_result_statistics.js | 85 const sourcePath = filePath.replace('/test/local/', '/test/grammar/'); 101 if (actual.replace(/(\n|\r\n)/g, '') === expectation.replace(/(\n|\r\n)/g, '')) {
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/scripts/micro-benchmarks/ |
H A D | run_micro_benchmarks.py | 150 bin_filepath.replace(".abc", ".an")] 197 bin_file_path = tmp_asm_file_path.replace(".pa", ".abc") 204 aot_file_path = tmp_asm_file_path.replace(".pa", ".an") 334 ark_opts = ("--" + args.runtime_options.replace(" ", 335 "").replace(",", " --")).split(" ") 337 aot_opts = ("--" + args.aot_options.replace(" ", 338 "").replace(",", " --")).split(" ")
|
/arkcompiler/ets_frontend/es2panda/test/compiler/interpreter/lexicalEnv/ |
H A D | safe_hole6.js | 32 'pybfr'.replace(v4, '');
|
/arkcompiler/ets_frontend/es2panda/test/benchmark/ |
H A D | utils.py | 154 case_data = case_path.replace(JS_FILE_SUFFIX, CASE_DATA_SUFFIX) 165 case_data_file = file.replace(JS_FILE_SUFFIX, CASE_DATA_SUFFIX) 198 html_report = html_report.replace(SELECTED_PARAMETERS_BASE, selected_params) 200 html_report = html_report.replace(DEFAULT_TIME, AVERAGE_TIME)
|