[macro-assembler] delete unused SetCounter
Bug: Change-Id: I0f050d9ca57738267bcf461ac101f781a2e01fdf Reviewed-on: https://chromium-review.googlesource.com/707148 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/master@{#48398}
This commit is contained in:
parent
28dc6a7293
commit
edc219cbb8
@ -1478,13 +1478,6 @@ void TurboAssembler::Popcnt(Register dst, const Operand& src) {
|
||||
}
|
||||
|
||||
|
||||
void MacroAssembler::SetCounter(StatsCounter* counter, int value) {
|
||||
if (FLAG_native_code_counters && counter->Enabled()) {
|
||||
mov(Operand::StaticVariable(ExternalReference(counter)), Immediate(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MacroAssembler::IncrementCounter(StatsCounter* counter, int value) {
|
||||
DCHECK(value > 0);
|
||||
if (FLAG_native_code_counters && counter->Enabled()) {
|
||||
|
@ -669,7 +669,6 @@ class MacroAssembler : public TurboAssembler {
|
||||
// ---------------------------------------------------------------------------
|
||||
// StatsCounter support
|
||||
|
||||
void SetCounter(StatsCounter* counter, int value);
|
||||
void IncrementCounter(StatsCounter* counter, int value);
|
||||
void DecrementCounter(StatsCounter* counter, int value);
|
||||
|
||||
|
@ -1745,16 +1745,6 @@ void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin,
|
||||
}
|
||||
|
||||
|
||||
void MacroAssembler::SetCounter(StatsCounter* counter, int value,
|
||||
Register scratch1, Register scratch2) {
|
||||
if (FLAG_native_code_counters && counter->Enabled()) {
|
||||
mov(scratch1, Operand(value));
|
||||
mov(scratch2, Operand(ExternalReference(counter)));
|
||||
stw(scratch1, MemOperand(scratch2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MacroAssembler::IncrementCounter(StatsCounter* counter, int value,
|
||||
Register scratch1, Register scratch2) {
|
||||
DCHECK(value > 0);
|
||||
|
@ -948,8 +948,6 @@ class MacroAssembler : public TurboAssembler {
|
||||
// ---------------------------------------------------------------------------
|
||||
// StatsCounter support
|
||||
|
||||
void SetCounter(StatsCounter* counter, int value, Register scratch1,
|
||||
Register scratch2);
|
||||
void IncrementCounter(StatsCounter* counter, int value, Register scratch1,
|
||||
Register scratch2);
|
||||
void DecrementCounter(StatsCounter* counter, int value, Register scratch1,
|
||||
|
@ -1613,15 +1613,6 @@ void MacroAssembler::JumpToExternalReference(const ExternalReference& builtin,
|
||||
Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
|
||||
}
|
||||
|
||||
void MacroAssembler::SetCounter(StatsCounter* counter, int value,
|
||||
Register scratch1, Register scratch2) {
|
||||
if (FLAG_native_code_counters && counter->Enabled()) {
|
||||
mov(scratch1, Operand(value));
|
||||
mov(scratch2, Operand(ExternalReference(counter)));
|
||||
StoreW(scratch1, MemOperand(scratch2));
|
||||
}
|
||||
}
|
||||
|
||||
void MacroAssembler::IncrementCounter(StatsCounter* counter, int value,
|
||||
Register scratch1, Register scratch2) {
|
||||
DCHECK(value > 0 && is_int8(value));
|
||||
|
@ -1110,8 +1110,6 @@ class MacroAssembler : public TurboAssembler {
|
||||
// ---------------------------------------------------------------------------
|
||||
// StatsCounter support
|
||||
|
||||
void SetCounter(StatsCounter* counter, int value, Register scratch1,
|
||||
Register scratch2);
|
||||
void IncrementCounter(StatsCounter* counter, int value, Register scratch1,
|
||||
Register scratch2);
|
||||
void DecrementCounter(StatsCounter* counter, int value, Register scratch1,
|
||||
|
@ -2565,14 +2565,6 @@ void MacroAssembler::GetMapConstructor(Register result, Register map,
|
||||
bind(&done);
|
||||
}
|
||||
|
||||
void MacroAssembler::SetCounter(StatsCounter* counter, int value) {
|
||||
if (FLAG_native_code_counters && counter->Enabled()) {
|
||||
Operand counter_operand = ExternalOperand(ExternalReference(counter));
|
||||
movl(counter_operand, Immediate(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MacroAssembler::IncrementCounter(StatsCounter* counter, int value) {
|
||||
DCHECK(value > 0);
|
||||
if (FLAG_native_code_counters && counter->Enabled()) {
|
||||
|
@ -1032,8 +1032,6 @@ class MacroAssembler : public TurboAssembler {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// StatsCounter support
|
||||
|
||||
void SetCounter(StatsCounter* counter, int value);
|
||||
void IncrementCounter(StatsCounter* counter, int value);
|
||||
void DecrementCounter(StatsCounter* counter, int value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user