Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 9020:627dc359e918
Use correct method to access constant pool
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 11 Apr 2013 15:39:55 -0700 |
parents | 23762f2438b6 |
children | 80aee92588cd |
comparison
equal
deleted
inserted
replaced
9019:22601d7e507e | 9020:627dc359e918 |
---|---|
1020 u4 end_bci = (u4)(start_bci + table[i].length); | 1020 u4 end_bci = (u4)(start_bci + table[i].length); |
1021 u2 nameCPIdx = table[i].name_cp_index; | 1021 u2 nameCPIdx = table[i].name_cp_index; |
1022 u2 typeCPIdx = table[i].descriptor_cp_index; | 1022 u2 typeCPIdx = table[i].descriptor_cp_index; |
1023 u2 slot = table[i].slot; | 1023 u2 slot = table[i].slot; |
1024 | 1024 |
1025 char* name = method->constants()->string_at_noresolve(nameCPIdx); | 1025 char* name = method->constants()->symbol_at(nameCPIdx)->as_C_string(); |
1026 Handle nameHandle = java_lang_String::create_from_str(name, CHECK_NULL); | 1026 Handle nameHandle = java_lang_String::create_from_str(name, CHECK_NULL); |
1027 | 1027 |
1028 char* typeInfo = method->constants()->string_at_noresolve(typeCPIdx); | 1028 char* typeInfo = method->constants()->symbol_at(typeCPIdx)->as_C_string(); |
1029 Handle typeHandle = java_lang_String::create_from_str(typeInfo, CHECK_NULL); | 1029 Handle typeHandle = java_lang_String::create_from_str(typeInfo, CHECK_NULL); |
1030 | 1030 |
1031 Handle holderHandle = GraalCompiler::createHotSpotResolvedObjectType(method, CHECK_0); | 1031 Handle holderHandle = GraalCompiler::createHotSpotResolvedObjectType(method, CHECK_0); |
1032 Handle local = VMToCompiler::createLocal(nameHandle, typeHandle, (int) start_bci, (int) end_bci, (int) slot, holderHandle, Thread::current()); | 1032 Handle local = VMToCompiler::createLocal(nameHandle, typeHandle, (int) start_bci, (int) end_bci, (int) slot, holderHandle, Thread::current()); |
1033 local_array->obj_at_put(i, local()); | 1033 local_array->obj_at_put(i, local()); |