luaH_getstr
function · lua · boundary
- Address
0x6fa760· 59 bytes, up to0x6fa79a- Meaning
- Returns the value stored under an interned string key, the shared nil object when absent
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- lua/object#table-access
Finding: Table access in lua: objects and tables
A node vector is a chained scatter table with Brent's variation. luaH_mainposition hashes a
key to its node: a boolean by value, a light userdata or any other non-string by address modulo
size-1 made odd, a number through hashnum, a string by its hash, masked. luaH_getnum,
luaH_get and luaH_getany read; luaH_set, luaH_setnum and newkey write, raising table index is nil and table index is NaN. luaH_index and arrayindex give a key's traversal
position.
| function | name | decided by |
|---|---|---|
0x6fa1a0 | luaH_mainposition | jump table on the tag minus 1 (0x6fa1ac): boolean 0x6fa1e5, light userdata 0x6fa201, number 0x6fa1b3, string 0x6fa1c6, other 0x6fa222 |
0x6fa260 | hashnum | fadd of 1.0 (0x6fa267), word sum (0x6fa27e), div edi by size-1 made odd (0x6fa28b) |
0x6fa420 | luaH_index | nil gives -1 (0x6fa428), arrayindex (0x6fa43e), luaH_get (0x6fa458), the error invalid key for `next' (0x6fa467), division by 40 (0x6fa485) |
0x6fa4a0 | arrayindex | __ftol (0x6fa4af), fcompp with the key (0x6fa4bf), k-1 below 2^24 (0x6fa4d0) |
0x6fa700 | luaH_getnum | array bound tests (0x6fa706, 0x6fa70e), hashnum (0x6fa72f), number tag and equal value (0x6fa736, 0x6fa743), next link (0x6fa748) |
0x6fa760 | luaH_getstr | main position by the string hash (0x6fa771), tag 4 and pointer equality (0x6fa780, 0x6fa785), chain link (0x6fa78a) |
0x6fa7a0 | luaH_get | integer number keys to luaH_getnum (0x6fa7e0), strings to luaH_getstr (0x6fa7b7), others to luaH_getany (0x6fa7ef) |
0x6fa800 | luaH_getany | nil key skips (0x6fa804), luaH_mainposition (0x6fa809), luaO_rawequalObj (0x6fa814) |
0x6fa840 | luaH_set | luaH_get (0x6fa851), flags cleared (0x6fa85b), table index is nil (0x6fa867), NaN (0x6fa87f), newkey (0x6fa892) |
0x6fa8a0 | newkey | luaH_mainposition twice (0x6fa8b8, 0x6fa8ca), 10-dword node copy (0x6fa8f7), free pointer down by 40 (0x6fa95e), rehash (0x6fa98c), luaH_get (0x6fa995) |
0x6fad80 | luaH_setnum | luaH_getnum (0x6fad91), newkey (0x6fadba) with a number built on the stack |
The derivation is in the doc.
Callers 5
- luaT_gettm lua
- luaT_gettmbyobj lua
- luaV_execute lua
- Arith lua
- luaH_get lua
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.