Lines Matching full:this
4 * you may not use this file except in compliance with the License.
37 this.intrinsicName = intrinsicName;
38 this.argsNum = argsNum;
39 this.returnType = returnType;
52 this.pg = pg;
53 this.labels = new Map<number, string>();
54 this.labelId = 0;
55 this.output = "";
64 let parametersCount = this.pg.getParametersCount();
65 this.output += ".function any " + this.pg.internalName + "("
67 this.output += "any a" + i.toString();
69 this.output += ", ";
72 this.output += ") {\n";
76 let irNodes: IRNode[] = this.pg.getInsns();
77 let parametersCount = this.pg.getParametersCount();
84 this.output += "\t";
86 … this.output += node.getMnemonic() + " v" + (<VReg>node.operands[0]).num + ", a" + paramIdx + "\n";
95 this.writeLabel(<Label>node);
99 this.output += "\t"
100 this.output += node.getMnemonic() + " ";
114 this.output += imm.value.toString();
116 this.output += op;
120 this.output += "\"" + escapedOp + "\"";
128 this.output += "v" + v.num.toString();
135 this.output += this.getLabelName(<Label>op);
140 this.output += ", ";
143 this.output += "\n";
148 this.output += "}\n";
152 let catchTables = generateCatchTables(this.pg.getCatchMap());
157 this.output += "\n";
162 this.output += ".catchall " + this.getLabelName(labelPair.getBeginLabel())
163 + ", " + this.getLabelName(labelPair.getEndLabel())
164 + ", " + this.getLabelName(catchBeginLabel)
172 if (!this.labels.has(label.id)) {
173 labelName = this.labelPrefix + this.labelId++;
174 this.labels.set(label.id, labelName);
176 labelName = this.labels.get(label.id)!;
182 let labelName = this.getLabelName(label);
183 this.output += labelName + ":\n";
187 this.writeFunctionHeader();
188 this.writeFunctionBody();
189 this.writeFunctionCatchTable();
190 this.writeFunctionTail();
192 console.log(this.output);