| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index d394c098c61e13f80c61110c1edf84f010b70987..2d0720a77d208716b300c8a4346295bb3571a403 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -614,6 +614,10 @@ void MacroAssembler::RecordWriteForMap(
|
| return;
|
| }
|
|
|
| + // 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
|
| @@ -670,6 +674,10 @@ void MacroAssembler::RecordWrite(Register object,
|
| 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;
|
|
|