@@ -138,9 +138,9 @@ type function struct {
138138 freeRegisterCount int
139139 activeVariableCount int
140140 firstLocal int
141- firstLabel int // Lua 5.4: first label index for this function (like C Lua's fs->firstlabel)
142- previousLine int // Lua 5.4: for relative line info encoding (per-function, like C Lua's FuncState)
143- iwthabs int // instructions without absolute line info
141+ firstLabel int // Lua 5.4: first label index for this function (like C Lua's fs->firstlabel)
142+ previousLine int // Lua 5.4: for relative line info encoding (per-function, like C Lua's FuncState)
143+ iwthabs int // instructions without absolute line info
144144 needClose bool // Lua 5.4: function has TBC variables (affects RETURN k-bit)
145145}
146146
@@ -488,8 +488,8 @@ func (f *function) assertEqual(a, b interface{}) {
488488
489489const (
490490 lineInfoAbs = - 0x80 // marker for absolute line info in lineInfo
491- limLineDiff = 0x80 // max absolute delta that fits in int8
492- maxIWthAbs = 128 // max instructions without absolute line info
491+ limLineDiff = 0x80 // max absolute delta that fits in int8
492+ maxIWthAbs = 128 // max instructions without absolute line info
493493)
494494
495495func (f * function ) encode (i instruction ) int {
@@ -601,7 +601,7 @@ func (f *function) Jump() int {
601601 return f .Concatenate (f .encodeJ (opJump , noJump ), jumpPC )
602602}
603603
604- func (f * function ) JumpTo (target int ) { f .PatchList (f .Jump (), target ) }
604+ func (f * function ) JumpTo (target int ) { f .PatchList (f .Jump (), target ) }
605605func (f * function ) ReturnNone () {
606606 k := 0
607607 if f .needClose {
@@ -1011,7 +1011,6 @@ func (f *function) ExpressionToValue(e exprDesc) exprDesc {
10111011 return f .DischargeVariables (e )
10121012}
10131013
1014-
10151014// exp2K tries to convert expression to a constant index in range.
10161015// Returns (constant index, true) if successful, (0, false) otherwise.
10171016func (f * function ) exp2K (e exprDesc ) (int , bool ) {
@@ -1191,8 +1190,8 @@ func (f *function) Indexed(t, k exprDesc) exprDesc {
11911190 if t .kind == kindUpValue {
11921191 f .assert (f .isKstr (k ))
11931192 r := makeExpression (kindIndexUp , 0 )
1194- r .table = t .info // upvalue index
1195- r .index = k .info // string constant index
1193+ r .table = t .info // upvalue index
1194+ r .index = k .info // string constant index
11961195 return r
11971196 }
11981197 // table is in a register
0 commit comments