• Home
  • Raw
  • Download

Lines Matching refs:pandaGen

20 function genRawString(pandaGen: PandaGen, expr: ts.TemplateExpression | ts.NoSubstitutionTemplateLi…
29 pandaGen.loadAccumulatorString(expr, text);
32 function genCookedString(pandaGen: PandaGen, expr: ts.TemplateExpression | ts.NoSubstitutionTemplat…
45 pandaGen.loadAccumulatorString(expr, text);
48 function genTemplateArrayArg(pandaGen: PandaGen, expr: ts.TemplateExpression | ts.NoSubstitutionTem…
55 let indexReg = pandaGen.getTemp();
56 let rawArrTmp = pandaGen.getTemp();
57 let cookedArrTmp = pandaGen.getTemp();
59 pandaGen.createEmptyArray(expr);
60 pandaGen.storeAccumulator(expr, rawArrTmp);
61 pandaGen.createEmptyArray(expr);
62 pandaGen.storeAccumulator(expr, cookedArrTmp);
63 pandaGen.loadAccumulatorInt(expr, elemIndex);
64 pandaGen.storeAccumulator(expr, indexReg);
66 genRawString(pandaGen, expr);
67 pandaGen.storeObjProperty(expr, rawArrTmp, indexReg);
69 genCookedString(pandaGen, expr);
70 pandaGen.storeObjProperty(expr, cookedArrTmp, indexReg);
75 pandaGen.loadAccumulatorInt(span, elemIndex);
76 pandaGen.storeAccumulator(span, indexReg);
77pandaGen.loadAccumulatorString(span, span.literal.rawText === undefined ? span.literal.text : span…
78 pandaGen.storeObjProperty(span, rawArrTmp, indexReg);
80 pandaGen.loadAccumulatorString(span, span.literal.text);
81 pandaGen.storeObjProperty(span, cookedArrTmp, indexReg);
86 pandaGen.moveVreg(expr, rawArr, rawArrTmp);
87 pandaGen.moveVreg(expr, cookedArr, cookedArrTmp);
88 pandaGen.freeTemps(indexReg, rawArrTmp, cookedArrTmp);
91 export function getTemplateObject(pandaGen: PandaGen, expr: ts.TaggedTemplateExpression): void {
92 let templateArgs = pandaGen.getTemp();
93 let indexReg = pandaGen.getTemp();
94 let rawArr = pandaGen.getTemp();
95 let cookedArr = pandaGen.getTemp();
97 genTemplateArrayArg(pandaGen, expr.template, rawArr, cookedArr);
98 pandaGen.createEmptyArray(expr);
99 pandaGen.storeAccumulator(expr, templateArgs);
102 pandaGen.loadAccumulatorInt(expr, elemIndex);
103 pandaGen.storeAccumulator(expr, indexReg);
104 pandaGen.loadAccumulator(expr, rawArr);
105 pandaGen.storeObjProperty(expr, templateArgs, indexReg);
107 pandaGen.loadAccumulatorInt(expr, elemIndex);
108 pandaGen.storeAccumulator(expr, indexReg);
109 pandaGen.loadAccumulator(expr, cookedArr);
110 pandaGen.storeObjProperty(expr, templateArgs, indexReg);
112 pandaGen.getTemplateObject(expr, templateArgs);
113 pandaGen.freeTemps(templateArgs, indexReg, rawArr, cookedArr);