aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-01-28 14:40:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-01-28 14:40:29 -0300
commit949187b049ce329c93d6639b91e244f2b208c807 (patch)
treee758128392692fe349087e457fc743ea4f56e4bb /lcode.c
parent58aa09a0b91cf81779d6710d7f9d855bb9d3712f (diff)
downloadlua-949187b049ce329c93d6639b91e244f2b208c807.tar.gz
lua-949187b049ce329c93d6639b91e244f2b208c807.tar.bz2
lua-949187b049ce329c93d6639b91e244f2b208c807.zip
Optimizations for line hook
The function 'changedline' tries harder to avoid calling 'luaG_getfuncline' plus small changes in the use of 'L->oldpc'.
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lcode.c b/lcode.c
index d8d353fe..9741d7cd 100644
--- a/lcode.c
+++ b/lcode.c
@@ -314,15 +314,6 @@ void luaK_patchtohere (FuncState *fs, int list) {
314} 314}
315 315
316 316
317/*
318** MAXimum number of successive Instructions WiTHout ABSolute line
319** information.
320*/
321#if !defined(MAXIWTHABS)
322#define MAXIWTHABS 120
323#endif
324
325
326/* limit for difference between lines in relative line info. */ 317/* limit for difference between lines in relative line info. */
327#define LIMLINEDIFF 0x80 318#define LIMLINEDIFF 0x80
328 319