Mercurial > hg > truffle
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 14562:45812e05cdb3
Move narrow oop handling in reference maps to hotspot specific code.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 17 Mar 2014 12:07:49 +0100 |
parents | e14198669e5c |
children | 6bab029d6e3a |
comparison
equal
deleted
inserted
replaced
14561:e14198669e5c | 14562:45812e05cdb3 |
---|---|
89 | 89 |
90 // creates a HotSpot oop map out of the byte arrays provided by DebugInfo | 90 // creates a HotSpot oop map out of the byte arrays provided by DebugInfo |
91 static OopMap* create_oop_map(jint total_frame_size, jint parameter_count, oop debug_info) { | 91 static OopMap* create_oop_map(jint total_frame_size, jint parameter_count, oop debug_info) { |
92 OopMap* map = new OopMap(total_frame_size, parameter_count); | 92 OopMap* map = new OopMap(total_frame_size, parameter_count); |
93 oop reference_map = DebugInfo::referenceMap(debug_info); | 93 oop reference_map = DebugInfo::referenceMap(debug_info); |
94 oop register_map = ReferenceMap::registerRefMap(reference_map); | 94 oop register_map = HotSpotReferenceMap::registerRefMap(reference_map); |
95 oop frame_map = ReferenceMap::frameRefMap(reference_map); | 95 oop frame_map = HotSpotReferenceMap::frameRefMap(reference_map); |
96 oop callee_save_info = (oop) DebugInfo::calleeSaveInfo(debug_info); | 96 oop callee_save_info = (oop) DebugInfo::calleeSaveInfo(debug_info); |
97 | 97 |
98 if (register_map != NULL) { | 98 if (register_map != NULL) { |
99 for (jint i = 0; i < RegisterImpl::number_of_registers; i++) { | 99 for (jint i = 0; i < RegisterImpl::number_of_registers; i++) { |
100 bool is_oop = is_bit_set(register_map, 2 * i); | 100 bool is_oop = is_bit_set(register_map, 2 * i); |