Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index e7e1fb8931eea51ea7eadca1199b5908fee2f417..82beb99c05e9fcf69024da1f6151b35ed94165bf 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -2965,9 +2965,9 @@ void MacroAssembler::IncrementCounter(StatsCounter* counter, int value, |
DCHECK(value != 0); |
if (FLAG_native_code_counters && counter->Enabled()) { |
Mov(scratch2, ExternalReference(counter)); |
- Ldr(scratch1, MemOperand(scratch2)); |
- Add(scratch1, scratch1, value); |
- Str(scratch1, MemOperand(scratch2)); |
+ Ldr(scratch1.W(), MemOperand(scratch2)); |
+ Add(scratch1.W(), scratch1.W(), value); |
+ Str(scratch1.W(), MemOperand(scratch2)); |
} |
} |