src/hotspot/cpu/ppc/macroAssembler_ppc.cpp
changeset 48476 ca9489245872
parent 48332 651a95f30dfb
child 48608 1dab70e20292
child 48626 9f6f48d4f9a1
--- a/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp	Thu Dec 21 00:07:38 2017 +0100
+++ b/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp	Wed Dec 20 11:00:07 2017 -0800
@@ -5601,12 +5601,17 @@
 
 #endif // !PRODUCT
 
-SkipIfEqualZero::SkipIfEqualZero(MacroAssembler* masm, Register temp, const bool* flag_addr) : _masm(masm), _label() {
+void SkipIfEqualZero::skip_to_label_if_equal_zero(MacroAssembler* masm, Register temp,
+                                                  const bool* flag_addr, Label& label) {
   int simm16_offset = masm->load_const_optimized(temp, (address)flag_addr, R0, true);
   assert(sizeof(bool) == 1, "PowerPC ABI");
   masm->lbz(temp, simm16_offset, temp);
   masm->cmpwi(CCR0, temp, 0);
-  masm->beq(CCR0, _label);
+  masm->beq(CCR0, label);
+}
+
+SkipIfEqualZero::SkipIfEqualZero(MacroAssembler* masm, Register temp, const bool* flag_addr) : _masm(masm), _label() {
+  skip_to_label_if_equal_zero(masm, temp, flag_addr, _label);
 }
 
 SkipIfEqualZero::~SkipIfEqualZero() {