Index: src/compiler/s390/code-generator-s390.cc |
diff --git a/src/compiler/s390/code-generator-s390.cc b/src/compiler/s390/code-generator-s390.cc |
index ce51b5a0230e82790f746ab0c2ea29fe4aef612f..3c6e213d22f7c8f39656df6c301810fed50ebc9b 100644 |
--- a/src/compiler/s390/code-generator-s390.cc |
+++ b/src/compiler/s390/code-generator-s390.cc |
@@ -1937,21 +1937,23 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; |
switch (src.type()) { |
case Constant::kInt32: |
-#if !V8_TARGET_ARCH_S390X |
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
+#if V8_TARGET_ARCH_S390X |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
+#else |
+ if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || |
+ src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { |
+#endif |
__ mov(dst, Operand(src.ToInt32(), src.rmode())); |
} else { |
__ mov(dst, Operand(src.ToInt32())); |
} |
-#else |
- __ mov(dst, Operand(src.ToInt32())); |
-#endif // V8_TARGET_ARCH_S390X |
break; |
case Constant::kInt64: |
#if V8_TARGET_ARCH_S390X |
if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) { |
__ mov(dst, Operand(src.ToInt64(), src.rmode())); |
} else { |
+ DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); |
__ mov(dst, Operand(src.ToInt64())); |
} |
#else |