| 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 "hydrogen-types.h" | 5 #include "src/hydrogen-types.h" |
| 6 | 6 |
| 7 #include "types-inl.h" | 7 #include "src/types-inl.h" |
| 8 | 8 |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 template <class T> | 14 template <class T> |
| 15 HType HType::FromType(typename T::TypeHandle type) { | 15 HType HType::FromType(typename T::TypeHandle type) { |
| 16 if (T::Any()->Is(type)) return HType::Any(); | 16 if (T::Any()->Is(type)) return HType::Any(); |
| 17 if (type->Is(T::None())) return HType::None(); | 17 if (type->Is(T::None())) return HType::None(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 switch (kind_) { | 58 switch (kind_) { |
| 59 #define DEFINE_CASE(Name, mask) case k##Name: return #Name; | 59 #define DEFINE_CASE(Name, mask) case k##Name: return #Name; |
| 60 HTYPE_LIST(DEFINE_CASE) | 60 HTYPE_LIST(DEFINE_CASE) |
| 61 #undef DEFINE_CASE | 61 #undef DEFINE_CASE |
| 62 } | 62 } |
| 63 UNREACHABLE(); | 63 UNREACHABLE(); |
| 64 return NULL; | 64 return NULL; |
| 65 } | 65 } |
| 66 | 66 |
| 67 } } // namespace v8::internal | 67 } } // namespace v8::internal |
| OLD | NEW |