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

Unified Diff: src/ic/ic-state.h

Issue 2221833002: [Interpreter] Collect type feedback for subtract operation and pass it to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/ic/ic-state.h
diff --git a/src/ic/ic-state.h b/src/ic/ic-state.h
index b12b17d3e20b2eb3a04cecbc27189ceed5a1ffb3..ab2458fa46cc39cfc91e6a1ec7f1778553086a16 100644
--- a/src/ic/ic-state.h
+++ b/src/ic/ic-state.h
@@ -253,6 +253,15 @@ class StoreICState final BASE_EMBEDDED {
const ExtraICState state_;
};
+// TODO(mythria): Move this to a different header that is accessible from
+// code-stub and bytecode-graph-builder.
Benedikt Meurer 2016/08/08 04:56:14 I'd rather use a very simple enum to encode the la
mythria 2016/08/08 07:17:36 Thanks for the detailed comment Benedikt. Done.
+class BinaryOpTypeFeedback {
+ public:
+ class SmiType : public BitField8<int, 0, 1> {};
+ class NumberType : public BitField8<int, SmiType::kNext, 1> {};
+ class AnyType : public BitField8<int, NumberType::kNext, 1> {};
+};
mythria 2016/08/08 04:33:56 I am not sure where is the right place to add this
Benedikt Meurer 2016/08/08 04:56:13 Please move it to globals.h for now.
mythria 2016/08/08 07:17:36 Done.
+
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698