harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r377244 - /incubator/harmony/enhanced/jchevm/libjc/interp.c
Date Sun, 12 Feb 2006 21:30:14 GMT
Author: archie
Date: Sun Feb 12 13:30:12 2006
New Revision: 377244

URL: http://svn.apache.org/viewcvs?rev=377244&view=rev
Log:
Consolidate ANEWARRAY and NEWARRAY implementations, which are the same.

Modified:
    incubator/harmony/enhanced/jchevm/libjc/interp.c

Modified: incubator/harmony/enhanced/jchevm/libjc/interp.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/jchevm/libjc/interp.c?rev=377244&r1=377243&r2=377244&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/libjc/interp.c (original)
+++ incubator/harmony/enhanced/jchevm/libjc/interp.c Sun Feb 12 13:30:12 2006
@@ -515,6 +515,7 @@
 	PUSHL(LOCALL(3));
 	NEXT();
 TARGET(anewarray)
+TARGET(newarray)
     {
 	_jc_array *array;
 
@@ -1710,18 +1711,6 @@
 	if (_JC_UNLIKELY((obj = _jc_new_object(env, INFO(type))) == NULL))
 		goto exception;
 	PUSHL(obj);
-	NEXT();
-    }
-TARGET(newarray)
-    {
-	_jc_array *array;
-
-	POP(1);
-	stack_frame.pc = pc;
-	if (_JC_UNLIKELY((array = _jc_new_array(env,
-	    INFO(type), STACKI(0))) == NULL))
-		goto exception;
-	PUSHL((_jc_object *)array);
 	NEXT();
     }
 TARGET(nop)



Mime
View raw message