[vmkit-commits] [vmkit] r144207 - /vmkit/trunk/lib/J3/ClassLib/Classpath.inc
Will Dietz
wdietz2 at illinois.edu
Wed Nov 9 11:44:40 PST 2011
Author: wdietz2
Date: Wed Nov 9 13:44:40 2011
New Revision: 144207
URL: http://llvm.org/viewvc/llvm-project?rev=144207&view=rev
Log:
'Implement' arrayBaseOffset/arrayIndexScale.
Return '0' for offset, since it's accurate, and return '0' for index scale
indicating that we don't support using index scale for the given array's type.
For now we dont support index scale for anything, but this lets more codes run.
Modified:
vmkit/trunk/lib/J3/ClassLib/Classpath.inc
Modified: vmkit/trunk/lib/J3/ClassLib/Classpath.inc
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/ClassLib/Classpath.inc?rev=144207&r1=144206&r2=144207&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/ClassLib/Classpath.inc (original)
+++ vmkit/trunk/lib/J3/ClassLib/Classpath.inc Wed Nov 9 13:44:40 2011
@@ -475,7 +475,7 @@
JNIEXPORT jlong JNICALL Java_sun_misc_Unsafe_arrayBaseOffset(
JavaObject* unsafe, JavaObject* clazz) {
- UNIMPLEMENTED();
+ // Array starts at beginning of object
return 0;
}
@@ -484,7 +484,9 @@
JNIEnv *env,
#endif
JavaObject* unsafe, JavaObject* clazz) {
- UNIMPLEMENTED();
+ // Return '0' if we don't support indexing this way.
+ // (We might pack fields specially, etc)
+ // TODO: Implement this for the array types we support this way
return 0;
}
More information about the vmkit-commits
mailing list