From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24714 invoked by alias); 19 Dec 2005 20:11:19 -0000 Received: (qmail 24706 invoked by uid 22791); 19 Dec 2005 20:11:18 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Dec 2005 20:11:17 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBJKBGmM014295 for ; Mon, 19 Dec 2005 15:11:16 -0500 Received: from opsy.redhat.com (vpn50-112.rdu.redhat.com [172.16.50.112]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBJKBD118414; Mon, 19 Dec 2005 15:11:14 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 4092C2DC185; Mon, 19 Dec 2005 13:05:25 -0700 (MST) To: Java Patch List Subject: [gcjx] Patch: FYI: document two functions From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Mon, 19 Dec 2005 20:11:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2005-q4/txt/msg00357.txt.bz2 I'm checking this in on the gcjx branch. This documents a couple of bytecode helper methods. Tom Index: ChangeLog from Tom Tromey * 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) {