1.1 --- a/src/Opcodes.cpp Wed Jul 25 01:30:33 2012 -0700
1.2 +++ b/src/Opcodes.cpp Wed Jul 25 01:32:49 2012 -0700
1.3 @@ -75,10 +75,12 @@
1.4 // Only specific opcodes may have safepoints. Asking for a safepoint at
1.5 // any other position indicates a failure to mark that position as a
1.6 // safepoint, which is a bug.
1.7 +#ifndef NDEBUG
1.8 Opcode op = Opcode(*(start() + pcOffset));
1.9 assert(op == OP_CALL || op == OP_NEWARRAY || op == OP_VARREF_LIFO ||
1.10 op == OP_ARGREF_LIFO || op == OP_SLOTREF_LIFO || op == OP_ARRAYREF_LIFO ||
1.11 op == OP_ARRAYCOPY);
1.12 +#endif
1.13
1.14 if (!safepoints_)
1.15 return NULL;