google / lldb-eval

lldb-eval is a library for evaluating expressions in the debugger context
Apache License 2.0
72 stars 17 forks source link

Implement `static_cast` #170

Closed tonkosi closed 2 years ago

tonkosi commented 3 years ago

Explicitly handles static_cast with two new methods: base-to-derived and derived-to-base conversions.

github-actions[bot] commented 3 years ago

Benchmark comparison for a387f095 (base) vs a84d176f (PR)

Benchmark                             Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------
BM/AddTwoNumbers                   +0.0118         +0.0118        117945        119336        117924        119317
BM/ArrayDereference                +0.0356         +0.0358        116513        120660        116422        120591
BM/ArraySubscript                  +0.0090         +0.0092        158132        159562        158102        159553
BM/TypeCasting                     +0.0153         +0.0149        416364        422718        416255        422458
BM/ParseInteger                    +0.0004         +0.0001        177455        177528        177438        177453
github-actions[bot] commented 2 years ago

Benchmark comparison for a94b108c (base) vs 33552f25 (PR)

Benchmark                             Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------
BM/AddTwoNumbers                   +0.0388         +0.0393        164299        170666        164142        170588
BM/ArrayDereference                +0.0330         +0.0336        168443        173998        168322        173978
BM/ArraySubscript                  -0.0108         -0.0105        216080        213757        215986        213709
BM/TypeCasting                     -0.0066         -0.0069        520581        517144        520505        516926
BM/ParseInteger                    -0.0155         -0.0155        230828        227259        230806        227234