| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/regression/ |
| D | 16052_lambda_in_static_method.ets | 20 function getPI(suffix: string = ""): string { return suffix + "->" + "3.141592653589793" } 36 let piFunc: (suffix: string) => string = (suffix: string): string => getPI(suffix) 41 const piFunc: (suffix: string) => string = (suffix: string): string => getPI(suffix) 46 const suffix = "Hello->" 47 let piFunc: () => string = (): string => { return suffix + "3.141592653589793" }
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_module.h | 51 static constexpr std::string_view SUFFIX = "/ETSGLOBAL;"; in GetModulePrefix() local 54 if (len < SUFFIX.size()) { in GetModulePrefix() 58 if (!std::equal(SUFFIX.rbegin(), SUFFIX.rend(), descriptorView.rbegin())) { in GetModulePrefix() 61 prefix = PandaString(moduleDescriptor, len - SUFFIX.size()); in GetModulePrefix()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/indirect_call/ |
| D | indirect_call.js | 22 const SUFFIX = 'bar'; 23 return arg + SUFFIX; 28 const SUFFIX = 'bar'; 30 return [str + SUFFIX, num + 1];
|
| /arkcompiler/ets_frontend/ets2panda/lsp/src/ |
| D | find_rename_locations.cpp | 42 // Get prefix and suffix texts in FindRenameLocations() 52 // Suffix in FindRenameLocations() 53 std::string suffix; in FindRenameLocations() local 60 suffix = std::string {beg, end}; in FindRenameLocations() 62 res.insert(RenameLocation {ref.filePath, ref.start, ref.end, ref.line, prefix, suffix}); in FindRenameLocations()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/irtoc_scripts/ |
| D | typed_arrays.irt | 194 suffix = "i8" 196 suffix = "i16" 198 suffix = "i32" 200 suffix = "i64" 202 suffix = "f32" 204 suffix = "f64" 206 suffix = "u8" 208 suffix = "u16" 210 suffix = "u32" 212 suffix = "u64" [all …]
|
| /arkcompiler/runtime_core/static_core/irtoc/scripts/ |
| D | arrays.irt | 48 suffix = el_size.to_s + "B" 52 function("ArrayCopyTo#{suffix}".to_sym, 76 ep_offset = get_entrypoint_offset("ARRAY_COPY_TO#{suffix}_SLOW_PATH") 92 suffix = el_size.to_s + "Byte" 95 function("ArrayCopyToUnchecked#{suffix}".to_sym,
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/templates/ |
| D | pipeline.rb | 25 opts.on('-s', '--suffix STRING', 'Suffix for generated variable') 37 lines = "constexpr std::string_view PIPELINE#{options.suffix} = R\"__MAGIC__(#{lines})__MAGIC__\";"
|
| /arkcompiler/runtime_core/panda_guard/util/ |
| D | string_util.cpp | 110 bool panda::guard::StringUtil::IsSuffixMatched(const std::string &str, const std::string &suffix) in IsSuffixMatched() argument 112 if (str.size() < suffix.size()) { in IsSuffixMatched() 115 return StringUtil::IsPrefixMatched(str, suffix, str.size() - suffix.size()); in IsSuffixMatched() 181 std::string suffix = match[0].str(); in SplitAnonymousName() local 182 std::string prefix = str.substr(0, str.find(suffix)); in SplitAnonymousName() 183 return std::make_tuple(prefix, suffix); in SplitAnonymousName()
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/examples/benchmarks/js/ |
| D | StringTest.js | 33 this.suffix = 'ok'; 51 result = result.concat(this.suffix); 63 result += this.suffix;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | list.escompat_DataView_method.yaml | 15 suffix: number_int8, 41 suffix: int_int8, 67 suffix: number_int16, 97 suffix: int_int16, 127 suffix: number_int32, 157 suffix: int_int32, 187 suffix: int_long_limit, 219 suffix: int_long_limit, 251 suffix: constructor, 272 suffix: constructor,
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_string_static.yaml | 35 …g[][]", "param2": "FixedArray<String>", "prefix": "FixedArray<String>", "suffix": "FixedArray<Stri… 36 param_types: {"param1":"String[]", "param2": "String", "prefix": "String", "suffix": "String"}, 38 …["Ah.", "Satan", "sees", "Natasha"]]', "param2": '[" "]', "prefix": '["PX"]', "suffix": '["SX"]'},
|
| /arkcompiler/ets_frontend/ets2panda/lsp/src/services/text_change/ |
| D | change_tracker.cpp | 104 std::string suffix = (IsLineBreak(currentChar) ? "" : "\n"); in InsertAtTopOfFile() local 106 suffix += "\n"; in InsertAtTopOfFile() 110 options.suffix = suffix; in InsertAtTopOfFile() 116 options.suffix = suffix; in InsertAtTopOfFile() 127 options.suffix = blankLineBetween ? "\n\n" : "\n"; in GetOptionsForInsertNodeBefore() 129 options.suffix = ", "; in GetOptionsForInsertNodeBefore() 131 options.suffix = (inserted->IsTSTypeParameterDeclaration() ? ", " : ""); in GetOptionsForInsertNodeBefore() 133 options.suffix = ", "; in GetOptionsForInsertNodeBefore() 135 options.suffix = "," + std::string(blankLineBetween ? "\n" : " "); in GetOptionsForInsertNodeBefore() 179 …options.suffix = insertTrailingComma ? "," : (node->IsTSInterfaceDeclaration() && isEmpty ? ";" : … in GetInsertNodeAtStartInsertOptions() [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/ |
| D | benchmark.py | 59 suffix = Path(self.__name).suffix 60 file_path = self.__output / f"{name}{suffix}"
|
| D | ets_templates_generator.py | 49 elif path.suffix == TEMPLATE_EXTENSION: 51 elif path.suffix == TEMPLATE_EXTENSION_TS:
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/evaluation/ |
| D | expression_loader.cpp | 54 static constexpr std::string_view SUFFIX = "_eval"; in FindEvaluationMethodName() local 74 // Check expected suffix. in FindEvaluationMethodName() 75 …if (delimiterPos < SUFFIX.size() || expectedMethodName.substr(delimiterPos - SUFFIX.size()) != SUF… in FindEvaluationMethodName()
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | path.cpp | 34 static bool EndsWith(std::string_view str, std::string_view suffix) in EndsWith() argument 36 if (str.length() < suffix.length()) { in EndsWith() 39 return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0; in EndsWith()
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | string-builder.ets | 24 function concatenate_float(prefix: String, number: float, suffix: String) : String { 25 return (prefix + number + suffix);
|
| /arkcompiler/ets_runtime/common_components/base/ |
| D | c_string.h | 78 bool EndsWith(const CString& suffix) const in EndsWith() argument 80 return Length() >= suffix.Length() && SubStr(Length() - suffix.Length()) == suffix; in EndsWith()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
| D | DataView.ets.j2 | 189 {%- for suffix in impls: %} 190 {%- set getIdx = '+' if suffix == 'Little' else '+ {} -'.format(bit // 8 - 1) %} 191 private get{{methodName}}{{suffix}}(byteOffset: int): {{type2nameCompat[bit]}} { 219 private get{{methodName}}{{suffix}}(byteOffset: number): {{type2nameCompat[bit]}} { 220 let res = this.get{{methodName}}{{suffix}}(byteOffset.toInt()) 224 private set{{methodName}}{{suffix}}(byteOffset: int, value: {{type2name[bit]}}): void { 246 private set{{methodName}}{{suffix}}(byteOffset: number, value: {{type2nameCompat[bit]}}): void { 261 this.set{{methodName}}{{suffix}}(byteOffset.toInt(), val)
|
| /arkcompiler/runtime_core/compiler/optimizer/ |
| D | pass_manager.cpp | 40 static std::string ClearFileName(std::string str, std::string_view suffix) in ClearFileName() argument 46 return str.substr(0, NAME_MAX - suffix.size()); in ClearFileName() 50 …er::GetFileName([[maybe_unused]] const char *pass_name, [[maybe_unused]] const std::string &suffix) in GetFileName() argument 77 ss_fullpath << folder_name.c_str() << "/" << ClearFileName(ss_filename.str(), suffix) << suffix; in GetFileName()
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
| D | gc_barriers.cpp | 39 auto createUniqBasicBlockName = [&initialBb](const std::string &suffix) { in EmitPreWRB() argument 40 …rn ark::llvmbackend::LLVMArkInterface::GetUniqueBasicBlockName(initialBb->getName().str(), suffix); in EmitPreWRB() 42 … auto createBasicBlock = [&ctx, &initialBb, &createUniqBasicBlockName](const std::string &suffix) { in EmitPreWRB() argument 43 auto name = createUniqBasicBlockName(suffix); in EmitPreWRB()
|
| /arkcompiler/runtime_core/static_core/irtoc/backend/ |
| D | function.h | 37 // 2. Current function is an interpreter handler for Ark's compiler (no "_LLVM" suffix) 246 * Suffix for compilation unit names to compile by llvm. 250 …* 1. Copy a graph for a handler with "_LLVM" suffix. For example, "ClassResolver" becomes "ClassRe… 251 * 2. Compile handlers with suffix by LLVMIrtocCompiler 252 …* 3. Setup dispatch table to invoke handlers with "_LLVM" suffix at runtime in SetupLLVMDispatchTa…
|
| /arkcompiler/ets_runtime/test/fuzztest/stringtableconcatstringintern_fuzzer/ |
| D | stringtableconcatstringintern_fuzzer.cpp | 51 std::string suffix(reinterpret_cast<const char*>(data + str1Size), str2Size); in StringTableConcatStringInternFuzzTest() 52 JSHandle<EcmaString> str2 = factory->NewFromStdString(suffix); in StringTableConcatStringInternFuzzTest()
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | options.cpp | 34 panda::PandArg<std::string> protoBinSuffix("suffix", "", "suffix of proto bin file"); in Parse()
|
| /arkcompiler/ets_frontend/ets2panda/bindings/native/include/ |
| D | dynamic-loader.h | 79 std::string suffix = ".so"; in LibName() local 80 result = "lib" + std::string(lib) + suffix; in LibName()
|