Files
compiler-explorer/test/android/parse-data/Square.smali
kevinjeon-g fd6a07d233 Add source<>disassembly highlighting for dex2oat (#7248)
oatdump, the dex2oat dump tool, doesn't output any information that can
be used to associate disassembly with source lines. However, dex2oat's
output optimization CFG (classes.cfg) does contain a final disassembly
stage that retains dex_pc.

Lines of disassembly from oatdump can be associated with lines of
disassembly in classes.cfg, and through the dex_pcs there, be mapped
back to the D8 .smali output, which does contain source line
information.
2025-01-08 11:17:17 -06:00

28 lines
370 B
Smali

.class LSquare;
.super Ljava/lang/Object;
.source "example.java"
# direct methods
.method constructor <init>()V
.registers 1
#@0
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
#@3
return-void
.end method
.method static square(I)I
.registers 1
#@0
.line 14
mul-int/2addr p0, p0
#@1
return p0
.end method