mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-05-16 13:43:10 -04:00
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.
28 lines
370 B
Smali
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
|