tekknolagi/skybison

Add LOAD_METHOD_MODULE opcode

Closed this issue · 1 comments

The biggest load method receiver type in interpreter bootstrap (for example) is module and that can be easily optimized like we do in LOAD_ATTR_MODULE.

cum	pct	freq
100	47	7823	kModule
52	26	4342	kInstanceFunction
26	11	1902	kUnknown
15	11	1834	kInstanceOffset
4	3	657	kType
0	0	16	kInstanceProperty
0	0	8	kInstanceTypeDescr
0	0	3	kInstanceType

InstanceFunction is already handled.

As expected, there's a lot of os.this() and re.that(), etc, etc

Closed in #451