Index: src/type-feedback-vector.h |
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h |
index 9aca68f71c1cbc69d36004e82d0f3d2bf4dbb5b5..05dfff7dba302b9b54279bf931f3f2ab60ba889b 100644 |
--- a/src/type-feedback-vector.h |
+++ b/src/type-feedback-vector.h |
@@ -375,9 +375,9 @@ class FeedbackNexus { |
inline Object* GetFeedback() const; |
inline Object* GetFeedbackExtra() const; |
- protected: |
inline Isolate* GetIsolate() const; |
+ protected: |
inline void SetFeedback(Object* feedback, |
WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
inline void SetFeedbackExtra(Object* feedback_extra, |
@@ -399,7 +399,7 @@ class FeedbackNexus { |
}; |
-class CallICNexus : public FeedbackNexus { |
+class CallICNexus final : public FeedbackNexus { |
public: |
// Monomorphic call ics store call counts. Platform code needs to increment |
// the count appropriately (ie, by 2). |
@@ -418,17 +418,19 @@ class CallICNexus : public FeedbackNexus { |
void ConfigureMonomorphicArray(); |
void ConfigureMonomorphic(Handle<JSFunction> function); |
+ void ConfigureMegamorphic() final; |
+ void ConfigureMegamorphic(int call_count); |
- InlineCacheState StateFromFeedback() const override; |
+ InlineCacheState StateFromFeedback() const final; |
- int ExtractMaps(MapHandleList* maps) const override { |
+ int ExtractMaps(MapHandleList* maps) const final { |
// CallICs don't record map feedback. |
return 0; |
} |
- MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const override { |
+ MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const final { |
return MaybeHandle<Code>(); |
} |
- bool FindHandlers(CodeHandleList* code_list, int length = -1) const override { |
+ bool FindHandlers(CodeHandleList* code_list, int length = -1) const final { |
return length == 0; |
} |