diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-01-28 14:40:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-01-28 14:40:29 -0300 |
commit | 949187b049ce329c93d6639b91e244f2b208c807 (patch) | |
tree | e758128392692fe349087e457fc743ea4f56e4bb /lcode.c | |
parent | 58aa09a0b91cf81779d6710d7f9d855bb9d3712f (diff) | |
download | lua-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.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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 | ||