From harmony-commits-return-518-apmail-incubator-harmony-commits-archive=incubator.apache.org@incubator.apache.org Mon Dec 26 21:33:55 2005 Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 43264 invoked from network); 26 Dec 2005 21:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Dec 2005 21:33:54 -0000 Received: (qmail 45840 invoked by uid 500); 26 Dec 2005 21:33:54 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 45767 invoked by uid 500); 26 Dec 2005 21:33:54 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 45756 invoked by uid 99); 26 Dec 2005 21:33:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2005 13:33:53 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 26 Dec 2005 13:33:53 -0800 Received: (qmail 43193 invoked by uid 65534); 26 Dec 2005 21:33:33 -0000 Message-ID: <20051226213333.43192.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r359101 - /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c Date: Mon, 26 Dec 2005 21:33:32 -0000 To: harmony-commits@incubator.apache.org From: archie@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: archie Date: Mon Dec 26 13:33:29 2005 New Revision: 359101 URL: http://svn.apache.org/viewcvs?rev=359101&view=rev Log: Minor optimization for MULTIANEWARRAY when sizeof(_jc_word) = sizeof(jint). Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c?rev=359101&r1=359100&r2=359101&view=diff ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c (original) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c Mon Dec 26 13:33:29 2005 @@ -1387,8 +1387,10 @@ POP(info->dims); sizes = &STACKI(0); /* overwrite popped stack */ - for (i = 0; i < info->dims; i++) - sizes[i] = STACKI(i); + if (sizeof(_jc_word) != sizeof(jint)) { + for (i = 0; i < info->dims; i++) + sizes[i] = STACKI(i); + } if ((array = _jc_new_multiarray(env, info->type, info->dims, sizes)) == NULL) goto exception;