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

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

Issue 1445513002: [turbofan] Introduce JSCallReducer to strength reduce JSCallFunction nodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment. Created 5 years, 1 month 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
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698