[Nice-commit] Nice/src/gnu/bytecode CodeAttr.java,1.15,1.16
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-02 21:38:35
|
Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1:/tmp/cvs-serv18668/src/gnu/bytecode
Modified Files:
CodeAttr.java
Log Message:
Added the possibility to emit a nop (not needed normally, but it can be useful
in debugging).
Index: CodeAttr.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/CodeAttr.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** CodeAttr.java 24 Mar 2003 23:40:07 -0000 1.15
--- CodeAttr.java 2 Apr 2003 21:38:17 -0000 1.16
***************
*** 283,286 ****
--- 283,292 ----
}
+ public void emitNop ()
+ {
+ reserve(1);
+ put1 (0); // nop
+ }
+
/** Emit code to duplicate the top element of the stack
and place the copy before the previous element. */
|