Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created August 7, 2024 14:00
Show Gist options
  • Save EgorBot/b4b3c377cdd979999a671972a9870bde to your computer and use it in GitHub Desktop.
Save EgorBot/b4b3c377cdd979999a671972a9870bde to your computer and use it in GitHub Desktop.
base_asm_6c561348.asm
Samples: 400K of event 'cpu-clock', 49999 Hz, Event count (approx.): 8014780000, [percent: local period]
JIT_WriteBarrier() /home/egorbot/core_root_base/libcoreclr.so
Percent
Disassembly of section .text:
00000000003565a0 <GetCLRRuntimeHost@@V1.0+0x29d470>:
98.27 mov QWORD PTR [rdi],rsi
0.00 mov rax,rdi
movabs r10,0xf0f0f0f0f0f0f0f0
shr rax,0xc
1.73 xchg ax,ax
0.00 movabs r11,0xf0f0f0f0f0f0f0f0
add rax,r10
cmp BYTE PTR [rax],0x0
↓ jne 2e
mov BYTE PTR [rax],0xff
nop
2e: cmp rsi,r11
↓ jb 70
nop
movabs r10,0xf0f0f0f0f0f0f0f0
cmp rsi,r10
↓ jae 70
nop
movabs rax,0xf0f0f0f0f0f0f0f0
shr rdi,0xb
cmp BYTE PTR [rdi+rax*1],0xff
↓ jne 5c
repz ret
5c: mov BYTE PTR [rdi+rax*1],0xff
xchg ax,ax
shr rdi,0xa
movabs rax,0xf0f0f0f0f0f0f0f0
70: cmp BYTE PTR [rdi+rax*1],0xff
↓ jne 78
repz ret
78: mov BYTE PTR [rdi+rax*1],0xff
← ret
nop
repz ret
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ax,ax
nop
Samples: 400K of event 'cpu-clock', 49999 Hz, Event count (approx.): 8014780000, [percent: local period]
instance void [benchapp] Bench::WB()[OptimizedTier1]() /tmp/jitted-41546-7489.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Bench::WB()[OptimizedTier1]>:
instance void [benchapp] Bench::WB()[OptimizedTier1]():
push rbp
push r15
push rbx
lea rbp,[rsp+0x10]
movabs rdi,0x7cd2263dbf70
→ call instance void [benchapp] Bench::WB()[OptimizedTier1]+0x7d799370
mov rbx,rax
mov r15d,0xbebc200
0.01 21: lea rdi,[rbx+0x8]
mov rsi,rbx
0.00 → call instance void [benchapp] Bench::WB()[OptimizedTier1]+0x7d8fc680
99.99 dec r15
↑ jne 21
pop rbx
pop r15
pop rbp
← ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment