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

Unified Diff: src/crankshaft/hydrogen-types.h

Issue 1636013002: Replace HeapType with a non-templated FieldType class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tracing of generalizations Created 4 years, 11 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/crankshaft/hydrogen-types.h
diff --git a/src/crankshaft/hydrogen-types.h b/src/crankshaft/hydrogen-types.h
index 87148ee4cd8b5f1503141fa541020c6504259b3f..0690ece34ff82db2a5203a5f99099b0764357ec1 100644
--- a/src/crankshaft/hydrogen-types.h
+++ b/src/crankshaft/hydrogen-types.h
@@ -9,12 +9,14 @@
#include <iosfwd>
#include "src/base/macros.h"
+#include "src/types.h"
namespace v8 {
namespace internal {
// Forward declarations.
template <typename T> class Handle;
+class FieldType;
class Object;
#define HTYPE_LIST(V) \
@@ -62,8 +64,9 @@ class HType final {
HTYPE_LIST(DECLARE_IS_TYPE)
#undef DECLARE_IS_TYPE
- template <class T>
- static HType FromType(typename T::TypeHandle type) WARN_UNUSED_RESULT;
+ static HType FromType(Type* type) WARN_UNUSED_RESULT;
+ static HType FromFieldType(Handle<FieldType> type,
+ Zone* temp_zone) WARN_UNUSED_RESULT;
static HType FromValue(Handle<Object> value) WARN_UNUSED_RESULT;
friend std::ostream& operator<<(std::ostream& os, const HType& t);

Powered by Google App Engine
This is Rietveld 408576698