harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r359101 - /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/interp.c
Date Mon, 26 Dec 2005 21:33:32 GMT
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;



Mime
View raw message