Class.h (isInterface): Move implementation from natClass.cc.
* java/lang/Class.h (isInterface): Move implementation from natClass.cc. Declare inline. (Class): Add default constructor. * java/lang/Object.h: Update comments. * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to initialize superclass, saving a call if super is already initialized. From-SVN: r39091
This commit is contained in:
parent
61a2490705
commit
607adf67a0
4 changed files with 22 additions and 13 deletions
|
@ -16,15 +16,13 @@ details. */
|
|||
#include <gcj/javaprims.h>
|
||||
|
||||
// This class is mainly here as a kludge to get G++ to allocate two
|
||||
// extra entries in the vtable. We will use them to store data. This
|
||||
// allows us to support the new C++ ABI.
|
||||
|
||||
// extra entries in each vtable.
|
||||
struct _JvObjectPrefix
|
||||
{
|
||||
protected:
|
||||
// New ABI Compatibility Dummy, #1 and 2.
|
||||
virtual void nacd_1 (void) {};
|
||||
virtual void nacd_2 (void) {};
|
||||
virtual void nacd_1 (void) {}; // This slot really contains the Class pointer.
|
||||
virtual void nacd_2 (void) {}; // Actually the GC bitmap marking descriptor.
|
||||
};
|
||||
|
||||
class java::lang::Object : public _JvObjectPrefix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue