Skip to content

Instantly share code, notes, and snippets.

@nitsanw
Last active August 16, 2017 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitsanw/db28ed42a0a4b8c05d95 to your computer and use it in GitHub Desktop.
Save nitsanw/db28ed42a0a4b8c05d95 to your computer and use it in GitHub Desktop.
NOOP.ASS part I
Decoding compiled method 0x00007fe5a106bb90:
Code:
[Entry Point]
[Constants]
# {method} 'noop_avgt_jmhLoop' '(Lorg/openjdk/jmh/runner/InfraControl;Lorg/openjdk/jmh/results/RawResults;Lpsy/lob/saw/generated/BaselineBenchmarks_noop$BaselineBenchmarks_1_jmh;Lpsy/lob/saw/generate
d/BaselineBenchmarks_noop$Blackhole_1_jmh;)V' in 'psy/lob/saw/generated/BaselineBenchmarks_noop'
# this: rsi:rsi = 'psy/lob/saw/generated/BaselineBenchmarks_noop'
# parm0: rdx:rdx = 'org/openjdk/jmh/runner/InfraControl'
# parm1: rcx:rcx = 'org/openjdk/jmh/results/RawResults'
# parm2: r8:r8 = 'psy/lob/saw/generated/BaselineBenchmarks_noop$BaselineBenchmarks_1_jmh'
# parm3: r9:r9 = 'psy/lob/saw/generated/BaselineBenchmarks_noop$Blackhole_1_jmh'
# [sp+0x20] (sp of caller)
0x00007fe5a106bce0: cmp rax,QWORD PTR [rsi+0x8]
0x00007fe5a106bce4: jne 0x00007fe5a1037960 ; {runtime_call}
0x00007fe5a106bcea: xchg ax,ax ; [NW] NOP
0x00007fe5a106bcec: nop DWORD PTR [rax+0x0] ; [NW] NOP, Align the function body
[Verified Entry Point]
0x00007fe5a106bcf0: mov DWORD PTR [rsp-0x14000],eax
0x00007fe5a106bcf7: push rbp
0x00007fe5a106bcf8: sub rsp,0x10 ;*synchronization entry
; - psy.lob.saw.generated.BaselineBenchmarks_noop::noop_avgt_jmhLoop@-1 (line 156)
0x00007fe5a106bcfc: mov r13,rdx ; [NW] control ref is now in R13
0x00007fe5a106bcff: mov rbp,r8 ; [NW] benchmark ref is now in RBP
0x00007fe5a106bd02: mov rbx,rcx ; [NW] result is now in RBX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment