| Index: src/x64/macro-assembler-x64.cc
|
| diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
|
| index 079f9b057113ad9b08b7b43f9164cc78584c88f3..a771f1ed2952ab62007746b27188de0487b11689 100644
|
| --- a/src/x64/macro-assembler-x64.cc
|
| +++ b/src/x64/macro-assembler-x64.cc
|
| @@ -405,10 +405,6 @@ void MacroAssembler::RecordWriteForMap(Register object,
|
| // Compute the address.
|
| leap(dst, FieldOperand(object, HeapObject::kMapOffset));
|
|
|
| - // Count number of write barriers in generated code.
|
| - isolate()->counters()->write_barriers_static()->Increment();
|
| - IncrementCounter(isolate()->counters()->write_barriers_dynamic(), 1);
|
| -
|
| // First, check if a write barrier is even needed. The tests below
|
| // catch stores of smis and stores into the young generation.
|
| Label done;
|
| @@ -430,6 +426,10 @@ void MacroAssembler::RecordWriteForMap(Register object,
|
|
|
| bind(&done);
|
|
|
| + // Count number of write barriers in generated code.
|
| + isolate()->counters()->write_barriers_static()->Increment();
|
| + IncrementCounter(isolate()->counters()->write_barriers_dynamic(), 1);
|
| +
|
| // Clobber clobbered registers when running with the debug-code flag
|
| // turned on to provoke errors.
|
| if (emit_debug_code()) {
|
| @@ -465,10 +465,6 @@ void MacroAssembler::RecordWrite(
|
| bind(&ok);
|
| }
|
|
|
| - // Count number of write barriers in generated code.
|
| - isolate()->counters()->write_barriers_static()->Increment();
|
| - IncrementCounter(isolate()->counters()->write_barriers_dynamic(), 1);
|
| -
|
| // First, check if a write barrier is even needed. The tests below
|
| // catch stores of smis and stores into the young generation.
|
| Label done;
|
| @@ -500,6 +496,10 @@ void MacroAssembler::RecordWrite(
|
|
|
| bind(&done);
|
|
|
| + // Count number of write barriers in generated code.
|
| + isolate()->counters()->write_barriers_static()->Increment();
|
| + IncrementCounter(isolate()->counters()->write_barriers_dynamic(), 1);
|
| +
|
| // Clobber clobbered registers when running with the debug-code flag
|
| // turned on to provoke errors.
|
| if (emit_debug_code()) {
|
|
|