Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index ed1daf1feabdc6ee406e3c100fcc8aed3cb98984..a49d678b06934cce02860e140935070d90842b0d 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -4132,6 +4132,19 @@ void MacroAssembler::Load(Register dst, const MemOperand& opnd) { |
#endif |
} |
+void MacroAssembler::LoadPositiveP(Register result, Register input) { |
+#if V8_TARGET_ARCH_S390X |
+ lpgr(result, input); |
+#else |
+ lpr(result, input); |
+#endif |
+} |
+ |
+void MacroAssembler::LoadPositive32(Register result, Register input) { |
+ lpr(result, input); |
+ lgfr(result, result); |
+} |
+ |
//----------------------------------------------------------------------------- |
// Compare Helpers |
//----------------------------------------------------------------------------- |