Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1x/c1x_VMEntries.cpp @ 1461:944071972cd9
Small fix.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Sat, 13 Nov 2010 19:58:27 +0100 |
parents | 9b22e3e5df8e |
children | 7bc14f75a077 |
comparison
equal
deleted
inserted
replaced
1460:1ffaf7819f91 | 1461:944071972cd9 |
---|---|
254 constantPoolOop cp = VmIds::get<constantPoolOop>(vmId); | 254 constantPoolOop cp = VmIds::get<constantPoolOop>(vmId); |
255 | 255 |
256 ciInstanceKlass* loading_klass = (ciInstanceKlass *) CURRENT_ENV->get_object(cp->pool_holder()); | 256 ciInstanceKlass* loading_klass = (ciInstanceKlass *) CURRENT_ENV->get_object(cp->pool_holder()); |
257 ciField *field = CURRENT_ENV->get_field_by_index(loading_klass, index); | 257 ciField *field = CURRENT_ENV->get_field_by_index(loading_klass, index); |
258 Bytecodes::Code code = (Bytecodes::Code)(((int) byteCode) & 0xFF); | 258 Bytecodes::Code code = (Bytecodes::Code)(((int) byteCode) & 0xFF); |
259 return JNIHandles::make_local(THREAD, C1XCompiler::get_RiField(field, cp->pool_holder(), code, THREAD)); | 259 return JNIHandles::make_local(THREAD, C1XCompiler::get_RiField(field, loading_klass, cp->pool_holder(), code, THREAD)); |
260 } | 260 } |
261 | 261 |
262 // public RiConstantPool RiType_constantPool(long vmId); | 262 // public RiConstantPool RiType_constantPool(long vmId); |
263 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1constantPool(JNIEnv *, jobject, jlong vmId) { | 263 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1constantPool(JNIEnv *, jobject, jlong vmId) { |
264 VM_ENTRY_MARK; | 264 VM_ENTRY_MARK; |