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

Unified Diff: src/feedback-vector.h

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 years, 10 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/compiler/verifier.cc ('k') | src/feedback-vector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/feedback-vector.h
diff --git a/src/feedback-vector.h b/src/feedback-vector.h
index 15625e98b3fe9581047f66682d0982bfa69a03df..e0f015797e8ca5b16b05dce19a49141a4db486cb 100644
--- a/src/feedback-vector.h
+++ b/src/feedback-vector.h
@@ -35,6 +35,7 @@ enum class FeedbackSlotKind {
kCompareOp,
kToBoolean,
kStoreDataPropertyInLiteral,
+ kTypeProfile,
kCreateClosure,
kLiteral,
// This is a general purpose slot that occupies one feedback vector element.
@@ -140,6 +141,11 @@ class FeedbackVectorSpecBase {
return AddSlot(FeedbackSlotKind::kStoreDataPropertyInLiteral);
}
+ FeedbackSlot AddTypeProfileSlot() {
+ DCHECK(FLAG_type_profile);
+ return AddSlot(FeedbackSlotKind::kTypeProfile);
+ }
+
#ifdef OBJECT_PRINT
// For gdb debugging.
void Print();
@@ -713,8 +719,8 @@ class StoreDataPropertyInLiteralICNexus : public FeedbackNexus {
StoreDataPropertyInLiteralICNexus(Handle<FeedbackVector> vector,
FeedbackSlot slot)
: FeedbackNexus(vector, slot) {
- DCHECK_EQ(FeedbackSlotKind::kStoreDataPropertyInLiteral,
- vector->GetKind(slot));
+ // DCHECK_EQ(FeedbackSlotKind::kStoreDataPropertyInLiteral,
+ // vector->GetKind(slot));
}
StoreDataPropertyInLiteralICNexus(FeedbackVector* vector, FeedbackSlot slot)
: FeedbackNexus(vector, slot) {
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698