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

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

Issue 1217943004: Vector ICs: Introduce an InstanceType for the type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix for failing test. 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
Index: src/type-feedback-vector.h
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h
index a6f72210fc9f2545d77ea92e885a6f801071fadd..6a156e696d3e610a464e7ea383e71f72bce92336 100644
--- a/src/type-feedback-vector.h
+++ b/src/type-feedback-vector.h
@@ -9,7 +9,6 @@
#include "src/checks.h"
#include "src/elements-kind.h"
-#include "src/heap/heap.h"
#include "src/isolate.h"
#include "src/objects.h"
#include "src/zone-containers.h"
@@ -186,12 +185,18 @@ class TypeFeedbackVector : public FixedArray {
Code::Kind GetKind(FeedbackVectorICSlot slot) const;
template <typename Spec>
- static Handle<TypeFeedbackVector> Allocate(Isolate* isolate,
- const Spec* spec);
+ static int SizeFor(const Spec* spec);
+
+ template <typename Spec>
+ void Init(Isolate* isolate, const Spec* spec);
static Handle<TypeFeedbackVector> Copy(Isolate* isolate,
Handle<TypeFeedbackVector> vector);
+ DECLARE_PRINTER(TypeFeedbackVector)
+
+ void TypeFeedbackVectorVerify();
+
// Clears the vector slots and the vector ic slots.
void ClearSlots(SharedFunctionInfo* shared) { ClearSlotsImpl(shared, true); }
void ClearSlotsAtGCTime(SharedFunctionInfo* shared) {

Powered by Google App Engine
This is Rietveld 408576698