Index: src/type-feedback-vector.h |
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h |
index c26a2d3e0d5670e4d92a71208e41993ff107e8ad..4ba90d8cf76824814ade088a160feddd4f69760d 100644 |
--- a/src/type-feedback-vector.h |
+++ b/src/type-feedback-vector.h |
@@ -195,7 +195,11 @@ class TypeFeedbackVector : public FixedArray { |
Handle<TypeFeedbackVector> vector); |
// Clears the vector slots and the vector ic slots. |
- void ClearSlots(SharedFunctionInfo* shared); |
+ void ClearSlots(SharedFunctionInfo* shared) { ClearSlotsImpl(shared, true); } |
+ void ClearSlotsAtGCTime(SharedFunctionInfo* shared) { |
+ ClearSlotsImpl(shared, false); |
+ } |
+ |
void ClearICSlots(SharedFunctionInfo* shared) { |
ClearICSlotsImpl(shared, true); |
} |
@@ -237,6 +241,7 @@ class TypeFeedbackVector : public FixedArray { |
typedef BitSetComputer<VectorICKind, kVectorICKindBits, kSmiValueSize, |
uint32_t> VectorICComputer; |
+ void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear); |
void ClearICSlotsImpl(SharedFunctionInfo* shared, bool force_clear); |
DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); |