[Nice-commit] Nice/src/gnu/bytecode CodeAttr.java,1.14,1.15
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-03-24 23:40:12
|
Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1:/tmp/cvs-serv31803/F:/nice/src/gnu/bytecode
Modified Files:
CodeAttr.java
Log Message:
ReferenceOp generates efficient code when comparing with null.
Index: CodeAttr.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/CodeAttr.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CodeAttr.java 20 Mar 2003 19:40:03 -0000 1.14
--- CodeAttr.java 24 Mar 2003 23:40:07 -0000 1.15
***************
*** 1217,1220 ****
--- 1217,1226 ----
{ emitGotoIfCompare1(label, 158); }
+ public final void emitGotoIfNull(Label label)
+ { emitGotoIfCompare1(label, 198); } //ifnull
+ public final void emitGotoIfNotNull(Label label)
+ { emitGotoIfCompare1(label, 199); } //ifnonnull
+
+
public final void emitGotoIfCompare2 (Label label, int logop)
{
|