public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gcjx] Patch: FYI: document two functions
@ 2005-12-19 20:11 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2005-12-19 20:11 UTC (permalink / raw)
  To: Java Patch List

I'm checking this in on the gcjx branch.

This documents a couple of bytecode helper methods.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* bytecode/byteutil.hh (zero_if_opcode): Commented.
	(invert_if_opcode): Likewise.

Index: bytecode/byteutil.hh
===================================================================
--- bytecode/byteutil.hh	(revision 107604)
+++ bytecode/byteutil.hh	(working copy)
@@ -22,12 +22,17 @@
 #ifndef GCJX_BYTECODE_BYTEUTIL_HH
 #define GCJX_BYTECODE_BYTEUTIL_HH
 
+/// For a given integer comparison opcode, this will return the
+/// corresponding opcode that compares against zero.  For instance,
+/// for op_if_icmpge, this will return op_ifge.
 inline java_opcode
 zero_if_opcode (java_opcode base)
 {
   return java_opcode (op_ifeq + base - op_if_icmpeq);
 }
 
+/// Invert a comparison opcode.  For instance, given op_if_cmpge, this
+/// will return op_if_cmplt.
 inline java_opcode
 invert_if_opcode (java_opcode base)
 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-19 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-19 20:11 [gcjx] Patch: FYI: document two functions Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).