mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 03:20:45 +00:00
AS3: Automatic Calculating Body parameters (Experimental)
This commit is contained in:
@@ -2319,12 +2319,22 @@ public HashMap<Integer,String> getLocalRegNamesFromDebug(ABC abc){
|
||||
return true;
|
||||
}
|
||||
|
||||
public CodeStats getStats(ABC abc)
|
||||
public CodeStats getStats(ABC abc,MethodBody body)
|
||||
{
|
||||
CodeStats stats=new CodeStats(this);
|
||||
if(!walkCode(stats,0,0,0,abc)){
|
||||
return null;
|
||||
}
|
||||
for(ABCException ex:body.exceptions){
|
||||
try {
|
||||
int exStart=adr2pos(ex.start);
|
||||
if(!walkCode(stats, adr2pos(ex.target), stats.instructionStats[exStart].stackpos, stats.instructionStats[exStart].scopepos, abc)){
|
||||
return null;
|
||||
}
|
||||
} catch (ConvertException ex1) {
|
||||
|
||||
}
|
||||
}
|
||||
return stats;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user