Mercurial > hg > graal-compiler
comparison src/cpu/sparc/vm/frame_sparc.hpp @ 3899:c124e2e7463e
7083786: dead various dead chunks of code
Reviewed-by: iveresov, kvn
author | never |
---|---|
date | Wed, 31 Aug 2011 16:46:11 -0700 |
parents | f95d63e2154a |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
3898:a64d352d1118 | 3899:c124e2e7463e |
---|---|
257 | 257 |
258 interpreter_frame_extra_outgoing_argument_words = 2 | 258 interpreter_frame_extra_outgoing_argument_words = 2 |
259 }; | 259 }; |
260 #endif /* CC_INTERP */ | 260 #endif /* CC_INTERP */ |
261 | 261 |
262 // the compiler frame has many of the same fields as the interpreter frame | |
263 // %%%%% factor out declarations of the shared fields | |
264 enum compiler_frame_fixed_locals { | 262 enum compiler_frame_fixed_locals { |
265 compiler_frame_d_scratch_fp_offset = -2, | 263 compiler_frame_vm_locals_fp_offset = -2 |
266 compiler_frame_vm_locals_fp_offset = -2, // should be same as above | |
267 | |
268 compiler_frame_vm_local_words = -compiler_frame_vm_locals_fp_offset | |
269 }; | 264 }; |
270 | 265 |
271 private: | 266 private: |
272 constantPoolCacheOop* interpreter_frame_cpoolcache_addr() const; | 267 constantPoolCacheOop* interpreter_frame_cpoolcache_addr() const; |
273 | 268 |
281 return (intptr_t**)sp_addr_at(Lesp->sp_offset_in_saved_window()); | 276 return (intptr_t**)sp_addr_at(Lesp->sp_offset_in_saved_window()); |
282 } | 277 } |
283 | 278 |
284 inline void interpreter_frame_set_tos_address(intptr_t* x); | 279 inline void interpreter_frame_set_tos_address(intptr_t* x); |
285 | 280 |
286 | |
287 // %%%%% Another idea: instead of defining 3 fns per item, just define one returning a ref | |
288 | |
289 // monitors: | 281 // monitors: |
290 | 282 |
291 // next two fns read and write Lmonitors value, | 283 // next two fns read and write Lmonitors value, |
292 private: | 284 private: |
293 BasicObjectLock* interpreter_frame_monitors() const { return *interpreter_frame_monitors_addr(); } | 285 BasicObjectLock* interpreter_frame_monitors() const { return *interpreter_frame_monitors_addr(); } |
296 public: | 288 public: |
297 inline interpreterState get_interpreterState() const { | 289 inline interpreterState get_interpreterState() const { |
298 return ((interpreterState)sp_at(interpreter_state_ptr_offset)); | 290 return ((interpreterState)sp_at(interpreter_state_ptr_offset)); |
299 } | 291 } |
300 | 292 |
301 | |
302 #endif /* CC_INTERP */ | 293 #endif /* CC_INTERP */ |
303 | 294 |
304 | 295 public: |
305 | |
306 // Compiled frames | |
307 | |
308 public: | |
309 // Tells if this register can hold 64 bits on V9 (really, V8+). | |
310 static bool holds_a_doubleword(Register reg) { | |
311 #ifdef _LP64 | |
312 // return true; | |
313 return reg->is_out() || reg->is_global(); | |
314 #else | |
315 return reg->is_out() || reg->is_global(); | |
316 #endif | |
317 } | |
318 | 296 |
319 #endif // CPU_SPARC_VM_FRAME_SPARC_HPP | 297 #endif // CPU_SPARC_VM_FRAME_SPARC_HPP |