Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: src/code-stubs.cc

Issue 519543002: [WIP] Added CodeEventListener to the sampler API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CallbackEvent also logs as code-creation, added coverage for that. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 StringStream stream(&allocator); 118 StringStream stream(&allocator);
119 PrintName(&stream); 119 PrintName(&stream);
120 return stream.ToCString(); 120 return stream.ToCString();
121 } 121 }
122 122
123 123
124 void CodeStub::RecordCodeGeneration(Handle<Code> code) { 124 void CodeStub::RecordCodeGeneration(Handle<Code> code) {
125 IC::RegisterWeakMapDependency(code); 125 IC::RegisterWeakMapDependency(code);
126 SmartArrayPointer<const char> name = GetName(); 126 SmartArrayPointer<const char> name = GetName();
127 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, name.get())); 127 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, name.get()));
128 isolate()->CodeCreateEvent(*code, name.get());
128 GDBJIT(AddCode(GDBJITInterface::STUB, name.get(), *code)); 129 GDBJIT(AddCode(GDBJITInterface::STUB, name.get(), *code));
129 Counters* counters = isolate()->counters(); 130 Counters* counters = isolate()->counters();
130 counters->total_stubs_code_size()->Increment(code->instruction_size()); 131 counters->total_stubs_code_size()->Increment(code->instruction_size());
131 } 132 }
132 133
133 134
134 Code::Kind CodeStub::GetCodeKind() const { 135 Code::Kind CodeStub::GetCodeKind() const {
135 return Code::STUB; 136 return Code::STUB;
136 } 137 }
137 138
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 InstallDescriptor(isolate, &stub3); 935 InstallDescriptor(isolate, &stub3);
935 } 936 }
936 937
937 InternalArrayConstructorStub::InternalArrayConstructorStub( 938 InternalArrayConstructorStub::InternalArrayConstructorStub(
938 Isolate* isolate) : PlatformCodeStub(isolate) { 939 Isolate* isolate) : PlatformCodeStub(isolate) {
939 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 940 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
940 } 941 }
941 942
942 943
943 } } // namespace v8::internal 944 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698