comparison src/share/vm/graal/graalCompilerToVM.cpp @ 8269:985a97ba083c

Fix spacing.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 12 Mar 2013 11:02:07 +0100
parents b89a97928e72
children 37977d1dcedc
comparison
equal deleted inserted replaced
8218:b45ed2b14fd1 8269:985a97ba083c
83 if (reconstituted_code == NULL) { 83 if (reconstituted_code == NULL) {
84 reconstituted_code = NEW_RESOURCE_ARRAY(jbyte, code_size); 84 reconstituted_code = NEW_RESOURCE_ARRAY(jbyte, code_size);
85 memcpy(reconstituted_code, (jbyte *) method->code_base(), code_size); 85 memcpy(reconstituted_code, (jbyte *) method->code_base(), code_size);
86 } 86 }
87 BytecodeStream s(method); 87 BytecodeStream s(method);
88 while(!s.is_last_bytecode()) { 88 while (!s.is_last_bytecode()) {
89 s.next(); 89 s.next();
90 Bytecodes::Code opcode = s.raw_code(); 90 Bytecodes::Code opcode = s.raw_code();
91 if (!Bytecodes::is_java_code(opcode)) { 91 if (!Bytecodes::is_java_code(opcode)) {
92 jbyte original_opcode = Bytecodes::java_code(opcode); 92 jbyte original_opcode = Bytecodes::java_code(opcode);
93 int bci = s.bci(); 93 int bci = s.bci();
960 960
961 C2V_ENTRY(jlongArray, getLineNumberTable, (JNIEnv *env, jobject, jobject hotspot_method)) 961 C2V_ENTRY(jlongArray, getLineNumberTable, (JNIEnv *env, jobject, jobject hotspot_method))
962 // XXX: Attention: it seEms that the line number table of a method just contains lines that are important, means that 962 // XXX: Attention: it seEms that the line number table of a method just contains lines that are important, means that
963 // empty lines are left out or lines that can't have a breakpoint on it; eg int a; or try { 963 // empty lines are left out or lines that can't have a breakpoint on it; eg int a; or try {
964 Method* method = getMethodFromHotSpotMethod(JNIHandles::resolve(hotspot_method)); 964 Method* method = getMethodFromHotSpotMethod(JNIHandles::resolve(hotspot_method));
965 if(!method->has_linenumber_table()) { 965 if (!method->has_linenumber_table()) {
966 return NULL; 966 return NULL;
967 } 967 }
968 u2 num_entries = 0; 968 u2 num_entries = 0;
969 CompressedLineNumberReadStream streamForSize(method->compressed_linenumber_table()); 969 CompressedLineNumberReadStream streamForSize(method->compressed_linenumber_table());
970 while (streamForSize.read_pair()) { 970 while (streamForSize.read_pair()) {
989 989
990 C2V_VMENTRY(jobject, getLocalVariableTable, (JNIEnv *, jobject, jobject hotspot_method)) 990 C2V_VMENTRY(jobject, getLocalVariableTable, (JNIEnv *, jobject, jobject hotspot_method))
991 ResourceMark rm; 991 ResourceMark rm;
992 992
993 Method* method = getMethodFromHotSpotMethod(JNIHandles::resolve(hotspot_method)); 993 Method* method = getMethodFromHotSpotMethod(JNIHandles::resolve(hotspot_method));
994 if(!method->has_localvariable_table()) { 994 if (!method->has_localvariable_table()) {
995 return NULL; 995 return NULL;
996 } 996 }
997 int localvariable_table_length = method->localvariable_table_length(); 997 int localvariable_table_length = method->localvariable_table_length();
998 998
999 objArrayHandle local_array = oopFactory::new_objArray(SystemDictionary::LocalImpl_klass(), localvariable_table_length, CHECK_NULL); 999 objArrayHandle local_array = oopFactory::new_objArray(SystemDictionary::LocalImpl_klass(), localvariable_table_length, CHECK_NULL);