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/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } | 2063 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } |
2064 | 2064 |
2065 | 2065 |
2066 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } | 2066 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } |
2067 | 2067 |
2068 | 2068 |
2069 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { | 2069 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { |
2070 return Type::Integral32(); | 2070 return Type::Integral32(); |
2071 } | 2071 } |
2072 | 2072 |
| 2073 Type* Typer::Visitor::TypeWord32ReverseBytes(Node* node) { |
| 2074 return Type::Integral32(); |
| 2075 } |
2073 | 2076 |
2074 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { | 2077 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { |
2075 return Type::Integral32(); | 2078 return Type::Integral32(); |
2076 } | 2079 } |
2077 | 2080 |
2078 | 2081 |
2079 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } | 2082 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } |
2080 | 2083 |
2081 | 2084 |
2082 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } | 2085 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } |
(...skipping 17 matching lines...) Expand all Loading... |
2100 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } | 2103 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } |
2101 | 2104 |
2102 | 2105 |
2103 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } | 2106 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } |
2104 | 2107 |
2105 | 2108 |
2106 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { | 2109 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { |
2107 return Type::Internal(); | 2110 return Type::Internal(); |
2108 } | 2111 } |
2109 | 2112 |
| 2113 Type* Typer::Visitor::TypeWord64ReverseBytes(Node* node) { |
| 2114 return Type::Internal(); |
| 2115 } |
2110 | 2116 |
2111 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } | 2117 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } |
2112 | 2118 |
2113 | 2119 |
2114 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } | 2120 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } |
2115 | 2121 |
2116 | 2122 |
2117 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } | 2123 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } |
2118 | 2124 |
2119 | 2125 |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 } | 2669 } |
2664 if (Type::IsInteger(*value)) { | 2670 if (Type::IsInteger(*value)) { |
2665 return Type::Range(value->Number(), value->Number(), zone()); | 2671 return Type::Range(value->Number(), value->Number(), zone()); |
2666 } | 2672 } |
2667 return Type::Constant(value, zone()); | 2673 return Type::Constant(value, zone()); |
2668 } | 2674 } |
2669 | 2675 |
2670 } // namespace compiler | 2676 } // namespace compiler |
2671 } // namespace internal | 2677 } // namespace internal |
2672 } // namespace v8 | 2678 } // namespace v8 |
OLD | NEW |