@@ -221,27 +221,27 @@ class Labellist {
221221 }
222222
223223 /* Accessor methods matching old interface */
224- inline Labeldesc* getArr () noexcept { return vec.data (); }
225- inline const Labeldesc* getArr () const noexcept { return vec.data (); }
226- inline int getN () const noexcept { return static_cast <int >(vec.size ()); }
227- inline int getSize () const noexcept { return static_cast <int >(vec.capacity ()); }
224+ Labeldesc* getArr () noexcept { return vec.data (); }
225+ const Labeldesc* getArr () const noexcept { return vec.data (); }
226+ int getN () const noexcept { return static_cast <int >(vec.size ()); }
227+ int getSize () const noexcept { return static_cast <int >(vec.capacity ()); }
228228
229229 /* Modifying size */
230- inline void setN (int new_n) { vec.resize (static_cast <size_t >(new_n)); }
230+ void setN (int new_n) { vec.resize (static_cast <size_t >(new_n)); }
231231
232232 /* Direct vector access for modern operations */
233- inline void push_back (const Labeldesc& desc) { vec.push_back (desc); }
234- inline void reserve (int capacity) { vec.reserve (static_cast <size_t >(capacity)); }
235- inline Labeldesc& operator [](int index) { return vec[static_cast <size_t >(index)]; }
236- inline const Labeldesc& operator [](int index) const { return vec[static_cast <size_t >(index)]; }
233+ void push_back (const Labeldesc& desc) { vec.push_back (desc); }
234+ void reserve (int capacity) { vec.reserve (static_cast <size_t >(capacity)); }
235+ Labeldesc& operator [](int index) { return vec[static_cast <size_t >(index)]; }
236+ const Labeldesc& operator [](int index) const { return vec[static_cast <size_t >(index)]; }
237237
238238 /* For luaM_growvector replacement */
239- inline void ensureCapacity (int needed) {
239+ void ensureCapacity (int needed) {
240240 if (needed > getSize ()) {
241241 vec.reserve (static_cast <size_t >(needed));
242242 }
243243 }
244- inline Labeldesc* allocateNew () {
244+ Labeldesc* allocateNew () {
245245 vec.resize (vec.size () + 1 );
246246 return &vec.back ();
247247 }
@@ -264,25 +264,25 @@ class Dyndata {
264264 }
265265
266266 /* Direct actvar accessor methods - avoid temporary object creation */
267- inline Vardesc* actvarGetArr () noexcept { return actvar_vec.data (); }
268- inline const Vardesc* actvarGetArr () const noexcept { return actvar_vec.data (); }
269- inline int actvarGetN () const noexcept { return static_cast <int >(actvar_vec.size ()); }
270- inline int actvarGetSize () const noexcept { return static_cast <int >(actvar_vec.capacity ()); }
267+ Vardesc* actvarGetArr () noexcept { return actvar_vec.data (); }
268+ const Vardesc* actvarGetArr () const noexcept { return actvar_vec.data (); }
269+ int actvarGetN () const noexcept { return static_cast <int >(actvar_vec.size ()); }
270+ int actvarGetSize () const noexcept { return static_cast <int >(actvar_vec.capacity ()); }
271271
272- inline void actvarSetN (int new_n) { actvar_vec.resize (static_cast <size_t >(new_n)); }
273- inline Vardesc& actvarAt (int index) { return actvar_vec[static_cast <size_t >(index)]; }
274- inline const Vardesc& actvarAt (int index) const { return actvar_vec[static_cast <size_t >(index)]; }
272+ void actvarSetN (int new_n) { actvar_vec.resize (static_cast <size_t >(new_n)); }
273+ Vardesc& actvarAt (int index) { return actvar_vec[static_cast <size_t >(index)]; }
274+ const Vardesc& actvarAt (int index) const { return actvar_vec[static_cast <size_t >(index)]; }
275275
276- inline Vardesc* actvarAllocateNew () {
276+ Vardesc* actvarAllocateNew () {
277277 actvar_vec.resize (actvar_vec.size () + 1 );
278278 return &actvar_vec.back ();
279279 }
280280
281281 /* Phase 116: std::span accessors for actvar array */
282- inline std::span<Vardesc> actvarGetSpan () noexcept {
282+ std::span<Vardesc> actvarGetSpan () noexcept {
283283 return std::span (actvar_vec.data (), actvar_vec.size ());
284284 }
285- inline std::span<const Vardesc> actvarGetSpan () const noexcept {
285+ std::span<const Vardesc> actvarGetSpan () const noexcept {
286286 return std::span (actvar_vec.data (), actvar_vec.size ());
287287 }
288288
@@ -292,13 +292,13 @@ class Dyndata {
292292 Dyndata* dyn;
293293 public:
294294 explicit ActvarAccessor (Dyndata* d) : dyn(d) {}
295- inline int getN () const noexcept { return dyn->actvarGetN (); }
296- inline void setN (int n) { dyn->actvarSetN (n); }
297- inline Vardesc& operator [](int i) { return dyn->actvarAt (i); }
298- inline Vardesc* allocateNew () { return dyn->actvarAllocateNew (); }
295+ int getN () const noexcept { return dyn->actvarGetN (); }
296+ void setN (int n) { dyn->actvarSetN (n); }
297+ Vardesc& operator [](int i) { return dyn->actvarAt (i); }
298+ Vardesc* allocateNew () { return dyn->actvarAllocateNew (); }
299299 };
300300
301- inline ActvarAccessor actvar () noexcept { return ActvarAccessor{this }; }
301+ ActvarAccessor actvar () noexcept { return ActvarAccessor{this }; }
302302};
303303
304304
@@ -324,35 +324,35 @@ class CodeBuffer {
324324
325325public:
326326 /* Inline accessors for reading */
327- inline int getPC () const noexcept { return pc; }
328- inline int getLastTarget () const noexcept { return lasttarget; }
329- inline int getPreviousLine () const noexcept { return previousline; }
330- inline int getNAbsLineInfo () const noexcept { return nabslineinfo; }
331- inline lu_byte getInstructionsWithAbs () const noexcept { return iwthabs; }
327+ int getPC () const noexcept { return pc; }
328+ int getLastTarget () const noexcept { return lasttarget; }
329+ int getPreviousLine () const noexcept { return previousline; }
330+ int getNAbsLineInfo () const noexcept { return nabslineinfo; }
331+ lu_byte getInstructionsWithAbs () const noexcept { return iwthabs; }
332332
333333 /* Setters */
334- inline void setPC (int pc_) noexcept { pc = pc_; }
335- inline void setLastTarget (int lasttarget_) noexcept { lasttarget = lasttarget_; }
336- inline void setPreviousLine (int previousline_) noexcept { previousline = previousline_; }
337- inline void setNAbsLineInfo (int nabslineinfo_) noexcept { nabslineinfo = nabslineinfo_; }
338- inline void setInstructionsWithAbs (lu_byte iwthabs_) noexcept { iwthabs = iwthabs_; }
334+ void setPC (int pc_) noexcept { pc = pc_; }
335+ void setLastTarget (int lasttarget_) noexcept { lasttarget = lasttarget_; }
336+ void setPreviousLine (int previousline_) noexcept { previousline = previousline_; }
337+ void setNAbsLineInfo (int nabslineinfo_) noexcept { nabslineinfo = nabslineinfo_; }
338+ void setInstructionsWithAbs (lu_byte iwthabs_) noexcept { iwthabs = iwthabs_; }
339339
340340 /* Increment/decrement methods */
341- inline void incrementPC () noexcept { pc++; }
342- inline void decrementPC () noexcept { pc--; }
343- inline int postIncrementPC () noexcept { return pc++; }
344- inline void incrementNAbsLineInfo () noexcept { nabslineinfo++; }
345- inline void decrementNAbsLineInfo () noexcept { nabslineinfo--; }
346- inline int postIncrementNAbsLineInfo () noexcept { return nabslineinfo++; }
347- inline lu_byte postIncrementInstructionsWithAbs () noexcept { return iwthabs++; }
348- inline void decrementInstructionsWithAbs () noexcept { iwthabs--; }
341+ void incrementPC () noexcept { pc++; }
342+ void decrementPC () noexcept { pc--; }
343+ int postIncrementPC () noexcept { return pc++; }
344+ void incrementNAbsLineInfo () noexcept { nabslineinfo++; }
345+ void decrementNAbsLineInfo () noexcept { nabslineinfo--; }
346+ int postIncrementNAbsLineInfo () noexcept { return nabslineinfo++; }
347+ lu_byte postIncrementInstructionsWithAbs () noexcept { return iwthabs++; }
348+ void decrementInstructionsWithAbs () noexcept { iwthabs--; }
349349
350350 /* Reference accessors for compound assignments */
351- inline int & getPCRef () noexcept { return pc; }
352- inline int & getLastTargetRef () noexcept { return lasttarget; }
353- inline int & getPreviousLineRef () noexcept { return previousline; }
354- inline int & getNAbsLineInfoRef () noexcept { return nabslineinfo; }
355- inline lu_byte& getInstructionsWithAbsRef () noexcept { return iwthabs; }
351+ int & getPCRef () noexcept { return pc; }
352+ int & getLastTargetRef () noexcept { return lasttarget; }
353+ int & getPreviousLineRef () noexcept { return previousline; }
354+ int & getNAbsLineInfoRef () noexcept { return nabslineinfo; }
355+ lu_byte& getInstructionsWithAbsRef () noexcept { return iwthabs; }
356356};
357357
358358
@@ -364,17 +364,17 @@ class ConstantPool {
364364
365365public:
366366 /* Inline accessors */
367- inline Table* getCache () const noexcept { return cache; }
368- inline int getCount () const noexcept { return count; }
367+ Table* getCache () const noexcept { return cache; }
368+ int getCount () const noexcept { return count; }
369369
370- inline void setCache (Table* cache_) noexcept { cache = cache_; }
371- inline void setCount (int count_) noexcept { count = count_; }
370+ void setCache (Table* cache_) noexcept { cache = cache_; }
371+ void setCount (int count_) noexcept { count = count_; }
372372
373373 /* Increment */
374- inline void incrementCount () noexcept { count++; }
374+ void incrementCount () noexcept { count++; }
375375
376376 /* Reference accessor */
377- inline int & getCountRef () noexcept { return count; }
377+ int & getCountRef () noexcept { return count; }
378378};
379379
380380
@@ -388,22 +388,22 @@ class VariableScope {
388388
389389public:
390390 /* Inline accessors */
391- inline int getFirstLocal () const noexcept { return firstlocal; }
392- inline int getFirstLabel () const noexcept { return firstlabel; }
393- inline short getNumDebugVars () const noexcept { return ndebugvars; }
394- inline short getNumActiveVars () const noexcept { return nactvar; }
391+ int getFirstLocal () const noexcept { return firstlocal; }
392+ int getFirstLabel () const noexcept { return firstlabel; }
393+ short getNumDebugVars () const noexcept { return ndebugvars; }
394+ short getNumActiveVars () const noexcept { return nactvar; }
395395
396- inline void setFirstLocal (int firstlocal_) noexcept { firstlocal = firstlocal_; }
397- inline void setFirstLabel (int firstlabel_) noexcept { firstlabel = firstlabel_; }
398- inline void setNumDebugVars (short ndebugvars_) noexcept { ndebugvars = ndebugvars_; }
399- inline void setNumActiveVars (short nactvar_) noexcept { nactvar = nactvar_; }
396+ void setFirstLocal (int firstlocal_) noexcept { firstlocal = firstlocal_; }
397+ void setFirstLabel (int firstlabel_) noexcept { firstlabel = firstlabel_; }
398+ void setNumDebugVars (short ndebugvars_) noexcept { ndebugvars = ndebugvars_; }
399+ void setNumActiveVars (short nactvar_) noexcept { nactvar = nactvar_; }
400400
401401 /* Increment */
402- inline short postIncrementNumDebugVars () noexcept { return ndebugvars++; }
402+ short postIncrementNumDebugVars () noexcept { return ndebugvars++; }
403403
404404 /* Reference accessors */
405- inline short & getNumDebugVarsRef () noexcept { return ndebugvars; }
406- inline short & getNumActiveVarsRef () noexcept { return nactvar; }
405+ short & getNumDebugVarsRef () noexcept { return ndebugvars; }
406+ short & getNumActiveVarsRef () noexcept { return nactvar; }
407407};
408408
409409
@@ -414,14 +414,14 @@ class RegisterAllocator {
414414
415415public:
416416 /* Inline accessors */
417- inline lu_byte getFreeReg () const noexcept { return freereg; }
418- inline void setFreeReg (lu_byte freereg_) noexcept { freereg = freereg_; }
417+ lu_byte getFreeReg () const noexcept { return freereg; }
418+ void setFreeReg (lu_byte freereg_) noexcept { freereg = freereg_; }
419419
420420 /* Decrement */
421- inline void decrementFreeReg () noexcept { freereg--; }
421+ void decrementFreeReg () noexcept { freereg--; }
422422
423423 /* Reference accessor */
424- inline lu_byte& getFreeRegRef () noexcept { return freereg; }
424+ lu_byte& getFreeRegRef () noexcept { return freereg; }
425425};
426426
427427
@@ -433,15 +433,15 @@ class UpvalueTracker {
433433
434434public:
435435 /* Inline accessors */
436- inline lu_byte getNumUpvalues () const noexcept { return nups; }
437- inline lu_byte getNeedClose () const noexcept { return needclose; }
436+ lu_byte getNumUpvalues () const noexcept { return nups; }
437+ lu_byte getNeedClose () const noexcept { return needclose; }
438438
439- inline void setNumUpvalues (lu_byte nups_) noexcept { nups = nups_; }
440- inline void setNeedClose (lu_byte needclose_) noexcept { needclose = needclose_; }
439+ void setNumUpvalues (lu_byte nups_) noexcept { nups = nups_; }
440+ void setNeedClose (lu_byte needclose_) noexcept { needclose = needclose_; }
441441
442442 /* Reference accessors */
443- inline lu_byte& getNumUpvaluesRef () noexcept { return nups; }
444- inline lu_byte& getNeedCloseRef () noexcept { return needclose; }
443+ lu_byte& getNumUpvaluesRef () noexcept { return nups; }
444+ lu_byte& getNeedCloseRef () noexcept { return needclose; }
445445};
446446
447447
0 commit comments