implement JVM_ConstantPoolGetLongAt

This commit is contained in:
Joel Dice 2013-04-09 17:44:21 -06:00
parent 73547db737
commit 83670d1df7

View File

@ -4806,8 +4806,15 @@ EXPORT(JVM_ConstantPoolGetIntAt)(Thread* t, jobject, jobject pool, jint index)
}
extern "C" JNIEXPORT jlong JNICALL
EXPORT(JVM_ConstantPoolGetLongAt)(Thread*, jobject, jobject, jint)
{ abort(); }
EXPORT(JVM_ConstantPoolGetLongAt)(Thread* t, jobject, jobject pool, jint index)
{
ENTER(t, Thread::ActiveState);
uint64_t v;
memcpy(&v, &singletonValue(t, *pool, index - 1), 8);
return v;
}
extern "C" JNIEXPORT jfloat JNICALL
EXPORT(JVM_ConstantPoolGetFloatAt)(Thread*, jobject, jobject, jint)