| Index: src/x87/macro-assembler-x87.cc
|
| diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
|
| index f3a4245bf5f3f2f37ab997e8e54d31df5f339cb3..3841d354a0b3f5e20fedd2ee0c3c739899fa028e 100644
|
| --- a/src/x87/macro-assembler-x87.cc
|
| +++ b/src/x87/macro-assembler-x87.cc
|
| @@ -428,10 +428,6 @@ void MacroAssembler::RecordWriteForMap(
|
| // Compute the address.
|
| lea(address, 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);
|
| -
|
| // A single check of the map's pages interesting flag suffices, since it is
|
| // only set during incremental collection, and then it's also guaranteed that
|
| // the from object's page's interesting flag is also set. This optimization
|
| @@ -448,6 +444,10 @@ void MacroAssembler::RecordWriteForMap(
|
|
|
| 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 input registers when running with the debug-code flag
|
| // turned on to provoke errors.
|
| if (emit_debug_code()) {
|
| @@ -483,10 +483,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 young gen.
|
| Label done;
|
| @@ -517,6 +513,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()) {
|
|
|