Index: src/compiler/arm64/instruction-selector-arm64.cc |
diff --git a/src/compiler/arm64/instruction-selector-arm64.cc b/src/compiler/arm64/instruction-selector-arm64.cc |
index a45a4fbc60125555b621702a32c84f8c1e601fec..318bdd4b07e1eb16cd6d35243b249bb203a2397e 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64.cc |
+++ b/src/compiler/arm64/instruction-selector-arm64.cc |
@@ -103,13 +103,13 @@ class Arm64OperandGenerator final : public OperandGenerator { |
case kArithmeticImm: |
return Assembler::IsImmAddSub(value); |
case kLoadStoreImm8: |
- return IsLoadStoreImmediate(value, LSByte); |
+ return IsLoadStoreImmediate(value, 0); |
case kLoadStoreImm16: |
- return IsLoadStoreImmediate(value, LSHalfword); |
+ return IsLoadStoreImmediate(value, 1); |
case kLoadStoreImm32: |
- return IsLoadStoreImmediate(value, LSWord); |
+ return IsLoadStoreImmediate(value, 2); |
case kLoadStoreImm64: |
- return IsLoadStoreImmediate(value, LSDoubleWord); |
+ return IsLoadStoreImmediate(value, 3); |
case kNoImmediate: |
return false; |
case kShift32Imm: // Fall through. |
@@ -130,7 +130,7 @@ class Arm64OperandGenerator final : public OperandGenerator { |
} |
private: |
- bool IsLoadStoreImmediate(int64_t value, LSDataSize size) { |
+ bool IsLoadStoreImmediate(int64_t value, unsigned size) { |
return Assembler::IsImmLSScaled(value, size) || |
Assembler::IsImmLSUnscaled(value); |
} |