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

Unified Diff: src/type-feedback-vector.h

Issue 1201193003: [ic] Record call counts for monomorphic calls made with an IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 6 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/mips64/code-stubs-mips64.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-feedback-vector.h
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h
index c6864aa653142a21b89d6249887639a9adb9cbcd..ee2d20030b4dff5ee07dffef506401be8606ddc8 100644
--- a/src/type-feedback-vector.h
+++ b/src/type-feedback-vector.h
@@ -214,11 +214,6 @@ class TypeFeedbackVector : public FixedArray {
// The object that indicates a premonomorphic state.
static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate);
- // The object that indicates a monomorphic state of Array with
- // ElementsKind
- static inline Handle<Object> MonomorphicArraySentinel(
- Isolate* isolate, ElementsKind elements_kind);
-
// A raw version of the uninitialized sentinel that's safe to read during
// garbage collection (e.g., for patching the cache).
static inline Object* RawUninitializedSentinel(Heap* heap);
@@ -339,6 +334,10 @@ class FeedbackNexus {
class CallICNexus : public FeedbackNexus {
public:
+ // Monomorphic call ics store call counts. Platform code needs to increment
+ // the count appropriately (ie, by 2).
+ static const int kCallCountIncrement = 2;
+
CallICNexus(Handle<TypeFeedbackVector> vector, FeedbackVectorICSlot slot)
: FeedbackNexus(vector, slot) {
DCHECK(vector->GetKind(slot) == Code::CALL_IC);
@@ -368,6 +367,8 @@ class CallICNexus : public FeedbackNexus {
int length = -1) const override {
return length == 0;
}
+
+ int ExtractCallCount();
};
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698