Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / v8 / src / hydrogen-types.h
index 32f1d5e..70870dd 100644 (file)
@@ -6,6 +6,7 @@
 #define HYDROGEN_TYPES_H_
 
 #include <climits>
+#include <iosfwd>
 
 #include "src/base/macros.h"
 
@@ -15,8 +16,6 @@ namespace internal {
 // Forward declarations.
 template <typename T> class Handle;
 class Object;
-class OStream;
-class Representation;
 
 #define HTYPE_LIST(V)                                 \
   V(Any, 0x0)              /* 0000 0000 0000 0000 */  \
@@ -28,15 +27,12 @@ class Representation;
   V(HeapPrimitive, 0x25)   /* 0000 0000 0010 0101 */  \
   V(Null, 0x27)            /* 0000 0000 0010 0111 */  \
   V(HeapNumber, 0x2d)      /* 0000 0000 0010 1101 */  \
-  V(Float32x4, 0x65)       /* 0000 0000 0110 0101 */  \
-  V(Float64x2, 0xa5)       /* 0000 0000 1010 0101 */  \
-  V(Int32x4, 0x125)        /* 0000 0001 0010 0101 */  \
-  V(String, 0x225)         /* 0000 0010 0010 0101 */  \
-  V(Boolean, 0x425)        /* 0000 0100 0010 0101 */  \
-  V(Undefined, 0x825)      /* 0000 1000 0010 0101 */  \
-  V(JSObject, 0x1021)      /* 0001 0000 0010 0001 */  \
-  V(JSArray, 0x3021)       /* 0011 0000 0010 0001 */  \
-  V(None, 0x3fff)          /* 0011 1111 1111 1111 */
+  V(String, 0x65)          /* 0000 0000 0110 0101 */  \
+  V(Boolean, 0xa5)         /* 0000 0000 1010 0101 */  \
+  V(Undefined, 0x125)      /* 0000 0001 0010 0101 */  \
+  V(JSObject, 0x221)       /* 0000 0010 0010 0001 */  \
+  V(JSArray, 0x621)        /* 0000 0110 0010 0001 */  \
+  V(None, 0x7ff)           /* 0000 0111 1111 1111 */
 
 class HType FINAL {
  public:
@@ -68,9 +64,8 @@ class HType FINAL {
   template <class T>
   static HType FromType(typename T::TypeHandle type) WARN_UNUSED_RESULT;
   static HType FromValue(Handle<Object> value) WARN_UNUSED_RESULT;
-  static HType FromRepresentation(Representation representation);
 
-  friend OStream& operator<<(OStream& os, const HType& t);
+  friend std::ostream& operator<<(std::ostream& os, const HType& t);
 
  private:
   enum Kind {
@@ -89,7 +84,7 @@ class HType FINAL {
 };
 
 
-OStream& operator<<(OStream& os, const HType& t);
+std::ostream& operator<<(std::ostream& os, const HType& t);
 } }  // namespace v8::internal
 
 #endif  // HYDROGEN_TYPES_H_