diff src/cpu/ppc/vm/nativeInst_ppc.hpp @ 14440:41b780b43b74

8029015: PPC64 (part 216): opto: trap based null and range checks Summary: On PPC64 use tdi instruction that does a compare and raises SIGTRAP for NULL and range checks. Reviewed-by: kvn
author goetz
date Wed, 27 Nov 2013 16:16:21 -0800
parents ec28f9c041ff
children 67fa91961822
line wrap: on
line diff
--- a/src/cpu/ppc/vm/nativeInst_ppc.hpp	Tue Nov 26 18:38:19 2013 -0800
+++ b/src/cpu/ppc/vm/nativeInst_ppc.hpp	Wed Nov 27 16:16:21 2013 -0800
@@ -76,11 +76,13 @@
   }
   static bool is_sigill_zombie_not_entrant_at(address addr);
 
+#ifdef COMPILER2
   // SIGTRAP-based implicit range checks
   bool is_sigtrap_range_check() {
     assert(UseSIGTRAP && TrapBasedRangeChecks, "precondition");
     return MacroAssembler::is_trap_range_check(long_at(0));
   }
+#endif
 
   // 'should not reach here'.
   bool is_sigtrap_should_not_reach_here() {