Home
last modified time | relevance | path

Searched full:n (Results 1 – 25 of 501) sorted by relevance

12345678910>>...21

/arkcompiler/runtime_core/verification/config/default/
Ddefault_config.cpp22 "debug {\n"
23 " options {\n"
24 " verifier {\n"
25 " allow {\n"
26 " undefined-method\n"
27 " }\n"
28 " }\n"
29 " }\n"
30 " method_options {\n"
31 " verifier {\n"
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Dlabels_test.cpp.in34 size_t beg_g = ss.str().find("u1 g() <static> {\n");
36 size_t beg_gg = ss.str().find("u1 gg() <static> {\n");
43 …ss.str().substr(beg_g + strlen("u1 g() <static> {\n"), end_g - (beg_g + strlen("u1 g() <static> {\
45 ….str().substr(beg_gg + strlen("u1 gg() <static> {\n"), end_gg - (beg_gg + strlen("u1 gg() <static>…
47 EXPECT_EQ(body_g, "jump_label_0:\n\tjmp jump_label_0\n\treturn\n");
48 EXPECT_EQ(body_gg, "\tjmp jump_label_0\njump_label_0:\n\treturn\n");
66 …EXPECT_TRUE(body_g.find("jump_label_0:\n\tmovi v0, 0x0") != std::string::npos) << "jump_label_0 no…
67 …EXPECT_TRUE(body_g.find("jump_label_2:\n\tmovi v0, 0x1") != std::string::npos) << "jump_label_1 no…
68 …EXPECT_TRUE(body_g.find("jump_label_4:\n\tmovi v0, 0x2") != std::string::npos) << "jump_label_2 no…
69 …EXPECT_TRUE(body_g.find("jump_label_6:\n\tmovi v0, 0x3") != std::string::npos) << "jump_label_3 no…
[all …]
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2n=r("./node_modules/color-convert/index.js"),i=(e,t)=>function(){const r=e.apply(n,arguments);retu… class
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/tests/
Dassembler_aarch64_test.cpp131 std::string expectResult("00000000:d28acf01 \tmov\tx1, #22136\n" in HWTEST_F_L0()
132 "00000004:f2a24681 \tmovk\tx1, #4660, lsl #16\n" in HWTEST_F_L0()
133 "00000008:f2ffffe1 \tmovk\tx1, #65535, lsl #48\n" in HWTEST_F_L0()
134 "0000000c:d2801de2 \tmov\tx2, #239\n" in HWTEST_F_L0()
135 "00000010:f2b579a2 \tmovk\tx2, #43981, lsl #16\n" in HWTEST_F_L0()
136 "00000014:f2cacf02 \tmovk\tx2, #22136, lsl #32\n" in HWTEST_F_L0()
137 "00000018:f2e24682 \tmovk\tx2, #4660, lsl #48\n" in HWTEST_F_L0()
138 "0000001c:b2683be3 \tmov\tx3, #549739036672\n" in HWTEST_F_L0()
139 "00000020:f2824683 \tmovk\tx3, #4660\n" in HWTEST_F_L0()
140 "00000024:32083fe4 \tmov\tw4, #-16776961\n"); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_runtime_options.cpp26 "Usage: panda [OPTIONS] [file1:file2:file3] [entrypoint] -- [arguments]\n"
27 "\n"
28 "optional arguments:\n";
31 "Usage: ark_stub_compiler [OPTIONS]\n"
32 "\n"
33 "optional arguments:\n";
36 "--aot-file: Path (file suffix not needed) to AOT output file. Default: \"aot_file\"\n"
37 "--ark-properties: set ark properties\n"
38 "--ark-bundle-name: set ark bundle name\n"
39 "--asm-interpreter: Enable asm interpreter. Default: true\n"
[all …]
Ddump.cpp450 os << " <TaggedArray[" << std::dec << len << "]>\n"; in DumpArrayClass()
456 os << "\n"; in DumpArrayClass()
465 os << " <ConstantPool[" << std::dec << len << "]>\n"; in DumpConstantPoolClass()
471 os << "\n"; in DumpConstantPoolClass()
499 os << "Type :" << JSHClass::DumpJSType(jshclass->GetObjectType()) << "\n"; in DumpHClass()
503 os << "\n"; in DumpHClass()
507 os << "\n"; in DumpHClass()
515 os << "\n"; in DumpHClass()
528 os << "\n"; in DumpHClass()
534 os << "JSHClass :" << std::setw(DUMP_TYPE_OFFSET) << " klass_(" << std::hex << hclass << ")\n"; in DumpClass()
[all …]
Ddate_parse.h27 static bool IsBetween(int n, int lower, int hign) in IsBetween() argument
29 if (n < lower || n > hign) { in IsBetween()
399 static bool MinuteIsValid(int n) in MinuteIsValid() argument
402 return IsBetween(n, 0, 59); in MinuteIsValid()
405 static bool SecondIsValid(int n) in SecondIsValid() argument
408 return IsBetween(n, 0, 59); in SecondIsValid()
411 static bool HourIsValid(int n) in HourIsValid() argument
414 return IsBetween(n, 0, 24); in HourIsValid()
417 static bool MilliSecondIsValid(int n) in MilliSecondIsValid() argument
420 return IsBetween(n, 0, 999); in MilliSecondIsValid()
[all …]
/arkcompiler/runtime_core/tests/cts-assembly/
Darrays-06.pa36 #int foo4(int n) {
38 # if (n < 1)
40 # int *arr = new int[n];
41 # for (int i = 0; i < n; i++) {
45 # return sum + foo4(n - 1);
48 #int foo3(int n) {
50 # int *arr = new int[n];
51 # for (int i = 0; i < n; i++) {
55 # n += 2;
56 # sum += foo4(n);
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
Dcompare.py97 …print("Classes that have been optimized:\n Code_item section size:\n|Old: |New: |Diff:|Per: |Fil…
106 print("""\nSummary:\n=============\
107 \n Total code_item section size of baseline files: {:d} bytes\
108 \n Total code_item section size of compared files: {:d} bytes\
109 \n Difference: {:d} bytes [{:3.2f}%]\
110 \n Number of optimized files: {:d}\
111 \n Number of not optimized files : {:d}\
112 \n Files with no code item section: {:d}\
113 \n Files that are bigger than baseline: {:d}\
114 \n Failed tests on baseline: {:d}\
[all …]
/arkcompiler/runtime_core/runtime/tests/
Dc2i_bridge_test.cpp85 std::string source = ".language " + language + "\n" + R"( in SetUpHelperFunctions()
121 out << ".language " << ctx << '\n'; in MakeNoArgsMethod()
124 out << ".record reference {}\n"; in MakeNoArgsMethod()
126 out << ".function " << panda_file::Type(ret_type) << " main() {\n"; in MakeNoArgsMethod()
128 out << "fldai.64 " << bit_cast<double>(ret) << '\n'; in MakeNoArgsMethod()
129 out << "return.64\n"; in MakeNoArgsMethod()
131 out << "ldai.64 " << ret << '\n'; in MakeNoArgsMethod()
132 out << "return.64\n"; in MakeNoArgsMethod()
134 out << "lda.null\n"; in MakeNoArgsMethod()
135 out << "return.obj\n"; in MakeNoArgsMethod()
[all …]
/arkcompiler/runtime_core/cross_values/
Dcross_values_getters_generator.rb28 $header += "#include \"generated_values/#{File.basename(values_h)}\"\n"
30 $header += "\n"
31 $header += "#include <cstddef>\n"
32 $header += "#include \"libpandabase/utils/arch.h\"\n"
33 $header += "#include \"runtime/entrypoints/entrypoints.h\"\n\n"
49 file.puts " case Arch::#{File.basename(values_h, "_values_gen.h")}:\n"
50 …" return cross_values::#{File.basename(values_h, "_values_gen.h")}::#{define[0]}_VAL;\n"
52 file.puts " default:\n"
53 … LOG(FATAL, COMMON) << \"No cross-values generated for \" << GetStringFromArch(arch);\n"
54 file.puts " UNREACHABLE();\n"
[all …]
/arkcompiler/runtime_core/runtime/mem/gc/
Dgc_stats.cpp72 statistic << heap_manager->GetGC()->DumpStatistics() << "\n"; in GetFinalStatistics()
74 statistic << "Total time spent in GC: " << total_time_gc << "\n"; in GetFinalStatistics()
78 << total_time_gc.GetLiteral() << "\n"; in GetFinalStatistics()
80 << " objects/" << total_time_gc.GetLiteral() << "\n"; in GetFinalStatistics()
81 statistic << "Total number of allocations " << total_objects << "\n"; in GetFinalStatistics()
82 statistic << "Total bytes allocated " << helpers::MemoryConverter(total_allocated) << "\n"; in GetFinalStatistics()
83 statistic << "Total bytes freed " << helpers::MemoryConverter(total_freed) << "\n\n"; in GetFinalStatistics()
86 << "\n"; in GetFinalStatistics()
87 …stic << "Free memory until GC " << helpers::MemoryConverter(heap_manager->GetFreeMemory()) << "\n"; in GetFinalStatistics()
89 … << helpers::MemoryConverter(helpers::UnsignedDifference(max_memory, total_memory)) << "\n"; in GetFinalStatistics()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_snapshot_json_serializer.cpp56 writer_->Write("{\"snapshot\":\n"); // 1. in SerializeSnapshotHeader()
57 writer_->Write("{\"meta\":\n"); // 2. in SerializeSnapshotHeader()
60 writer_->Write("\"detachedness\"],\n"); // 3. in SerializeSnapshotHeader()
66 …>Write("\"bigint\"],\"string\",\"number\",\"number\",\"number\",\"number\",\"number\"],\n"); // 4. in SerializeSnapshotHeader()
68 writer_->Write("\"edge_fields\":[\"type\",\"name_or_index\",\"to_node\"],\n"); // 5. in SerializeSnapshotHeader()
72 writer_->Write("\"weak\"],\"string_or_number\",\"node\"],\n"); // 6. in SerializeSnapshotHeader()
76 writer_->Write("\"line\",\"column\"],\n"); // 7. in SerializeSnapshotHeader()
78 …Write("\"trace_node_fields\":[\"id\",\"function_info_index\",\"count\",\"size\",\"children\"],\n"); in SerializeSnapshotHeader()
80 writer_->Write("\"sample_fields\":[\"timestamp_us\",\"last_assigned_id\"],\n"); // 9. in SerializeSnapshotHeader()
83 …writer_->Write("\"location_fields\":[\"object_index\",\"script_id\",\"line\",\"column\"]},\n\"node… in SerializeSnapshotHeader()
[all …]
/arkcompiler/runtime_core/libpandafile/templates/
Dbytecode_instruction-inl_gen.h.erb22 % n = i.operands.count(&:id?)
23 % next if n == 0
25 return idx < <%= n %>;
41 % n = i.operands.count(&:reg?)
42 % next if n == 0
44 return idx < <%= n %>; // NOLINT(readability-magic-numbers)
60 % n = i.operands.count(&:imm?)
61 % next if n == 0
63 return idx < <%= n %>;
95 % n = i.operands.count(&:id?)
[all …]
/arkcompiler/ets_frontend/ts2panda/tests/expression/
DoperationEqual.test.ts46 let insns = compileMainSnippet("let a = 2;\n" +
49 IRNode.pg = new PandaGen("", creatAstFromSnippet("let a = 2;\n" +
66 let insns = compileMainSnippet("let a = 5;\n" +
69 IRNode.pg = new PandaGen("", creatAstFromSnippet("let a = 5;\n" +
86 let insns = compileMainSnippet("let a = 2;\n" +
89 IRNode.pg = new PandaGen("", creatAstFromSnippet("let a = 2;\n" +
106 let insns = compileMainSnippet("let a = 2;\n" +
109 IRNode.pg = new PandaGen("", creatAstFromSnippet("let a = 2;\n" +
126 let insns = compileMainSnippet("let a = 5;\n" +
129 IRNode.pg = new PandaGen("", creatAstFromSnippet("let a = 5;\n" +
[all …]
/arkcompiler/runtime_core/libpandafile/
Dfield_data_accessor-inl.h224 size_t n = 0; in GetAnnotationsNumber() local
225 EnumerateRuntimeAnnotations([&n](File::EntityId /* unused */) { n++; }); in GetAnnotationsNumber()
226 return n; in GetAnnotationsNumber()
231 size_t n = 0; in GetRuntimeAnnotationsNumber() local
232 EnumerateRuntimeAnnotations([&n](File::EntityId /* unused */) { n++; }); in GetRuntimeAnnotationsNumber()
233 return n; in GetRuntimeAnnotationsNumber()
238 size_t n = 0; in GetRuntimeTypeAnnotationsNumber() local
239 EnumerateRuntimeTypeAnnotations([&n](File::EntityId /* unused */) { n++; }); in GetRuntimeTypeAnnotationsNumber()
240 return n; in GetRuntimeTypeAnnotationsNumber()
245 size_t n = 0; in GetTypeAnnotationsNumber() local
[all …]
/arkcompiler/ets_frontend/ts2panda/tools/
DastPrinter.ts89 retVal += repeat + name + ':' + '\n';
97 retVal += repeat + '[' + '\n';
99 retVal += repeat + ']' + '\n';
101 retVal += repeat + '[' + ']' + '\n';
119 retVal += repeat + name + ':' + '\n';
123 retVal += repeat + subStr + ',' + ' ' + kind + '\n';
137 retVal += repeat + '{' + '\n';
139 retVal += repeat + '}' + '\n';
141 retVal += repeat + '{' + '}' + '\n';
153 retVal += repeat + "File " + name + ':' + '\n';
[all …]
/arkcompiler/runtime_core/runtime/
Dclass.cpp124 LOG(INFO, RUNTIME) << " Panda can't get classloader at now\n"; in DumpClass()
127 LOG(INFO, RUNTIME) << " There is no status structure of class in Panda at now\n"; in DumpClass()
129 os << "\n"; in DumpClass()
132 os << "\n"; in DumpClass()
134 << "'" << GetDescriptor() << "' -----\n"; in DumpClass()
135 os << " objectSize=" << BaseClass::GetObjectSize() << " \n"; in DumpClass()
136 os << " accessFlags=" << GetAccessFlags() << " \n"; in DumpClass()
138 os << " componentType=" << GetComponentType() << "\n"; in DumpClass()
142 os << " interfaces (" << num_direct_interfaces << "):\n"; in DumpClass()
147 os << " vtable (" << this->GetVTable().size() << " entries)\n"; in DumpClass()
[all …]
/arkcompiler/runtime_core/tests/cts-generator/runner/reporters/
Djtr_reporter.rb62 lines = @output.split("\n").map(&:strip).reject { |l| l.match(/^$/) }
63 @output = lines.join("\n")
101 @output << "\n" << output
106 @output << "\n" << output
111 @output << "\n" << output
116 @output << "\n" << output
121 @output << "\n" << output
126 @output << "\n" << output
132 @output << "\n" << output
138 @output << "\n" << output
[all …]
Dallure_reporter.rb105 @output << "\n" << output
110 @output << "\n" << output
116 @output << "\n" << output
121 @output << "\n" << output
125 @output << "\n" << output
130 @output << "\n" << output
136 @output << "\n" << output
142 @output << "\n" << output
148 @output << "\n" << output
156 @output << "\n" << status
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-class-constructor.ts19 n: number; property in Baz
20 constructor(s?: string, n?: number) {
22 this.n = n || 0;
26 this.n++;
Dtest-class-method-overload.ts26 n: number;
31 a(s?: string, n?: number) {
33 this.n = n || 0;
42 this.n++;
/arkcompiler/runtime_core/tests/verifier-tests/
Daccess_field_nomodifier_core.pa35 # protected Y Y Y N
36 # no modifier Y Y N >N<
37 # private Y N N N
/arkcompiler/ets_frontend/ts2panda/src/
DassemblyDumper.ts59 out.str += ".language ECMAScript\n";
60 out.str += "\n";
72 this.output += ") {\n";
86 … this.output += node.getMnemonic() + " v" + (<VReg>node.operands[0]).num + ", a" + paramIdx + "\n";
119 .replace(/\n/g, "\\n").replace(/\"/g, "\\\"")
126 throw Error("invalid register, please check your insn!\n");
143 this.output += "\n";
148 this.output += "}\n";
157 this.output += "\n";
165 + "\n"
[all …]
/arkcompiler/ets_frontend/test262/
Dutils.py53 print(f'{current_time()} I:>>> \n{str(info)} ')
105 file.write(result + "\n")
125 sys.stderr.write(f'{TERM_BLUE}{cmd_type}{TERM_NORMAL}\n')
127 sys.stderr.write(''.join(f'{TERM_BLUE}{var}={val} \\{TERM_NORMAL}\n'
129 cmd_str = (f'{TERM_NORMAL}\n\t{TERM_BLUE}').join(cmd)
130 sys.stderr.write(f'\t{TERM_BLUE}{cmd_str}{TERM_NORMAL}\n')
131 sys.stderr.write("\n")
137 assert not ret, f"\n error: Cloning '{git_url}' failed."
143 assert not ret, f"\n error: git checkout '{git_bash}' failed."
149 assert not ret, f"\n error: Failed to apply '{patch_file}'"
[all …]

12345678910>>...21