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

Unified Diff: src/ic/ic.cc

Issue 1923893002: [counters] Annotate v8 with more runtime call counters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unused macro Created 4 years, 7 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
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index 73f72c3e4e658c529c35617f2d067854c2af77b8..2eb61f1cc26d384f7f51838a0728dab3a9cd0987 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -1052,6 +1052,7 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup,
NamedLoadHandlerCompiler compiler(isolate(), map, holder,
cache_holder);
if (call_optimization.is_simple_api_call()) {
+ if (FLAG_runtime_call_stats) break;
int index = lookup->GetAccessorIndex();
return compiler.CompileLoadCallback(lookup->name(),
call_optimization, index);
@@ -1070,6 +1071,7 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup,
break;
}
if (!holder->HasFastProperties()) break;
+ if (FLAG_runtime_call_stats) break;
if (receiver_is_holder) {
int index = lookup->GetAccessorIndex();
LoadApiGetterStub stub(isolate(), true, index);
@@ -1552,6 +1554,7 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup,
break;
}
NamedStoreHandlerCompiler compiler(isolate(), receiver_map(), holder);
+ if (FLAG_runtime_call_stats) break;
return compiler.CompileStoreCallback(receiver, lookup->name(), info,
language_mode());
} else if (accessors->IsAccessorPair()) {
@@ -1565,6 +1568,7 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup,
NamedStoreHandlerCompiler compiler(isolate(), receiver_map(), holder);
if (call_optimization.is_simple_api_call()) {
if (call_optimization.IsCompatibleReceiver(receiver, holder)) {
+ if (FLAG_runtime_call_stats) break;
return compiler.CompileStoreCallback(receiver, lookup->name(),
call_optimization,
lookup->GetAccessorIndex());

Powered by Google App Engine
This is Rietveld 408576698