Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: src/compiler/typer.cc

Issue 2277283002: Reland of [turbofan] Insert dummy values when changing from None type. (Closed)
Patch Set: Workaround for uninhabited representations. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 } 1973 }
1974 1974
1975 Type* Typer::Visitor::TypeChangeUint32ToFloat64(Node* node) { 1975 Type* Typer::Visitor::TypeChangeUint32ToFloat64(Node* node) {
1976 return Type::Intersect(Type::Unsigned32(), Type::UntaggedFloat64(), zone()); 1976 return Type::Intersect(Type::Unsigned32(), Type::UntaggedFloat64(), zone());
1977 } 1977 }
1978 1978
1979 Type* Typer::Visitor::TypeChangeUint32ToUint64(Node* node) { 1979 Type* Typer::Visitor::TypeChangeUint32ToUint64(Node* node) {
1980 return Type::Internal(); 1980 return Type::Internal();
1981 } 1981 }
1982 1982
1983 Type* Typer::Visitor::TypeImpossibleToWord32(Node* node) {
1984 return Type::None();
1985 }
1986
1987 Type* Typer::Visitor::TypeImpossibleToWord64(Node* node) {
1988 return Type::None();
1989 }
1990
1991 Type* Typer::Visitor::TypeImpossibleToFloat32(Node* node) {
1992 return Type::None();
1993 }
1994
1995 Type* Typer::Visitor::TypeImpossibleToFloat64(Node* node) {
1996 return Type::None();
1997 }
1998
1999 Type* Typer::Visitor::TypeImpossibleToTagged(Node* node) {
2000 return Type::None();
2001 }
2002
2003 Type* Typer::Visitor::TypeImpossibleToBit(Node* node) { return Type::None(); }
2004
2005 Type* Typer::Visitor::TypeTruncateFloat64ToFloat32(Node* node) { 1983 Type* Typer::Visitor::TypeTruncateFloat64ToFloat32(Node* node) {
2006 return Type::Intersect(Type::Number(), Type::UntaggedFloat32(), zone()); 1984 return Type::Intersect(Type::Number(), Type::UntaggedFloat32(), zone());
2007 } 1985 }
2008 1986
2009 Type* Typer::Visitor::TypeTruncateFloat64ToWord32(Node* node) { 1987 Type* Typer::Visitor::TypeTruncateFloat64ToWord32(Node* node) {
2010 return Type::Intersect(Type::Integral32(), Type::UntaggedIntegral32(), 1988 return Type::Intersect(Type::Integral32(), Type::UntaggedIntegral32(),
2011 zone()); 1989 zone());
2012 } 1990 }
2013 1991
2014 Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) { 1992 Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2343 } 2321 }
2344 if (Type::IsInteger(*value)) { 2322 if (Type::IsInteger(*value)) {
2345 return Type::Range(value->Number(), value->Number(), zone()); 2323 return Type::Range(value->Number(), value->Number(), zone());
2346 } 2324 }
2347 return Type::Constant(value, zone()); 2325 return Type::Constant(value, zone());
2348 } 2326 }
2349 2327
2350 } // namespace compiler 2328 } // namespace compiler
2351 } // namespace internal 2329 } // namespace internal
2352 } // namespace v8 2330 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698