comparison src/share/vm/graal/graalCodeInstaller.cpp @ 13725:8d8732e14447

Refactor reference maps.
author Roland Schatz <roland.schatz@oracle.com>
date Wed, 22 Jan 2014 11:27:28 +0100
parents 5a9afbf72714
children 343541fb3b49
comparison
equal deleted inserted replaced
13724:256bc461645e 13725:8d8732e14447
82 } 82 }
83 83
84 // creates a HotSpot oop map out of the byte arrays provided by DebugInfo 84 // creates a HotSpot oop map out of the byte arrays provided by DebugInfo
85 static OopMap* create_oop_map(jint total_frame_size, jint parameter_count, oop debug_info) { 85 static OopMap* create_oop_map(jint total_frame_size, jint parameter_count, oop debug_info) {
86 OopMap* map = new OopMap(total_frame_size, parameter_count); 86 OopMap* map = new OopMap(total_frame_size, parameter_count);
87 oop register_map = (oop) DebugInfo::registerRefMap(debug_info); 87 oop reference_map = DebugInfo::referenceMap(debug_info);
88 oop frame_map = (oop) DebugInfo::frameRefMap(debug_info); 88 oop register_map = ReferenceMap::registerRefMap(reference_map);
89 oop frame_map = ReferenceMap::frameRefMap(reference_map);
89 oop callee_save_info = (oop) DebugInfo::calleeSaveInfo(debug_info); 90 oop callee_save_info = (oop) DebugInfo::calleeSaveInfo(debug_info);
90 91
91 if (register_map != NULL) { 92 if (register_map != NULL) {
92 for (jint i = 0; i < RegisterImpl::number_of_registers; i++) { 93 for (jint i = 0; i < RegisterImpl::number_of_registers; i++) {
93 bool is_oop = is_bit_set(register_map, i); 94 bool is_oop = is_bit_set(register_map, i);