** Check whether table being indexed by instruction 'i' is the ** environment '_ENV' */
| 518 | ** environment '_ENV' |
| 519 | */ |
| 520 | static const char *gxf (const Proto *p, int pc, Instruction i, int isup) { |
| 521 | int t = GETARG_B(i); /* table index */ |
| 522 | const char *name; /* name of indexed variable */ |
| 523 | if (isup) /* is an upvalue? */ |
| 524 | name = upvalname(p, t); |
| 525 | else |
| 526 | getobjname(p, pc, t, &name); |
| 527 | return (name && strcmp(name, LUA_ENV) == 0) ? "global" : "field"; |
| 528 | } |
| 529 | |
| 530 | |
| 531 | static const char *getobjname (const Proto *p, int lastpc, int reg, |
no test coverage detected