Skip to content

Instantly share code, notes, and snippets.

@EgorBo
Created July 20, 2021 21:42
Show Gist options
  • Save EgorBo/1d66953706e093a6e5cd284e2ba41105 to your computer and use it in GitHub Desktop.
Save EgorBo/1d66953706e093a6e5cd284e2ba41105 to your computer and use it in GitHub Desktop.
old.asm
; Assembly listing for method Tests:Test(ClassAFactoryFactory):long
; Emitting BLENDED_CODE for X64 CPU with SSE2 - Windows
; ReadyToRun compilation
; optimized code
; rsp based frame
; partially interruptible
; No PGO data
; Final local variable assignments
;
; V00 arg0 [V00,T00] ( 4, 3.50) ref -> rcx class-hnd single-def
; V01 loc0 [V01,T01] ( 3, 1.50) ref -> rax class-hnd single-def
; V02 loc1 [V02,T02] ( 3, 1.50) ref -> rax class-hnd single-def
; V03 OutArgs [V03 ] ( 1, 1 ) lclBlk (32) [rsp+00H] "OutgoingArgSpace"
;
; Lcl frame size = 40
G_M26221_IG01: ;; offset=0000H
4883EC28 sub rsp, 40
;; bbWeight=1 PerfScore 0.25
G_M26221_IG02: ;; offset=0004H
4885C9 test rcx, rcx
743D je SHORT G_M26221_IG05
;; bbWeight=1 PerfScore 1.25
G_M26221_IG03: ;; offset=0009H
4C8D1D00000000 lea r11, [(reloc 0x4000000000422978)]
FF1500000000 call [ClassAFactoryFactory:GetClassAFactory():ClassAFactory:this]
4885C0 test rax, rax
742B je SHORT G_M26221_IG05
488BC8 mov rcx, rax
4C8D1D00000000 lea r11, [(reloc 0x4000000000422988)]
FF1500000000 call [ClassAFactory:GetA():ClassA:this]
4885C0 test rax, rax
7416 je SHORT G_M26221_IG05
488BC8 mov rcx, rax
4C8D1D00000000 lea r11, [(reloc 0x4000000000422998)]
FF1500000000 call [ClassA:GetValue():long:this]
90 nop
;; bbWeight=0.50 PerfScore 6.88
G_M26221_IG04: ;; offset=0041H
4883C428 add rsp, 40
C3 ret
;; bbWeight=0.50 PerfScore 0.62
G_M26221_IG05: ;; offset=0046H
33C0 xor eax, eax
;; bbWeight=0.50 PerfScore 0.12
G_M26221_IG06: ;; offset=0048H
4883C428 add rsp, 40
C3 ret
;; bbWeight=0.50 PerfScore 0.62
; Total bytes of code 77, prolog size 4, PerfScore 17.45, instruction count 21, allocated bytes for code 77 (MethodHash=03949992) for method Tests:Test(ClassAFactoryFactory):long
; ============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment