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

Unified Diff: src/globals.h

Issue 2392533002: Reland of [interpreter] Add string type feedback to add (Closed)
Patch Set: Created 4 years, 2 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
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index f2631ff4cc14fe0874d56bf38d1cb861182bee1f..9b7f7ca7f45bb13cd61c42698ad58b95f89ef293 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1213,9 +1213,16 @@ inline uint32_t ObjectHash(Address address) {
// at different points by performing an 'OR' operation. Type feedback moves
// to a more generic type when we combine feedback.
// kSignedSmall -> kNumber -> kAny
+// kString -> kAny
class BinaryOperationFeedback {
public:
- enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 };
+ enum {
+ kNone = 0x0,
+ kSignedSmall = 0x1,
+ kNumber = 0x3,
+ kString = 0x4,
rmcilroy 2016/10/04 08:05:32 This needs to keep the or-combining from kNumber->
Leszek Swirski 2016/10/04 08:30:40 Should it? or-combining kNumber and kString should
Leszek Swirski 2016/10/04 08:49:59 Never mind, Mythri explained f2f that number is a
+ kAny = 0xF
+ };
};
// TODO(epertoso): consider unifying this with BinaryOperationFeedback.
« src/code-stubs.cc ('K') | « src/code-stubs.cc ('k') | src/type-feedback-vector-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698