| Index: src/type-feedback-vector.h
|
| diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h
|
| index c8f68bd1fbca8a40f5c92cd0743e65dfeb75d161..c0646a4da7f63259a23971b9c25802e413dbc76b 100644
|
| --- a/src/type-feedback-vector.h
|
| +++ b/src/type-feedback-vector.h
|
| @@ -166,6 +166,12 @@ class TypeFeedbackVector : public FixedArray {
|
|
|
| // Clears the vector slots and the vector ic slots.
|
| void ClearSlots(SharedFunctionInfo* shared);
|
| + void ClearICSlots(SharedFunctionInfo* shared) {
|
| + ClearICSlotsImpl(shared, true);
|
| + }
|
| + void ClearICSlotsAtGCTime(SharedFunctionInfo* shared) {
|
| + ClearICSlotsImpl(shared, false);
|
| + }
|
|
|
| // The object that indicates an uninitialized cache.
|
| static inline Handle<Object> UninitializedSentinel(Isolate* isolate);
|
| @@ -201,6 +207,8 @@ class TypeFeedbackVector : public FixedArray {
|
| typedef BitSetComputer<VectorICKind, kVectorICKindBits, kSmiValueSize,
|
| uint32_t> VectorICComputer;
|
|
|
| + void ClearICSlotsImpl(SharedFunctionInfo* shared, bool force_clear);
|
| +
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector);
|
| };
|
|
|
|
|