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

Unified Diff: src/runtime-profiler.cc

Issue 2342853002: [TypeFeedbackVector] special ic slots for interpreter compare/binary ops. (Closed)
Patch Set: Code comments. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: src/runtime-profiler.cc
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
index b82c34ca000a3d29232f4f00d9bd381bd0d3e602..df94ddfa2e687e139addb1bed79cbfe598777b77 100644
--- a/src/runtime-profiler.cc
+++ b/src/runtime-profiler.cc
@@ -81,7 +81,10 @@ static void GetICCounts(JSFunction* function, int* ic_with_type_info_count,
// Harvest vector-ics as well
TypeFeedbackVector* vector = function->feedback_vector();
int with = 0, gen = 0;
- vector->ComputeCounts(&with, &gen);
+ const bool is_interpreted =
+ function->shared()->code()->is_interpreter_trampoline_builtin();
+
+ vector->ComputeCounts(&with, &gen, is_interpreted);
*ic_with_type_info_count += with;
*ic_generic_count += gen;

Powered by Google App Engine
This is Rietveld 408576698