Skip to content

Instantly share code, notes, and snippets.

@jseaton
Created April 17, 2014 12:58
Show Gist options
  • Save jseaton/10981441 to your computer and use it in GitHub Desktop.
Save jseaton/10981441 to your computer and use it in GitHub Desktop.
Sample V8 output
0x10e4a675a4c0 0 488b4c2410 REX.W movq rcx,[rsp+0x10]
0x10e4a675a4c5 5 493b4da8 REX.W cmpq rcx,[r13-0x58]
0x10e4a675a4c9 9 750d jnz 24 (0x10e4a675a4d8)
0x10e4a675a4cb 11 488b4e27 REX.W movq rcx,[rsi+0x27]
0x10e4a675a4cf 15 488b492f REX.W movq rcx,[rcx+0x2f]
0x10e4a675a4d3 19 48894c2410 REX.W movq [rsp+0x10],rcx
0x10e4a675a4d8 24 55 push rbp
0x10e4a675a4d9 25 4889e5 REX.W movq rbp,rsp
0x10e4a675a4dc 28 56 push rsi
0x10e4a675a4dd 29 57 push rdi
0x10e4a675a4de 30 493ba530070000 REX.W cmpq rsp,[r13+0x730]
0x10e4a675a4e5 37 7305 jnc 44 (0x10e4a675a4ec)
0x10e4a675a4e7 39 e89448fdff call StackCheck (0x10e4a672ed80) ;; debug: statement 15
;; code: BUILTIN
0x10e4a675a4ec 44 ff7510 push [rbp+0x10]
0x10e4a675a4ef 47 4b8d0464 REX.W leaq rax,[r12+r12*2]
0x10e4a675a4f3 51 5a pop rdx
0x10e4a675a4f4 52 e807c6fbff call 0x10e4a6716b00 ;; debug: statement 21
;; debug: position 29
;; code: BINARY_OP_IC, UNINITIALIZED (id = 8)
0x10e4a675a4f9 57 90 nop
0x10e4a675a4fa 58 48bba14a0096ce110000 REX.W movq rbx,0x11ce96004aa1 ;; object: 0x11ce96004aa1 Cell for 6144
0x10e4a675a504 68 83430bd1 addl [rbx+0xb],0xd1
0x10e4a675a508 72 791f jns 105 (0x10e4a675a529)
0x10e4a675a50a 74 50 push rax
0x10e4a675a50b 75 e8f048fdff call InterruptCheck (0x10e4a672ee00) ;; code: BUILTIN
0x10e4a675a510 80 58 pop rax
0x10e4a675a511 81 48bba14a0096ce110000 REX.W movq rbx,0x11ce96004aa1 ;; object: 0x11ce96004aa1 Cell for 6144
0x10e4a675a51b 91 49ba0000000000180000 REX.W movq r10,0x180000000000
0x10e4a675a525 101 4c895307 REX.W movq [rbx+0x7],r10
0x10e4a675a529 105 488be5 REX.W movq rsp,rbp ;; debug: statement 33
;; js return
0x10e4a675a52c 108 5d pop rbp
0x10e4a675a52d 109 c21000 ret 0x10
0x10e4a675a530 112 cc int3
0x10e4a675a531 113 cc int3
0x10e4a675a532 114 cc int3
0x10e4a675a533 115 cc int3
0x10e4a675a534 116 cc int3
0x10e4a675a535 117 cc int3
0x10e4a675a536 118 498b45a8 REX.W movq rax,[r13-0x58]
0x10e4a675a53a 122 e9bbffffff jmp 58 (0x10e4a675a4fa)
0x10e4a675a53f 127 90 nop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment