Skip to content

Commit

Permalink
perf: ugly ROM hack
Browse files Browse the repository at this point in the history
  • Loading branch information
delehef committed Jan 4, 2024
1 parent 10f03ea commit 92e0f33
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,7 @@ public int lineCount() {
}

public int chunkRowSize(RomChunk chunk) {
int s = 32;
for (int pc = 0; pc < chunk.byteCode().size(); pc++) {
final int opCode = 0xff & chunk.byteCode().get(pc);
if (opCode >= 0x60 && opCode <= 0x7f) {
final int pushParam = opCode - 0x60 + 1;
s += pushParam;
pc += pushParam;
} else {
s += 2;
}
}
return s;
return chunk.byteCode().size();
}

private void traceChunk(RomChunk chunk, int cfi, int cfiInfty, Trace trace) {
Expand Down

0 comments on commit 92e0f33

Please sign in to comment.