Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 4444:7d9469b37f1f
bugfixes
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Mon, 23 Jan 2012 18:56:52 -0800 |
parents | 6fb167f79df6 |
children | 48756b901156 |
comparison
equal
deleted
inserted
replaced
4443:6fb167f79df6 | 4444:7d9469b37f1f |
---|---|
190 methodDataHandle method_data = getMethodFromHotSpotMethod(hotspot_method)->method_data(); | 190 methodDataHandle method_data = getMethodFromHotSpotMethod(hotspot_method)->method_data(); |
191 if(method_data.is_null()) { | 191 if(method_data.is_null()) { |
192 return NULL; | 192 return NULL; |
193 } else { | 193 } else { |
194 Handle graalMethodData = GraalCompiler::createHotSpotMethodData(method_data, THREAD); | 194 Handle graalMethodData = GraalCompiler::createHotSpotMethodData(method_data, THREAD); |
195 tty->print_cr("--------"); | |
196 method_data->print_on(tty); | |
197 tty->print_cr("--------"); | |
195 return JNIHandles::make_local(THREAD, graalMethodData()); | 198 return JNIHandles::make_local(THREAD, graalMethodData()); |
196 } | 199 } |
197 } | 200 } |
198 | 201 |
199 // ------------------------------------------------------------------ | 202 // ------------------------------------------------------------------ |
765 set_long(env, config, "fastMonitorEnterStub", VmIds::addStub(Runtime1::entry_for(Runtime1::graal_monitorenter_id))); | 768 set_long(env, config, "fastMonitorEnterStub", VmIds::addStub(Runtime1::entry_for(Runtime1::graal_monitorenter_id))); |
766 set_long(env, config, "fastMonitorExitStub", VmIds::addStub(Runtime1::entry_for(Runtime1::graal_monitorexit_id))); | 769 set_long(env, config, "fastMonitorExitStub", VmIds::addStub(Runtime1::entry_for(Runtime1::graal_monitorexit_id))); |
767 set_long(env, config, "safepointPollingAddress", (jlong)(os::get_polling_page() + (SafepointPollOffset % os::vm_page_size()))); | 770 set_long(env, config, "safepointPollingAddress", (jlong)(os::get_polling_page() + (SafepointPollOffset % os::vm_page_size()))); |
768 set_int(env, config, "runtimeCallStackSize", (jint)frame::arg_reg_save_area_bytes); | 771 set_int(env, config, "runtimeCallStackSize", (jint)frame::arg_reg_save_area_bytes); |
769 set_int(env, config, "klassModifierFlagsOffset", Klass::modifier_flags_offset_in_bytes() + sizeof(oopDesc)); | 772 set_int(env, config, "klassModifierFlagsOffset", Klass::modifier_flags_offset_in_bytes() + sizeof(oopDesc)); |
770 set_int(env, config, "klassOopGraalMirrorOffset", klassOopDesc::klass_part_offset_in_bytes() + Klass::java_mirror_offset_in_bytes()); | 773 set_int(env, config, "graalMirrorKlassOffset", klassOopDesc::klass_part_offset_in_bytes() + Klass::graal_mirror_offset_in_bytes()); |
771 set_int(env, config, "klassOopOffset", java_lang_Class::klass_offset_in_bytes()); | 774 set_int(env, config, "klassOopOffset", java_lang_Class::klass_offset_in_bytes()); |
772 | 775 |
773 set_boolean(env, config, "isPollingPageFar", Assembler::is_polling_page_far()); | 776 set_boolean(env, config, "isPollingPageFar", Assembler::is_polling_page_far()); |
774 | 777 |
775 set_int(env, config, "nmethodEntryOffset", nmethod::verified_entry_point_offset()); | 778 set_int(env, config, "nmethodEntryOffset", nmethod::verified_entry_point_offset()); |