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/crankshaft/hydrogen-types.h" | 5 #include "src/crankshaft/hydrogen-types.h" |
6 | 6 |
| 7 #include "src/field-type.h" |
7 #include "src/handles-inl.h" | 8 #include "src/handles-inl.h" |
8 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 | 13 |
13 // static | 14 // static |
14 HType HType::FromType(Type* type) { | 15 HType HType::FromType(Type* type) { |
15 if (Type::Any()->Is(type)) return HType::Any(); | 16 if (Type::Any()->Is(type)) return HType::Any(); |
16 if (!type->IsInhabited()) return HType::None(); | 17 if (!type->IsInhabited()) return HType::None(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 return os << #Name; | 59 return os << #Name; |
59 HTYPE_LIST(DEFINE_CASE) | 60 HTYPE_LIST(DEFINE_CASE) |
60 #undef DEFINE_CASE | 61 #undef DEFINE_CASE |
61 } | 62 } |
62 UNREACHABLE(); | 63 UNREACHABLE(); |
63 return os; | 64 return os; |
64 } | 65 } |
65 | 66 |
66 } // namespace internal | 67 } // namespace internal |
67 } // namespace v8 | 68 } // namespace v8 |
OLD | NEW |