< prev index next >

src/cpu/ppc/vm/macroAssembler_ppc.inline.hpp

Print this page
rev 8389 : 8080684: PPC64: Fix little-endian build after "8077838: Recent developments for ppc"


 406 // SIGTRAP-based range checks for arrays.
 407 inline void MacroAssembler::trap_range_check_l(Register a, Register b) {
 408   tw (traptoLessThanUnsigned,                  a/*reg a*/, b/*reg b*/);
 409 }
 410 inline void MacroAssembler::trap_range_check_l(Register a, int si16) {
 411   twi(traptoLessThanUnsigned,                  a/*reg a*/, si16);
 412 }
 413 inline void MacroAssembler::trap_range_check_le(Register a, int si16) {
 414   twi(traptoEqual | traptoLessThanUnsigned,    a/*reg a*/, si16);
 415 }
 416 inline void MacroAssembler::trap_range_check_g(Register a, int si16) {
 417   twi(traptoGreaterThanUnsigned,               a/*reg a*/, si16);
 418 }
 419 inline void MacroAssembler::trap_range_check_ge(Register a, Register b) {
 420   tw (traptoEqual | traptoGreaterThanUnsigned, a/*reg a*/, b/*reg b*/);
 421 }
 422 inline void MacroAssembler::trap_range_check_ge(Register a, int si16) {
 423   twi(traptoEqual | traptoGreaterThanUnsigned, a/*reg a*/, si16);
 424 }
 425 
 426 #if defined(ABI_ELFv2)
 427 inline address MacroAssembler::function_entry() { return pc(); }
 428 #else
 429 inline address MacroAssembler::function_entry() { return emit_fd(); }
 430 #endif
 431 
 432 #endif // CPU_PPC_VM_MACROASSEMBLER_PPC_INLINE_HPP


 406 // SIGTRAP-based range checks for arrays.
 407 inline void MacroAssembler::trap_range_check_l(Register a, Register b) {
 408   tw (traptoLessThanUnsigned,                  a/*reg a*/, b/*reg b*/);
 409 }
 410 inline void MacroAssembler::trap_range_check_l(Register a, int si16) {
 411   twi(traptoLessThanUnsigned,                  a/*reg a*/, si16);
 412 }
 413 inline void MacroAssembler::trap_range_check_le(Register a, int si16) {
 414   twi(traptoEqual | traptoLessThanUnsigned,    a/*reg a*/, si16);
 415 }
 416 inline void MacroAssembler::trap_range_check_g(Register a, int si16) {
 417   twi(traptoGreaterThanUnsigned,               a/*reg a*/, si16);
 418 }
 419 inline void MacroAssembler::trap_range_check_ge(Register a, Register b) {
 420   tw (traptoEqual | traptoGreaterThanUnsigned, a/*reg a*/, b/*reg b*/);
 421 }
 422 inline void MacroAssembler::trap_range_check_ge(Register a, int si16) {
 423   twi(traptoEqual | traptoGreaterThanUnsigned, a/*reg a*/, si16);
 424 }
 425 



 426 inline address MacroAssembler::function_entry() { return emit_fd(); }

 427 
 428 #endif // CPU_PPC_VM_MACROASSEMBLER_PPC_INLINE_HPP
< prev index next >