Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1:/tmp/cvs-serv7832/src/gnu/bytecode
Modified Files:
Field.java
Log Message:
'true' and 'false' are now keywords, and better code is generated for them.
The termination properties of loops with literal boolean values are now
recognized, as in Java.
Note to Nice hackers: you need the latest development version to bootstrap
the compiler because of this change.
Index: Field.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/Field.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Field.java 24 Jan 2003 12:23:09 -0000 1.3
--- Field.java 4 Jun 2003 21:37:43 -0000 1.4
***************
*** 133,138 ****
switch (sig1)
{
- case 'C':
case 'Z':
case 'B':
case 'S':
--- 133,139 ----
switch (sig1)
{
case 'Z':
+ entry = cpool.addInt(((Boolean) value).booleanValue() ? 1 : 0); break;
+ case 'C':
case 'B':
case 'S':
|