Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_Compilation.hpp @ 1681:126ea7725993
6953477: Increase portability and flexibility of building Hotspot
Summary: A collection of portability improvements including shared code support for PPC, ARM platforms, software floating point, cross compilation support and improvements in error crash detail.
Reviewed-by: phh, never, coleenp, dholmes
author | bobv |
---|---|
date | Tue, 03 Aug 2010 08:13:38 -0400 |
parents | b812ff5abc73 |
children | 4a665be40fd3 |
comparison
equal
deleted
inserted
replaced
1680:a64438a2b7e8 | 1681:126ea7725993 |
---|---|
166 void bailout(const char* msg); | 166 void bailout(const char* msg); |
167 bool bailed_out() const { return _bailout_msg != NULL; } | 167 bool bailed_out() const { return _bailout_msg != NULL; } |
168 const char* bailout_msg() const { return _bailout_msg; } | 168 const char* bailout_msg() const { return _bailout_msg; } |
169 | 169 |
170 static int desired_max_code_buffer_size() { | 170 static int desired_max_code_buffer_size() { |
171 #ifndef PPC | |
171 return (int) NMethodSizeLimit; // default 256K or 512K | 172 return (int) NMethodSizeLimit; // default 256K or 512K |
173 #else | |
174 // conditional branches on PPC are restricted to 16 bit signed | |
175 return MAX2((unsigned int)NMethodSizeLimit,32*K); | |
176 #endif | |
172 } | 177 } |
173 static int desired_max_constant_size() { | 178 static int desired_max_constant_size() { |
179 #ifndef PPC | |
174 return (int) NMethodSizeLimit / 10; // about 25K | 180 return (int) NMethodSizeLimit / 10; // about 25K |
181 #else | |
182 return (MAX2((unsigned int)NMethodSizeLimit, 32*K)) / 10; | |
183 #endif | |
175 } | 184 } |
176 | 185 |
177 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate); | 186 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate); |
178 | 187 |
179 // timers | 188 // timers |