Skip to content
Browse files

Remove interpreter debug code (exposes Kilim bug it appears)

  • Loading branch information...
1 parent 337f172 commit 3b6f4a7811e94fdeda1f8336429c47afcc81364a @krestenkrab krestenkrab committed Nov 3, 2010
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/main/java/erjang/beam/interpreter/Interpreter.template
View
5 src/main/java/erjang/beam/interpreter/Interpreter.template
@@ -234,16 +234,11 @@ public class Interpreter extends AbstractInterpreter {
EBitStringBuilder bit_string_builder = null;
EObject prefetched1 = null, prefetched2 = null;
- int last_pc = pc;
while (true) try {
while (true) {
// System.err.print('¤');
- if (pc+1 >= code.length) {
- throw new Error("Bad jump to: "+module_name()+"@"+pc+"; from_pc="+last_pc+"; op="+((int)code[last_pc]));
- }
final int opcode = code[pc++];
- last_pc = pc;
//System.err.print("STACK| "); for (int i=0; i<=sp; i++) {System.err.print(" "+i+":"+stack[i]);} System.err.println();
// System.err.println("INTP|"+proc.self_handle()+" (pc="+(pc-1)+"; sp="+sp+")"+opcode+" "+reg[0]);
switch (opcode) {

0 comments on commit 3b6f4a7

Please sign in to comment.
Something went wrong with that request. Please try again.