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 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1960 | 1960 |
1961 Type* Typer::Visitor::TypeWord32Equal(Node* node) { return Type::Boolean(); } | 1961 Type* Typer::Visitor::TypeWord32Equal(Node* node) { return Type::Boolean(); } |
1962 | 1962 |
1963 | 1963 |
1964 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } | 1964 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } |
1965 | 1965 |
1966 | 1966 |
1967 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } | 1967 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } |
1968 | 1968 |
1969 | 1969 |
| 1970 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { |
| 1971 return Type::Integral32(); |
| 1972 } |
| 1973 |
| 1974 |
1970 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { | 1975 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { |
1971 return Type::Integral32(); | 1976 return Type::Integral32(); |
1972 } | 1977 } |
1973 | 1978 |
1974 | 1979 |
1975 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } | 1980 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } |
1976 | 1981 |
1977 | 1982 |
1978 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } | 1983 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } |
1979 | 1984 |
(...skipping 12 matching lines...) Expand all Loading... |
1992 | 1997 |
1993 Type* Typer::Visitor::TypeWord64Ror(Node* node) { return Type::Internal(); } | 1998 Type* Typer::Visitor::TypeWord64Ror(Node* node) { return Type::Internal(); } |
1994 | 1999 |
1995 | 2000 |
1996 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } | 2001 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } |
1997 | 2002 |
1998 | 2003 |
1999 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } | 2004 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } |
2000 | 2005 |
2001 | 2006 |
| 2007 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { |
| 2008 return Type::Internal(); |
| 2009 } |
| 2010 |
| 2011 |
2002 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } | 2012 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } |
2003 | 2013 |
2004 | 2014 |
2005 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } | 2015 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } |
2006 | 2016 |
2007 | 2017 |
2008 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } | 2018 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } |
2009 | 2019 |
2010 | 2020 |
2011 Type* Typer::Visitor::TypeInt32AddWithOverflow(Node* node) { | 2021 Type* Typer::Visitor::TypeInt32AddWithOverflow(Node* node) { |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2430 } | 2440 } |
2431 if (Type::IsInteger(*value)) { | 2441 if (Type::IsInteger(*value)) { |
2432 return Type::Range(value->Number(), value->Number(), zone()); | 2442 return Type::Range(value->Number(), value->Number(), zone()); |
2433 } | 2443 } |
2434 return Type::Constant(value, zone()); | 2444 return Type::Constant(value, zone()); |
2435 } | 2445 } |
2436 | 2446 |
2437 } // namespace compiler | 2447 } // namespace compiler |
2438 } // namespace internal | 2448 } // namespace internal |
2439 } // namespace v8 | 2449 } // namespace v8 |
OLD | NEW |