| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index e42f75894b2d7656676123ebcb214f42d4e5a4d3..ea748980168ced9489d5c4c14ea80287a404c10c 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -61,13 +61,9 @@ void CodeStub::GenerateCode(MacroAssembler* masm) {
|
| void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) {
|
| code->set_major_key(MajorKey());
|
|
|
| -#ifdef ENABLE_OPROFILE_AGENT
|
| - // Register the generated stub with the OPROFILE agent.
|
| - OProfileAgent::CreateNativeCodeRegion(GetName(),
|
| - code->instruction_start(),
|
| - code->instruction_size());
|
| -#endif
|
| -
|
| + OPROFILE(CreateNativeCodeRegion(GetName(),
|
| + code->instruction_start(),
|
| + code->instruction_size()));
|
| LOG(CodeCreateEvent(Logger::STUB_TAG, code, GetName()));
|
| Counters::total_stubs_code_size.Increment(code->instruction_size());
|
|
|
|
|