Runtime support for PR gcj/2:
* prims.cc (_Jv_ThrowNullPointerException): New function. * include/jvm.h (_Jv_ThrowNullPointerException): Declare. From-SVN: r33492
This commit is contained in:
parent
739fb04929
commit
40f4ae3280
@ -1,3 +1,9 @@
|
|||||||
|
2000-04-05 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
Runtime support for PR gcj/2:
|
||||||
|
* prims.cc (_Jv_ThrowNullPointerException): New function.
|
||||||
|
* include/jvm.h (_Jv_ThrowNullPointerException): Declare.
|
||||||
|
|
||||||
2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
|
2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
|
||||||
|
|
||||||
* prims.cc (_Jv_NewObjectArray): Fix typo.
|
* prims.cc (_Jv_NewObjectArray): Fix typo.
|
||||||
|
@ -186,6 +186,7 @@ _Jv_GetArrayElementFromElementType (jobject array,
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index);
|
extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index);
|
||||||
|
extern "C" void _Jv_ThrowNullPointerException (void);
|
||||||
extern "C" jobject _Jv_NewArray (jint type, jint size)
|
extern "C" jobject _Jv_NewArray (jint type, jint size)
|
||||||
__attribute__((__malloc__));
|
__attribute__((__malloc__));
|
||||||
extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...)
|
extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...)
|
||||||
|
@ -303,6 +303,12 @@ _Jv_ThrowBadArrayIndex(jint bad_index)
|
|||||||
(java::lang::String::valueOf(bad_index)));
|
(java::lang::String::valueOf(bad_index)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_Jv_ThrowNullPointerException ()
|
||||||
|
{
|
||||||
|
throw new java::lang::NullPointerException ();
|
||||||
|
}
|
||||||
|
|
||||||
// Allocate some unscanned memory and throw an exception if no memory.
|
// Allocate some unscanned memory and throw an exception if no memory.
|
||||||
void *
|
void *
|
||||||
_Jv_AllocBytesChecked (jsize size)
|
_Jv_AllocBytesChecked (jsize size)
|
||||||
|
Loading…
Reference in New Issue
Block a user