Home
last modified time | relevance | path

Searched refs:labels (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/tests/expression/
Dconditions.test.ts77 let labels = insns.filter(item => (item instanceof Label)); variable
80 expect(labels.length).to.equal(2);
85 expect(elseLabel).to.equal(labels[0]);
86 expect(endIfLabel).to.equal(labels[1]);
171 let labels = insns.filter(item => (item instanceof Label)); variable
174 expect(labels.length).to.equal(2);
/arkcompiler/ets_frontend/ts2panda/src/
DassemblyDumper.ts44 private labels: Map<number, string>; // Label.id : Label string name property in AssemblyDumper
53 this.labels = new Map<number, string>();
172 if (!this.labels.has(label.id)) {
174 this.labels.set(label.id, labelName);
176 labelName = this.labels.get(label.id)!;
Dts2panda.ts93 …static getFuncInsnsAndRegsNum(pg: PandaGen): { insns: Ins[]; regsNum: number; labels: string[]; } {
95 let labels: Array<string> = [];
106 labels.push(insLabel);
168 labels: labels.length === 0 ? undefined : labels
452 funcInsnsAndRegsNum.labels,
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/
DRenameIdentifierTransformer.ts266 const labels: Label[] = scope.labels; constant
267 if (labels.length > 0) {
268 let upperMangledLabels = getUpperMangledLabelNames(labels[0]);
269 for (const label of labels) {
/arkcompiler/ets_frontend/arkguard/src/utils/
DScopeAnalyzer.ts143 labels: Label[]; property
208 let labels: Label[] = [];
227 'labels': labels,
251 current.labels.push(label);
263 if (!current.labels.includes(label)) {
267 let index: number = current.labels.findIndex((lb: Label) => {
285 let labelName: string = '$' + scope.labels.length + '_' + node.label.text;
295 scope.labels.push(label);
/arkcompiler/runtime_core/assembler/templates/
Dins_emit.h.erb26 const std::unordered_map<std::string_view, panda::Label>& labels) const {
58 % ops << 'labels.find(ids[0])->second'
100 if ((ids.size() == 0) || (labels.find(ids[0]) == labels.cend())) {
/arkcompiler/runtime_core/assembler/
Dassembly-function.h54 TryCatchInfo(std::unordered_map<std::string_view, size_t> &labels, in TryCatchInfo()
57 : try_catch_labels(labels), try_catch_map(map), try_catch_order(param_try_catch_order) in TryCatchInfo()
Dassembly-ins.h116 const std::unordered_map<std::string_view, panda::Label> &labels) const;
Dassembly-parser.cpp823 std::vector<std::string> labels; in PrepareCatchBlock() local
848 labels.emplace_back(context_.GiveToken()); in PrepareCatchBlock()
854 catch_block.try_begin_label = labels[TRY_BEGIN]; in PrepareCatchBlock()
855 catch_block.try_end_label = labels[TRY_END]; in PrepareCatchBlock()
856 catch_block.catch_begin_label = labels[CATCH_BEGIN]; in PrepareCatchBlock()
858 catch_block.catch_end_label = labels[CATCH_END]; in PrepareCatchBlock()
860 catch_block.catch_end_label = labels[CATCH_BEGIN]; in PrepareCatchBlock()
Dassembly-emitter.cpp1490 auto labels = std::unordered_map<std::string_view, panda::Label> {}; in Emit()
1494 labels.insert_or_assign(insn.label, emitter.CreateLabel()); in Emit()
1500 auto search = labels.find(insn.label); in Emit()
1501 ASSERT(search != labels.end()); in Emit()
1506 … if (!insn.Emit(emitter, method, methods, fields, classes, strings, literalarrays, labels)) { in Emit()
/arkcompiler/runtime_core/docs/
Dirtoc.md94 Using labels:
Dassembly_format.md60 … primitive data types, aggregate data types, members of aggregate data types, functions and labels.
Ddoxygen.config2427 # badly anti-aliased labels on the edges of a graph (i.e. they become hard to
/arkcompiler/runtime_core/assembler/tests/
Dparser_test.cpp2417 std::vector<std::string> labels {"try_begin", "try_end", "catch_begin"}; in TEST() local
2420 for (size_t i = 0; i < labels.size(); i++) { in TEST()
2425 for (size_t j = 0; j < labels.size(); j++) { in TEST()
2427 directive += labels[j]; in TEST()
2451 for (size_t j = 0; j < labels.size(); j++) { in TEST()
2453 directive += i == j ? "$" : labels[j]; in TEST()
2478 ss << "Test " << labels[i] << " does not exists"; in TEST()
2488 for (size_t j = 0; j < labels.size(); j++) { in TEST()
2490 v.push_back(l.TokenizeString(labels[j] + ":").first); in TEST()
2501 ASSERT_EQ(e.pos, catch_table.find(labels[i])) << ss.str(); in TEST()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcircuit_builder-inl.h1249 std::vector<Label> labels; in GetPredecessors() local
1251 labels.emplace_back(Label(rawlabel)); in GetPredecessors()
1253 return labels; in GetPredecessors()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp580 auto labels = function["l"]; in ParseFunctionLabels() local
581 for (Json::ArrayIndex i = 0; i < labels.size(); ++i) { in ParseFunctionLabels()
582 auto labelName = labels[i].asString(); in ParseFunctionLabels()
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt8623 language/statementList/eval-block-block-with-labels.js
8633 language/statementList/eval-block-with-statment-block-with-labels.js
8643 language/statementList/eval-class-block-with-labels.js
8653 language/statementList/eval-fn-block-with-labels.js
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2labels&&s.labels.get(e.idText(r.label))||!r.label&&s.allowedNonLabeledJumps&n)){var i=void 0,a=r.l…