Hi,
Is it possible to see generated assembly code for built-in functions? If I use just print_code with a simple program, like [].push(1), nothing is generated.
Is --print_builtin_code flag the right thing to use? For array push the output looks like:
kind = BUILTIN
name = ArrayPush
compiler = unknown
Instructions (size = 10)
0x246f7340 0 bb20c45908 mov ebx,0x859c420 ;; external reference (Builtin_ArrayPush)
0x246f7345 5 e9f682feff jmp 0x246df640 (AdaptorWithBuiltinExitFrame) ;; code: BUILTIN
RelocInfo (size = 3)
0x246f7341 external reference (Builtin_ArrayPush) (0x859c420)
0x246f7346 code target (BUILTIN) (0x246df640)
There is another code for FastArrayPush.
Can you also help me to understand the output if the flag --print_builtin_code is the right thing to use?
Thanks!