| 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 <iomanip> | 7 #include <iomanip> |
| 8 | 8 |
| 9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 } | 1993 } |
| 1994 | 1994 |
| 1995 Type* Typer::Visitor::TypeImpossibleToFloat64(Node* node) { | 1995 Type* Typer::Visitor::TypeImpossibleToFloat64(Node* node) { |
| 1996 return Type::None(); | 1996 return Type::None(); |
| 1997 } | 1997 } |
| 1998 | 1998 |
| 1999 Type* Typer::Visitor::TypeImpossibleToTagged(Node* node) { | 1999 Type* Typer::Visitor::TypeImpossibleToTagged(Node* node) { |
| 2000 return Type::None(); | 2000 return Type::None(); |
| 2001 } | 2001 } |
| 2002 | 2002 |
| 2003 Type* Typer::Visitor::TypeImpossibleToTaggedSigned(Node* node) { |
| 2004 return Type::None(); |
| 2005 } |
| 2006 |
| 2007 Type* Typer::Visitor::TypeImpossibleToTaggedPointer(Node* node) { |
| 2008 return Type::None(); |
| 2009 } |
| 2010 |
| 2003 Type* Typer::Visitor::TypeImpossibleToBit(Node* node) { return Type::None(); } | 2011 Type* Typer::Visitor::TypeImpossibleToBit(Node* node) { return Type::None(); } |
| 2004 | 2012 |
| 2005 Type* Typer::Visitor::TypeTruncateFloat64ToFloat32(Node* node) { | 2013 Type* Typer::Visitor::TypeTruncateFloat64ToFloat32(Node* node) { |
| 2006 return Type::Intersect(Type::Number(), Type::UntaggedFloat32(), zone()); | 2014 return Type::Intersect(Type::Number(), Type::UntaggedFloat32(), zone()); |
| 2007 } | 2015 } |
| 2008 | 2016 |
| 2009 Type* Typer::Visitor::TypeTruncateFloat64ToWord32(Node* node) { | 2017 Type* Typer::Visitor::TypeTruncateFloat64ToWord32(Node* node) { |
| 2010 return Type::Intersect(Type::Integral32(), Type::UntaggedIntegral32(), | 2018 return Type::Intersect(Type::Integral32(), Type::UntaggedIntegral32(), |
| 2011 zone()); | 2019 zone()); |
| 2012 } | 2020 } |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2340 } | 2348 } |
| 2341 if (Type::IsInteger(*value)) { | 2349 if (Type::IsInteger(*value)) { |
| 2342 return Type::Range(value->Number(), value->Number(), zone()); | 2350 return Type::Range(value->Number(), value->Number(), zone()); |
| 2343 } | 2351 } |
| 2344 return Type::Constant(value, zone()); | 2352 return Type::Constant(value, zone()); |
| 2345 } | 2353 } |
| 2346 | 2354 |
| 2347 } // namespace compiler | 2355 } // namespace compiler |
| 2348 } // namespace internal | 2356 } // namespace internal |
| 2349 } // namespace v8 | 2357 } // namespace v8 |
| OLD | NEW |