diff options
author | Andrei Popescu <andreip@google.com> | 2010-02-26 13:31:12 +0000 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2010-02-26 13:31:12 +0000 |
commit | 402d937239b0e2fd11bf2f4fe972ad78aa9fd481 (patch) | |
tree | b9d769439a27fa48d7171e1a669e98f519591b94 /src/code-stubs.cc | |
parent | 2007755a32dfa1ac843f501dec4fb872f8bbcc52 (diff) | |
download | android_external_v8-402d937239b0e2fd11bf2f4fe972ad78aa9fd481.tar.gz android_external_v8-402d937239b0e2fd11bf2f4fe972ad78aa9fd481.tar.bz2 android_external_v8-402d937239b0e2fd11bf2f4fe972ad78aa9fd481.zip |
update V8 to TOT snapshot branch
Diffstat (limited to 'src/code-stubs.cc')
-rw-r--r-- | src/code-stubs.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/code-stubs.cc b/src/code-stubs.cc index 95f0760a..4d0fd299 100644 --- a/src/code-stubs.cc +++ b/src/code-stubs.cc @@ -31,6 +31,7 @@ #include "code-stubs.h" #include "factory.h" #include "macro-assembler.h" +#include "oprofile-agent.h" namespace v8 { namespace internal { @@ -60,8 +61,12 @@ void CodeStub::GenerateCode(MacroAssembler* masm) { void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) { code->set_major_key(MajorKey()); - // Add unresolved entries in the code to the fixup list. - Bootstrapper::AddFixup(code, masm); +#ifdef ENABLE_OPROFILE_AGENT + // Register the generated stub with the OPROFILE agent. + OProfileAgent::CreateNativeCodeRegion(GetName(), + code->instruction_start(), + code->instruction_size()); +#endif LOG(CodeCreateEvent(Logger::STUB_TAG, code, GetName())); Counters::total_stubs_code_size.Increment(code->instruction_size()); |