| 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/compiler/typer.h" | 5 #include "src/compiler/typer.h" |
| 6 | 6 |
| 7 #include "src/base/flags.h" | 7 #include "src/base/flags.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } | 2112 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } |
| 2113 | 2113 |
| 2114 | 2114 |
| 2115 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } | 2115 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } |
| 2116 | 2116 |
| 2117 | 2117 |
| 2118 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { | 2118 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { |
| 2119 return Type::Integral32(); | 2119 return Type::Integral32(); |
| 2120 } | 2120 } |
| 2121 | 2121 |
| 2122 Type* Typer::Visitor::TypeWord16ReverseBytes(Node* node) { |
| 2123 return Type::Integral32(); |
| 2124 } |
| 2125 |
| 2126 Type* Typer::Visitor::TypeWord32ReverseBytes(Node* node) { |
| 2127 return Type::Integral32(); |
| 2128 } |
| 2122 | 2129 |
| 2123 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { | 2130 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { |
| 2124 return Type::Integral32(); | 2131 return Type::Integral32(); |
| 2125 } | 2132 } |
| 2126 | 2133 |
| 2127 | 2134 |
| 2128 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } | 2135 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } |
| 2129 | 2136 |
| 2130 | 2137 |
| 2131 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } | 2138 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2149 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } | 2156 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } |
| 2150 | 2157 |
| 2151 | 2158 |
| 2152 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } | 2159 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } |
| 2153 | 2160 |
| 2154 | 2161 |
| 2155 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { | 2162 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { |
| 2156 return Type::Internal(); | 2163 return Type::Internal(); |
| 2157 } | 2164 } |
| 2158 | 2165 |
| 2166 Type* Typer::Visitor::TypeWord64ReverseBytes(Node* node) { |
| 2167 return Type::Internal(); |
| 2168 } |
| 2159 | 2169 |
| 2160 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } | 2170 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } |
| 2161 | 2171 |
| 2162 | 2172 |
| 2163 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } | 2173 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } |
| 2164 | 2174 |
| 2165 | 2175 |
| 2166 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } | 2176 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } |
| 2167 | 2177 |
| 2168 | 2178 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 } | 2656 } |
| 2647 if (Type::IsInteger(*value)) { | 2657 if (Type::IsInteger(*value)) { |
| 2648 return Type::Range(value->Number(), value->Number(), zone()); | 2658 return Type::Range(value->Number(), value->Number(), zone()); |
| 2649 } | 2659 } |
| 2650 return Type::Constant(value, zone()); | 2660 return Type::Constant(value, zone()); |
| 2651 } | 2661 } |
| 2652 | 2662 |
| 2653 } // namespace compiler | 2663 } // namespace compiler |
| 2654 } // namespace internal | 2664 } // namespace internal |
| 2655 } // namespace v8 | 2665 } // namespace v8 |
| OLD | NEW |