OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/hydrogen-types.h" | 5 #include "src/hydrogen-types.h" |
6 | 6 |
| 7 #include "src/ostreams.h" |
7 #include "src/types-inl.h" | 8 #include "src/types-inl.h" |
8 | 9 |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 | 13 |
13 // static | 14 // static |
14 template <class T> | 15 template <class T> |
15 HType HType::FromType(typename T::TypeHandle type) { | 16 HType HType::FromType(typename T::TypeHandle type) { |
16 if (T::Any()->Is(type)) return HType::Any(); | 17 if (T::Any()->Is(type)) return HType::Any(); |
(...skipping 43 matching lines...) Loading... |
60 case HType::k##Name: \ | 61 case HType::k##Name: \ |
61 return os << #Name; | 62 return os << #Name; |
62 HTYPE_LIST(DEFINE_CASE) | 63 HTYPE_LIST(DEFINE_CASE) |
63 #undef DEFINE_CASE | 64 #undef DEFINE_CASE |
64 } | 65 } |
65 UNREACHABLE(); | 66 UNREACHABLE(); |
66 return os; | 67 return os; |
67 } | 68 } |
68 | 69 |
69 } } // namespace v8::internal | 70 } } // namespace v8::internal |
OLD | NEW |