They were not used anywhere.
* src/vm/class.hpp: Removed parseddescsize, parseddescs.
* src/vm/descriptor.cpp: Removed descriptor_pool_get_parsed_descriptors.
* src/vm/descriptor.hpp: Likewise.
* src/vm/loader.cpp: Removed use of removed fields/methods.
s4 classrefcount; /* number of symbolic class references */
constant_classref *classrefs; /* table of symbolic class references */
extra_classref *extclassrefs; /* additional classrefs */
- s4 parseddescsize; /* size of the parsed descriptors block */
- u1 *parseddescs; /* parsed descriptors */
classinfo *super; /* super class */
classinfo *sub; /* sub class pointer */
* indent-tabs-mode: t
* c-basic-offset: 4
* tab-width: 4
- * vim:noexpandtab:sw=4:ts=4:
* End:
+ * vim:noexpandtab:sw=4:ts=4:
*/
/* src/vm/descriptor.c - checking and parsing of field / method descriptors
- Copyright (C) 1996-2005, 2006, 2007, 2008
+ Copyright (C) 1996-2011
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
}
-/* descriptor_pool_get_parsed_descriptors **************************************
-
- Return a pointer to the block of parsed descriptors
-
- IN:
- pool.............the descriptor_pool
-
- OUT:
- *size............if size is non-NULL, this is set to the size of the
- parsed descriptor block (in u1)
-
- RETURN VALUE:
- a pointer to the block of parsed descriptors
-
- NOTE:
- descriptor_pool_alloc_parsed_descriptors must be called (once)
- before this function is used.
-
-*******************************************************************************/
-
-void *
-descriptor_pool_get_parsed_descriptors(descriptor_pool *pool, s4 *size)
-{
- assert(pool);
- assert((!pool->fieldcount && !pool->methodcount) || pool->descriptors);
-
- if (size)
- *size = pool->descriptorsize;
-
- return pool->descriptors;
-}
-
-
/* descriptor_pool_get_sizes ***************************************************
Get the sizes of the class reference table and the parsed descriptors
/* src/vm/descriptor.h - checking and parsing of field / method descriptors
- Copyright (C) 1996-2005, 2006, 2007, 2008
+ Copyright (C) 1996-2011
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
/* 5. call descriptor_pool_alloc_parsed_descriptors */
/* 6. for each field descriptor call descriptor_pool_parse_field_descriptor */
/* for each method descriptor call descriptor_pool_parse_method_descriptor */
-/* 7. call descriptor_pool_get_parsed_descriptors */
/* */
/* IMPORTANT: The descriptor_pool functions use DNEW and DMNEW for allocating */
/* memory which can be thrown away when the steps above have been */
bool descriptor_params_from_paramtypes(methoddesc *md, s4 mflags);
-void *descriptor_pool_get_parsed_descriptors(descriptor_pool *pool, s4 *size);
void descriptor_pool_get_sizes(descriptor_pool *pool, u4 *classrefsize,
u4 *descsize);
/* allocate space for the parsed descriptors */
descriptor_pool_alloc_parsed_descriptors(descpool);
- c->parseddescs = (u1*) descriptor_pool_get_parsed_descriptors(descpool, &(c->parseddescsize));
#if defined(ENABLE_STATISTICS)
if (opt_stat) {
/* array classes are not loaded from class files */
c->state |= CLASS_LOADED;
- c->parseddescs = (u1 *) clonedesc;
- c->parseddescsize = sizeof(methodinfo);
c->classrefs = classrefs;
c->classrefcount = 1;