diff options
Diffstat (limited to 'src/lj_obj.h')
-rw-r--r-- | src/lj_obj.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index cdb90dff..a0dc689c 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -339,7 +339,7 @@ enum { | |||
339 | #define round_nkgc(n) (((n) + SCALE_NUM_GCO-1) & ~(SCALE_NUM_GCO-1)) | 339 | #define round_nkgc(n) (((n) + SCALE_NUM_GCO-1) & ~(SCALE_NUM_GCO-1)) |
340 | 340 | ||
341 | typedef struct VarInfo { | 341 | typedef struct VarInfo { |
342 | GCstr *name; /* Local variable name. */ | 342 | GCRef name; /* Local variable name. */ |
343 | BCPos startpc; /* First point where the local variable is active. */ | 343 | BCPos startpc; /* First point where the local variable is active. */ |
344 | BCPos endpc; /* First point where the local variable is dead. */ | 344 | BCPos endpc; /* First point where the local variable is dead. */ |
345 | } VarInfo; | 345 | } VarInfo; |
@@ -365,7 +365,7 @@ typedef struct GCproto { | |||
365 | BCLine linedefined; /* First line of the function definition. */ | 365 | BCLine linedefined; /* First line of the function definition. */ |
366 | BCLine lastlinedefined; /* Last line of the function definition. */ | 366 | BCLine lastlinedefined; /* Last line of the function definition. */ |
367 | MRef lineinfo; /* Map from bytecode instructions to source lines. */ | 367 | MRef lineinfo; /* Map from bytecode instructions to source lines. */ |
368 | struct VarInfo *varinfo; /* Names and extents of local variables. */ | 368 | MRef varinfo; /* Names and extents of local variables. */ |
369 | MRef uvname; /* Array of upvalue names (GCRef of GCstr). */ | 369 | MRef uvname; /* Array of upvalue names (GCRef of GCstr). */ |
370 | GCRef chunkname; /* Name of the chunk this function was defined in. */ | 370 | GCRef chunkname; /* Name of the chunk this function was defined in. */ |
371 | } GCproto; | 371 | } GCproto; |
@@ -396,6 +396,7 @@ typedef struct GCproto { | |||
396 | #define proto_lineinfo(pt) (mref((pt)->lineinfo, BCLine)) | 396 | #define proto_lineinfo(pt) (mref((pt)->lineinfo, BCLine)) |
397 | #define proto_line(pt, pos) \ | 397 | #define proto_line(pt, pos) \ |
398 | check_exp((uintptr_t)(pos) < (pt)->sizebc, proto_lineinfo(pt)[(pos)]) | 398 | check_exp((uintptr_t)(pos) < (pt)->sizebc, proto_lineinfo(pt)[(pos)]) |
399 | #define proto_varinfo(pt) (mref((pt)->varinfo, VarInfo)) | ||
399 | 400 | ||
400 | /* -- Upvalue object ------------------------------------------------------ */ | 401 | /* -- Upvalue object ------------------------------------------------------ */ |
401 | 402 | ||