Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 93b436bb4797874218caa701b5d3f4e0b70ea6fd..5da9402d0d6e59f807ef0cad6343c0508fede526 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -6004,7 +6004,7 @@ void MacroAssembler::SetCounter(StatsCounter* counter, int value, |
if (FLAG_native_code_counters && counter->Enabled()) { |
li(scratch1, Operand(value)); |
li(scratch2, Operand(ExternalReference(counter))); |
- sd(scratch1, MemOperand(scratch2)); |
+ sw(scratch1, MemOperand(scratch2)); |
} |
} |
@@ -6014,9 +6014,9 @@ void MacroAssembler::IncrementCounter(StatsCounter* counter, int value, |
DCHECK(value > 0); |
if (FLAG_native_code_counters && counter->Enabled()) { |
li(scratch2, Operand(ExternalReference(counter))); |
- ld(scratch1, MemOperand(scratch2)); |
- Daddu(scratch1, scratch1, Operand(value)); |
- sd(scratch1, MemOperand(scratch2)); |
+ lw(scratch1, MemOperand(scratch2)); |
+ Addu(scratch1, scratch1, Operand(value)); |
+ sw(scratch1, MemOperand(scratch2)); |
} |
} |
@@ -6026,9 +6026,9 @@ void MacroAssembler::DecrementCounter(StatsCounter* counter, int value, |
DCHECK(value > 0); |
if (FLAG_native_code_counters && counter->Enabled()) { |
li(scratch2, Operand(ExternalReference(counter))); |
- ld(scratch1, MemOperand(scratch2)); |
- Dsubu(scratch1, scratch1, Operand(value)); |
- sd(scratch1, MemOperand(scratch2)); |
+ lw(scratch1, MemOperand(scratch2)); |
+ Subu(scratch1, scratch1, Operand(value)); |
+ sw(scratch1, MemOperand(scratch2)); |
} |
} |