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

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

Issue 2309943003: [turbofan] Treat PREMONOMORPHIC like UNINITIALIZED.
Patch Set: Blacklist test. Created 4 years, 3 months 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/js-native-context-specialization.cc ('k') | test/mjsunit/mjsunit.status » ('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 5355ee71884a1096c0c185f0b5c4ac097684d2e3..30d6e83c3a8e2a0b288f0ad347c70b870525a699 100644
--- a/src/type-feedback-vector.h
+++ b/src/type-feedback-vector.h
@@ -400,6 +400,9 @@ class FeedbackNexus {
InlineCacheState ic_state() const { return StateFromFeedback(); }
bool IsUninitialized() const { return StateFromFeedback() == UNINITIALIZED; }
+ bool IsPremonomorphic() const {
+ return StateFromFeedback() == PREMONOMORPHIC;
+ }
Map* FindFirstMap() const {
MapHandleList maps;
ExtractMaps(&maps);
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698