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

Unified Diff: src/ic-inl.h

Issue 451643002: Clean up IC tracing for CallICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments. 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/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic-inl.h
diff --git a/src/ic-inl.h b/src/ic-inl.h
index ad0078e886565cb89f9e91eb58b340d8d965b4a3..c7954ce13a3f8c681869b2f3aea416a90bfa84de 100644
--- a/src/ic-inl.h
+++ b/src/ic-inl.h
@@ -169,8 +169,10 @@ Handle<Map> IC::GetICCacheHolder(HeapType* type, Isolate* isolate,
}
-IC::State CallIC::FeedbackObjectToState(Object* feedback) const {
+IC::State CallIC::FeedbackToState(Handle<FixedArray> vector,
+ Handle<Smi> slot) const {
IC::State state = UNINITIALIZED;
+ Object* feedback = vector->get(slot->value());
if (feedback == *TypeFeedbackInfo::MegamorphicSentinel(isolate())) {
state = GENERIC;
« no previous file with comments | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698