benilla-re systems structs docs

luaO_rawequalObj

function · lua · primitive

Address
0x6f58b0 · 60 bytes, up to 0x6f58eb
Meaning
Compares two values by tag, then by number or by payload
Confidence
verified, proof two
Finding
lua/object#basic-object-functions

Finding: Basic object functions in lua: objects and tables

luaO_int2fb and luaO_log2 are the integer helpers: a floating-byte code of an integer (#the-floating-byte-size-code) and the base-2 logarithm by table. luaO_rawequalObj compares two values by tag and then by number or by address. luaO_str2d reads a number with strtod and accepts trailing spaces only. luaO_chunkid builds the short source name used in messages, from =name, @file or a string chunk ([string "first line..."]). luaO_pushvfstring joins the literal text and the converted arguments of a %s, %c, %d, %f or %% format by luaV_concat; luaO_pushfstring calls it on its own arguments, and pushstr pushes one string. The client's pushstr pushes (null) for a null pointer (0x6f5bc8); upstream's (lobject.c, lines 104 to 107) has no such check.

functionnamedecided by
0x6f5830luaO_log2thresholds 0x10000 (0x6f5834), 0x1000000 (0x6f583f), 0x100 (0x6f586b), adds 24, 16, 8; -1 (0x6f589a)
0x6f58b0luaO_rawequalObjtags differ returns 0 (0x6f58b3), jump table on tags 0..3 (0x6f58c0), fcompp (0x6f58cd), payload subtract (0x6f58e3)
0x6f5900luaO_str2d_strtod (0x6f5911), __isctype 8 over the tail (0x6f593e), end test (0x6f5964)
0x6f5990luaO_pushvfstringempty string first (0x6f59aa), strchr for % (0x6f59b2), literal text by luaS_newlstr (0x6f59f9), letter switch (0x6f5a40), fild for %d (0x6f5a97), fld qword for %f (0x6f5abe), luaV_concat (0x6f5b31)
0x6f5bc0pushstrthe text (null) (0x6f5bc8), luaS_newlstr (0x6f5bee), growth check (0x6f5c0d)
0x6f5c20luaO_pushfstringcalls luaO_pushvfstring with the address of its own arguments (0x6f5c2d)
0x6f5c40luaO_chunkid= (0x6f5c49), @ (0x6f5c6b), else [string " (0x6f5ceb), first line by strcspn (0x6f5cd7), ..."] (0x6f5d5d)

The derivation is in the doc.

Callers 5

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.