harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r356813 - in /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc: definitions.h instance.c resolve2.c
Date Wed, 14 Dec 2005 17:23:26 GMT
Author: archie
Date: Wed Dec 14 09:23:21 2005
New Revision: 356813

URL: http://svn.apache.org/viewcvs?rev=356813&view=rev
Log:
Rename macro: _JC_INSTANCEOF_HASH() -> _JC_INSTANCEOF_BUCKET().

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/definitions.h
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/instance.c
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/resolve2.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/definitions.h
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/definitions.h?rev=356813&r1=356812&r2=356813&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/definitions.h (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/definitions.h Wed
Dec 14 09:23:21 2005
@@ -345,7 +345,7 @@
 	(((char *)(ptr) - (char *)(heap)->pages) / _JC_PAGE_SIZE)
 
 /* How to compute the instanceof hash table hash bucket */
-#define _JC_INSTANCEOF_HASH(t)						\
+#define _JC_INSTANCEOF_BUCKET(t)					\
 	((int)(((_jc_word)(t)) / 30031) & (_JC_INSTANCEOF_HASHSIZE - 1))
 
 /*

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/instance.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/instance.c?rev=356813&r1=356812&r2=356813&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/instance.c (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/instance.c Wed Dec
14 09:23:21 2005
@@ -82,7 +82,7 @@
 
 	/* Search instanceof hash table */
 	if ((entry = from->u.nonarray.instanceof_hash_table[
-	    _JC_INSTANCEOF_HASH(to)]) == NULL)
+	    _JC_INSTANCEOF_BUCKET(to)]) == NULL)
 		return 0;
 	while (*entry != NULL) {
 		if (*entry++ == to)

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/resolve2.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/resolve2.c?rev=356813&r1=356812&r2=356813&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/resolve2.c (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/libjc/resolve2.c Wed Dec
14 09:23:21 2005
@@ -1299,7 +1299,7 @@
 	memset(&heads, ~0, sizeof(heads));
 	for (i = 0; i < num_types; i++) {
 		_jc_type *const type = types[i];
-		const int bucket = _JC_INSTANCEOF_HASH(type);
+		const int bucket = _JC_INSTANCEOF_BUCKET(type);
 
 		/* Keep track of the number of nonempty buckets */
 		if (heads[bucket] == -1)



Mime
View raw message