comparison src/share/vm/c1/c1_Compilation.hpp @ 1899:42a10fc37986

6991577: add IfOp optimization to C1 Summary: Ifop optimization for c1 Reviewed-by: never, phh, iveresov
author roland
date Fri, 15 Oct 2010 09:38:20 +0200
parents f02a8bbe6ed4
children f95d63e2154a
comparison
equal deleted inserted replaced
1852:94d77a279225 1899:42a10fc37986
176 static int desired_max_code_buffer_size() { 176 static int desired_max_code_buffer_size() {
177 #ifndef PPC 177 #ifndef PPC
178 return (int) NMethodSizeLimit; // default 256K or 512K 178 return (int) NMethodSizeLimit; // default 256K or 512K
179 #else 179 #else
180 // conditional branches on PPC are restricted to 16 bit signed 180 // conditional branches on PPC are restricted to 16 bit signed
181 return MAX2((unsigned int)NMethodSizeLimit,32*K); 181 return MIN2((unsigned int)NMethodSizeLimit,32*K);
182 #endif 182 #endif
183 } 183 }
184 static int desired_max_constant_size() { 184 static int desired_max_constant_size() {
185 #ifndef PPC 185 return desired_max_code_buffer_size() / 10;
186 return (int) NMethodSizeLimit / 10; // about 25K
187 #else
188 return (MAX2((unsigned int)NMethodSizeLimit, 32*K)) / 10;
189 #endif
190 } 186 }
191 187
192 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate); 188 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate);
193 189
194 // timers 190 // timers