Skip to content

Instantly share code, notes, and snippets.

@EgorBot
Created August 13, 2024 13:41
Show Gist options
  • Save EgorBot/cdeb468c2d343336eba70bcb91aa7a50 to your computer and use it in GitHub Desktop.
Save EgorBot/cdeb468c2d343336eba70bcb91aa7a50 to your computer and use it in GitHub Desktop.
base_asm_3cc49e97.asm
Samples: 254K of event 'cpu-clock', 49999 Hz, Event count (approx.): 5099460000, [percent: local period]
JIT_WriteBarrier() /home/egorbot/core_root_base/libcoreclr.so
Percent
Disassembly of section .text:
00000000003352f4 <GetCLRRuntimeHost@@V1.0+0x277f08>:
stlr x15, [x14]
0.01 ldr x12, GetCLRRuntimeHost@@V1.0+0x277fa4
0.00 ↓ cbz x12, 20
add x12, x12, x14, lsr #12
ldrb w17, [x12]
↓ cbnz x17, 20
mov w17, #0xff // #255
strb w17, [x12]
6.46 20: ldr x12, GetCLRRuntimeHost@@V1.0+0x277fac
0.00 ↓ cbz x12, 38
11.55 cmp x15, x12
ldr x12, GetCLRRuntimeHost@@V1.0+0x277fb4
0.00 ccmp x15, x12, #0x2, cs // cs = hs, nlast
↓ b.cs 70
11.67 38: ldr x12, GetCLRRuntimeHost@@V1.0+0x277f94
0.00 add x15, x12, x14, lsr #11
ldrb w12, [x15]
46.69 cmp x12, #0xff
↓ b.eq 70
mov x12, #0xff // #255
strb w12, [x15]
ldr x12, GetCLRRuntimeHost@@V1.0+0x277f9c
add x15, x12, x14, lsr #21
ldrb w12, [x15]
cmp x12, #0xff
↓ b.eq 70
mov x12, #0xff // #255
strb w12, [x15]
23.63 70: add x14, x14, #0x8
← ret
Samples: 254K of event 'cpu-clock', 49999 Hz, Event count (approx.): 5099460000, [percent: local period]
instance void [benchapp] Bench::CheckedWB_InHeap()[OptimizedTier1OSR]() /tmp/jitted-36258-7142.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Bench::CheckedWB_InHeap()[OptimizedTier1OSR]>:
instance void [benchapp] Bench::CheckedWB_InHeap()[OptimizedTier1OSR]():
stp x29, x30, [sp, #-48]!
stp x19, x20, [sp, #16]
stp x21, x22, [sp, #32]
mov x29, sp
ldp x21, x19, [x29, #80]
ldr x20, [x29, #72]
mov x22, #0xc200 // #49664
movk x22, #0xbeb, lsl #16
cmp x20, x22
↓ b.ge 58
ldrsb wzr, [x19]
24.99 2c: add x1, x19, #0x8
mov x0, x19
mov x2, x21
mov x3, #0xc8b8 // #51384
movk x3, #0xc1bf, lsl #16
movk x3, #0xe14b, lsl #32
ldr x3, [x3]
75.01 → blr x3
0.01 add x20, x20, #0x1
cmp x20, x22
↑ b.lt 2c
58: ldp x21, x22, [sp, #32]
ldp x19, x20, [sp, #16]
ldp x29, x30, [sp], #48
add sp, sp, #0x30
← ret
Samples: 254K of event 'cpu-clock', 49999 Hz, Event count (approx.): 5099460000, [percent: local period]
JIT_CheckedWriteBarrier() /home/egorbot/core_root_base/libcoreclr.so
Percent
Disassembly of section .text:
00000000003352d0 <GetCLRRuntimeHost@@V1.0+0x277ee4>:
29.03 ldr x12, GetCLRRuntimeHost@@V1.0+0x277fbc
0.05 cmp x14, x12
ldr x12, GetCLRRuntimeHost@@V1.0+0x277fc4
0.01 ccmp x14, x12, #0x2, cs // cs = hs, nlast
↓ b.cs 18
70.91 → b JIT_WriteBarrier
18: str x15, [x14], #8
← ret
Samples: 254K of event 'cpu-clock', 49999 Hz, Event count (approx.): 5099460000, [percent: local period]
instance void [benchapp] Bench::CheckedWriteBarrier(valuetype MyStruct&,string)[OptimizedTier1]() /tmp/jitted-36258-7145.so
Percent
Disassembly of section .text:
0000000000000080 <instance void [benchapp] Bench::CheckedWriteBarrier(valuetype MyStruct&,string)[OptimizedTier1]>:
instance void [benchapp] Bench::CheckedWriteBarrier(valuetype MyStruct&,string)[OptimizedTier1]():
99.98 stp x29, x30, [sp, #-16]!
mov x29, sp
mov x14, x1
mov x15, x2
bl ffffffffff60a8f8 <instance void [benchapp] Bench::CheckedWriteBarrier(valuetype MyStruct&,string)[OptimizedTier1]+0xffffffffff60a878>
ldp x29, x30, [sp], #16
0.02 ← ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment