Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15DB2D90A for ; Tue, 2 Oct 2012 09:37:29 +0000 (UTC) Received: (qmail 64947 invoked by uid 500); 2 Oct 2012 09:37:28 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 64894 invoked by uid 500); 2 Oct 2012 09:37:28 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 64885 invoked by uid 99); 2 Oct 2012 09:37:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 09:37:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 09:37:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6F367238899C for ; Tue, 2 Oct 2012 09:36:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1392814 - /commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java Date: Tue, 02 Oct 2012 09:36:44 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121002093644.6F367238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: luc Date: Tue Oct 2 09:36:43 2012 New Revision: 1392814 URL: http://svn.apache.org/viewvc?rev=1392814&view=rev Log: Removed getTmp as no transformations need temporary variables anymore. Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java?rev=1392814&r1=1392813&r2=1392814&view=diff ============================================================================== --- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java (original) +++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/MethodDifferentiator.java Tue Oct 2 09:36:43 2012 @@ -616,36 +616,6 @@ public class MethodDifferentiator { } } - /** Get index of a size 2 temporary variable. - *

Temporary variables can be used for very short duration - * storage of size 2 values (i.e one double, or one long or two - * integers). These variables are reused in many replacement - * instructions sequences, so their content may be overridden - * at any time: they should be considered to have a scope - * limited to one replacement sequence only. This means that - * one should not store a value in a variable in one - * replacement sequence and retrieve it later in another - * replacement sequence as it may have been overridden in - * between.

- *

At most 5 temporary variables may be used.

- * @param number number of the temporary variable (must be - * between 1 and the maximal number of available temporary - * variables) - * @return index of the variable within the local variables - * array - * @exception DifferentiationException if the number of the - * temporary variable lies outside of the allowed range - */ - public int getTmp(final int number) throws DifferentiationException { - if ((number < 0) || (number > MAX_TEMP)) { - throw new DifferentiationException(NablaMessages.NUMBER_OF_TEMPORARY_VARIABLES_OUT_OF_RANGE, - number, 1, MAX_TEMP); - } - final int index = usedLocals.length - 2 * number; - useLocal(index, 2); - return index; - } - /** Shifted the index of a variable instruction. * @param insn variable instruction */