Index: src/type-feedback-vector.cc |
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc |
index adf0a5078af05c056bc1e765bd87f25a008f3357..999eaab231d3d3d2db802c34fac906c87b941d2e 100644 |
--- a/src/type-feedback-vector.cc |
+++ b/src/type-feedback-vector.cc |
@@ -24,10 +24,8 @@ TypeFeedbackVector::VectorICKind TypeFeedbackVector::FromCodeKind( |
case Code::KEYED_LOAD_IC: |
return KindKeyedLoadIC; |
case Code::STORE_IC: |
- DCHECK(FLAG_vector_stores); |
return KindStoreIC; |
case Code::KEYED_STORE_IC: |
- DCHECK(FLAG_vector_stores); |
return KindKeyedStoreIC; |
default: |
// Shouldn't get here. |
@@ -225,6 +223,12 @@ void TypeFeedbackVector::ClearICSlotsImpl(SharedFunctionInfo* shared, |
} |
+// static |
+Handle<TypeFeedbackVector> TypeFeedbackVector::DummyVector(Isolate* isolate) { |
+ return Handle<TypeFeedbackVector>::cast(isolate->factory()->dummy_vector()); |
+} |
+ |
+ |
Handle<FixedArray> FeedbackNexus::EnsureArrayOfSize(int length) { |
Isolate* isolate = GetIsolate(); |
Handle<Object> feedback = handle(GetFeedback(), isolate); |