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

Unified Diff: src/stub-cache.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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/sampler.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.cc
diff --git a/src/stub-cache.cc b/src/stub-cache.cc
index c15038ee9ecc3f13c63ae159a2bea5af453c3262..cac9d2c03be6af0e3606c194bd8b558dcbbbaa81 100644
--- a/src/stub-cache.cc
+++ b/src/stub-cache.cc
@@ -607,6 +607,7 @@ Handle<Code> StubCompiler::CompileLoadInitialize(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadInitialize");
PROFILE(isolate(),
CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code));
return code;
}
@@ -617,6 +618,7 @@ Handle<Code> StubCompiler::CompileLoadPreMonomorphic(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadPreMonomorphic");
PROFILE(isolate(),
CodeCreateEvent(Logger::LOAD_PREMONOMORPHIC_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code));
return code;
}
@@ -627,6 +629,7 @@ Handle<Code> StubCompiler::CompileLoadMegamorphic(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadMegamorphic");
PROFILE(isolate(),
CodeCreateEvent(Logger::LOAD_MEGAMORPHIC_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code));
return code;
}
@@ -637,6 +640,7 @@ Handle<Code> StubCompiler::CompileStoreInitialize(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreInitialize");
PROFILE(isolate(),
CodeCreateEvent(Logger::STORE_INITIALIZE_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::STORE_IC, *code));
return code;
}
@@ -647,6 +651,7 @@ Handle<Code> StubCompiler::CompileStorePreMonomorphic(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileStorePreMonomorphic");
PROFILE(isolate(),
CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::STORE_IC, *code));
return code;
}
@@ -659,6 +664,7 @@ Handle<Code> StubCompiler::CompileStoreGeneric(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreGeneric");
PROFILE(isolate(),
CodeCreateEvent(Logger::STORE_GENERIC_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::STORE_IC, *code));
return code;
}
@@ -669,6 +675,7 @@ Handle<Code> StubCompiler::CompileStoreMegamorphic(Code::Flags flags) {
Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreMegamorphic");
PROFILE(isolate(),
CodeCreateEvent(Logger::STORE_MEGAMORPHIC_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
GDBJIT(AddCode(GDBJITInterface::STORE_IC, *code));
return code;
}
@@ -1201,6 +1208,7 @@ Handle<Code> BaseLoadStoreStubCompiler::GetICCode(Code::Kind kind,
Handle<Code> code = GetCodeWithFlags(flags, name);
IC::RegisterWeakMapDependency(code);
PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name));
+ isolate()->CodeCreateEvent(*code, *name);
JitEvent(name, code);
return code;
}
@@ -1213,6 +1221,7 @@ Handle<Code> BaseLoadStoreStubCompiler::GetCode(Code::Kind kind,
Code::Flags flags = Code::ComputeHandlerFlags(kind, type, cache_holder_);
Handle<Code> code = GetCodeWithFlags(flags, name);
PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name));
+ isolate()->CodeCreateEvent(*code, *name);
JitEvent(name, code);
return code;
}
@@ -1306,6 +1315,7 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElementPolymorphic(
isolate()->counters()->keyed_store_polymorphic_stubs()->Increment();
PROFILE(isolate(),
CodeCreateEvent(Logger::KEYED_STORE_POLYMORPHIC_IC_TAG, *code, 0));
+ isolate()->CodeCreateEvent(*code, "args_count: 0");
return code;
}
« no previous file with comments | « src/sampler.cc ('k') | src/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698