Skip to content

Commit

Permalink
Updated an error message and deleted some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gzachos committed Jan 31, 2021
1 parent 8616be9 commit a65d48f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mars/tools/StackVisualizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,8 @@ else if (isJumpRegInstruction(instrName)) {
try {
Integer rasTopAddress = ras.remove(ras.size()-1);
if (rasTopAddress.compareTo(jalStatementAddress) != 0) {
System.err.println("Mismatching return address: " + rasTopAddress + " - " + jalStatementAddress +
" (ras vs jal)");
System.err.println("Mismatching return address: " + formatAddress(rasTopAddress) + " vs " + formatAddress(jalStatementAddress) +
" (Expected/jal vs Actual/jr)");
}
} catch (IndexOutOfBoundsException iobe) {
/* Exception is thrown whenever:
Expand Down Expand Up @@ -803,12 +803,6 @@ private void registerNewSubroutineCall(ProgramStatement stmnt, String targetLabe
ras.add(stmnt.getAddress());
Integer count = activeFunctionCallStats.addCall(targetLabel);
frameNameToBeCreated = targetLabel + " (" + count + ")";
// System.out.println("Subroutine call from: " + stmnt.getAddress() + " to " + frameNameToBeCreated);
// System.out.print("{");
// for (int addr : ras) {
// System.out.print(formatAddress(addr) + ", ");
// }
// System.out.println("}");
}


Expand Down

0 comments on commit a65d48f

Please sign in to comment.