Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/c1_FrameMap_x86.hpp @ 6848:8e47bac5643a
7054512: Compress class pointers after perm gen removal
Summary: support of compress class pointers in the compilers.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Tue, 09 Oct 2012 10:11:38 +0200 |
parents | 8a02ca5e5576 |
children | d804e148cff8 |
comparison
equal
deleted
inserted
replaced
6847:65d07d9ee446 | 6848:8e47bac5643a |
---|---|
146 return _caller_save_xmm_regs[i]; | 146 return _caller_save_xmm_regs[i]; |
147 } | 147 } |
148 | 148 |
149 static int adjust_reg_range(int range) { | 149 static int adjust_reg_range(int range) { |
150 // Reduce the number of available regs (to free r12) in case of compressed oops | 150 // Reduce the number of available regs (to free r12) in case of compressed oops |
151 if (UseCompressedOops) return range - 1; | 151 if (UseCompressedOops || UseCompressedKlassPointers) return range - 1; |
152 return range; | 152 return range; |
153 } | 153 } |
154 | 154 |
155 static int nof_caller_save_cpu_regs() { return adjust_reg_range(pd_nof_caller_save_cpu_regs_frame_map); } | 155 static int nof_caller_save_cpu_regs() { return adjust_reg_range(pd_nof_caller_save_cpu_regs_frame_map); } |
156 static int last_cpu_reg() { return adjust_reg_range(pd_last_cpu_reg); } | 156 static int last_cpu_reg() { return adjust_reg_range(pd_last_cpu_reg); } |