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

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

Issue 1364373003: Full code shouldn't embed the type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 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/type-feedback-vector.h
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h
index 4fb01997483655aeba19cc9d393afcf9c238806f..d5bc1a6cb3a9ed9ad56dc4fbc2fa38f5f0802714 100644
--- a/src/type-feedback-vector.h
+++ b/src/type-feedback-vector.h
@@ -113,6 +113,11 @@ class TypeFeedbackVector : public FixedArray {
inline int GetIndex(FeedbackVectorSlot slot) const;
inline int GetIndex(FeedbackVectorICSlot slot) const;
+ template <typename Spec>
+ static int GetIndexFromSpec(const Spec* spec, FeedbackVectorSlot slot);
+ template <typename Spec>
+ static int GetIndexFromSpec(const Spec* spec, FeedbackVectorICSlot slot);
+
// Conversion from an integer index to either a slot or an ic slot. The caller
// should know what kind she expects.
inline FeedbackVectorSlot ToSlot(int index) const;

Powered by Google App Engine
This is Rietveld 408576698