Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 8348:79f0ff46290b
removed unused code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 18 Mar 2013 18:03:16 +0100 |
parents | 37977d1dcedc |
children | 8d6ea1915d42 |
comparison
equal
deleted
inserted
replaced
8343:a3c30d467f96 | 8348:79f0ff46290b |
---|---|
823 } | 823 } |
824 } | 824 } |
825 return result; | 825 return result; |
826 C2V_END | 826 C2V_END |
827 | 827 |
828 C2V_VMENTRY(jobject, disassembleNative, (JNIEnv *jniEnv, jobject, jbyteArray code, jlong start_address)) | |
829 ResourceMark rm; | |
830 HandleMark hm; | |
831 | |
832 stringStream(st); | |
833 arrayOop code_oop = (arrayOop) JNIHandles::resolve(code); | |
834 int len = code_oop->length(); | |
835 address begin = (address) code_oop->base(T_BYTE); | |
836 address end = begin + len; | |
837 Disassembler::decode(begin, end, &st); | |
838 | |
839 Handle result = java_lang_String::create_from_platform_dependent_str(st.as_string(), CHECK_NULL); | |
840 return JNIHandles::make_local(result()); | |
841 C2V_END | |
842 | |
843 C2V_VMENTRY(jobject, disassembleNMethod, (JNIEnv *jniEnv, jobject, jlong metaspace_nmethod)) | 828 C2V_VMENTRY(jobject, disassembleNMethod, (JNIEnv *jniEnv, jobject, jlong metaspace_nmethod)) |
844 ResourceMark rm; | 829 ResourceMark rm; |
845 HandleMark hm; | 830 HandleMark hm; |
846 | 831 |
847 nmethod* nm = (nmethod*) (address) metaspace_nmethod; | 832 nmethod* nm = (nmethod*) (address) metaspace_nmethod; |
940 | 925 |
941 oop array = GraalCompiler::instance()->dump_deopted_leaf_graphs(CHECK_NULL); | 926 oop array = GraalCompiler::instance()->dump_deopted_leaf_graphs(CHECK_NULL); |
942 return JNIHandles::make_local(array); | 927 return JNIHandles::make_local(array); |
943 C2V_END | 928 C2V_END |
944 | 929 |
945 C2V_VMENTRY(jobject, decodePC, (JNIEnv *, jobject, jlong pc)) | |
946 stringStream(st); | |
947 CodeBlob* blob = CodeCache::find_blob_unsafe((void*) pc); | |
948 if (blob == NULL) { | |
949 st.print("[unidentified pc]"); | |
950 } else { | |
951 st.print(blob->name()); | |
952 | |
953 nmethod* nm = blob->as_nmethod_or_null(); | |
954 if (nm != NULL && nm->method() != NULL) { | |
955 st.print(" %s.", nm->method()->method_holder()->external_name()); | |
956 nm->method()->name()->print_symbol_on(&st); | |
957 st.print(" @ %d", pc - (jlong) nm->entry_point()); | |
958 } | |
959 } | |
960 Handle result = java_lang_String::create_from_platform_dependent_str(st.as_string(), CHECK_NULL); | |
961 return JNIHandles::make_local(result()); | |
962 C2V_END | |
963 | |
964 C2V_ENTRY(jlongArray, getLineNumberTable, (JNIEnv *env, jobject, jobject hotspot_method)) | 930 C2V_ENTRY(jlongArray, getLineNumberTable, (JNIEnv *env, jobject, jobject hotspot_method)) |
965 // XXX: Attention: it seEms that the line number table of a method just contains lines that are important, means that | |
966 // empty lines are left out or lines that can't have a breakpoint on it; eg int a; or try { | |
967 Method* method = getMethodFromHotSpotMethod(JNIHandles::resolve(hotspot_method)); | 931 Method* method = getMethodFromHotSpotMethod(JNIHandles::resolve(hotspot_method)); |
968 if (!method->has_linenumber_table()) { | 932 if (!method->has_linenumber_table()) { |
969 return NULL; | 933 return NULL; |
970 } | 934 } |
971 u2 num_entries = 0; | 935 u2 num_entries = 0; |
1099 {CC"getMetaspaceMethod", CC"("REFLECT_METHOD"["HS_RESOLVED_TYPE")"METASPACE_METHOD, FN_PTR(getMetaspaceMethod)}, | 1063 {CC"getMetaspaceMethod", CC"("REFLECT_METHOD"["HS_RESOLVED_TYPE")"METASPACE_METHOD, FN_PTR(getMetaspaceMethod)}, |
1100 {CC"getMetaspaceConstructor", CC"("REFLECT_CONSTRUCTOR"["HS_RESOLVED_TYPE")"METASPACE_METHOD, FN_PTR(getMetaspaceConstructor)}, | 1064 {CC"getMetaspaceConstructor", CC"("REFLECT_CONSTRUCTOR"["HS_RESOLVED_TYPE")"METASPACE_METHOD, FN_PTR(getMetaspaceConstructor)}, |
1101 {CC"getJavaField", CC"("REFLECT_FIELD")"HS_RESOLVED_FIELD, FN_PTR(getJavaField)}, | 1065 {CC"getJavaField", CC"("REFLECT_FIELD")"HS_RESOLVED_FIELD, FN_PTR(getJavaField)}, |
1102 {CC"initializeConfiguration", CC"("HS_CONFIG")V", FN_PTR(initializeConfiguration)}, | 1066 {CC"initializeConfiguration", CC"("HS_CONFIG")V", FN_PTR(initializeConfiguration)}, |
1103 {CC"installCode0", CC"("HS_COMP_RESULT HS_INSTALLED_CODE HS_CODE_INFO"[Z)I", FN_PTR(installCode0)}, | 1067 {CC"installCode0", CC"("HS_COMP_RESULT HS_INSTALLED_CODE HS_CODE_INFO"[Z)I", FN_PTR(installCode0)}, |
1104 {CC"disassembleNative", CC"([BJ)"STRING, FN_PTR(disassembleNative)}, | |
1105 {CC"disassembleNMethod", CC"(J)"STRING, FN_PTR(disassembleNMethod)}, | 1068 {CC"disassembleNMethod", CC"(J)"STRING, FN_PTR(disassembleNMethod)}, |
1106 {CC"executeCompiledMethod", CC"("METASPACE_METHOD NMETHOD OBJECT OBJECT OBJECT")"OBJECT, FN_PTR(executeCompiledMethod)}, | 1069 {CC"executeCompiledMethod", CC"("METASPACE_METHOD NMETHOD OBJECT OBJECT OBJECT")"OBJECT, FN_PTR(executeCompiledMethod)}, |
1107 {CC"executeCompiledMethodVarargs", CC"("METASPACE_METHOD NMETHOD "["OBJECT")"OBJECT, FN_PTR(executeCompiledMethodVarargs)}, | 1070 {CC"executeCompiledMethodVarargs", CC"("METASPACE_METHOD NMETHOD "["OBJECT")"OBJECT, FN_PTR(executeCompiledMethodVarargs)}, |
1108 {CC"getDeoptedLeafGraphIds", CC"()[J", FN_PTR(getDeoptedLeafGraphIds)}, | 1071 {CC"getDeoptedLeafGraphIds", CC"()[J", FN_PTR(getDeoptedLeafGraphIds)}, |
1109 {CC"decodePC", CC"(J)"STRING, FN_PTR(decodePC)}, | |
1110 {CC"getLineNumberTable", CC"("HS_RESOLVED_METHOD")[J", FN_PTR(getLineNumberTable)}, | 1072 {CC"getLineNumberTable", CC"("HS_RESOLVED_METHOD")[J", FN_PTR(getLineNumberTable)}, |
1111 {CC"getLocalVariableTable", CC"("HS_RESOLVED_METHOD")["LOCAL, FN_PTR(getLocalVariableTable)}, | 1073 {CC"getLocalVariableTable", CC"("HS_RESOLVED_METHOD")["LOCAL, FN_PTR(getLocalVariableTable)}, |
1112 {CC"getFileName", CC"("HS_RESOLVED_JAVA_TYPE")"STRING, FN_PTR(getFileName)}, | 1074 {CC"getFileName", CC"("HS_RESOLVED_JAVA_TYPE")"STRING, FN_PTR(getFileName)}, |
1113 }; | 1075 }; |
1114 | 1076 |