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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 case CreateArgumentsType::kMappedArguments: | 1109 case CreateArgumentsType::kMappedArguments: |
1110 case CreateArgumentsType::kUnmappedArguments: | 1110 case CreateArgumentsType::kUnmappedArguments: |
1111 return Type::OtherObject(); | 1111 return Type::OtherObject(); |
1112 } | 1112 } |
1113 UNREACHABLE(); | 1113 UNREACHABLE(); |
1114 return nullptr; | 1114 return nullptr; |
1115 } | 1115 } |
1116 | 1116 |
1117 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { return Type::Array(); } | 1117 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { return Type::Array(); } |
1118 | 1118 |
| 1119 Type* Typer::Visitor::TypeJSCreateGeneratorObject(Node* node) { |
| 1120 return Type::OtherObject(); |
| 1121 } |
| 1122 |
1119 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) { | 1123 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) { |
1120 return Type::Function(); | 1124 return Type::Function(); |
1121 } | 1125 } |
1122 | 1126 |
1123 | 1127 |
1124 Type* Typer::Visitor::TypeJSCreateIterResultObject(Node* node) { | 1128 Type* Typer::Visitor::TypeJSCreateIterResultObject(Node* node) { |
1125 return Type::OtherObject(); | 1129 return Type::OtherObject(); |
1126 } | 1130 } |
1127 | 1131 |
1128 Type* Typer::Visitor::TypeJSCreateKeyValueArray(Node* node) { | 1132 Type* Typer::Visitor::TypeJSCreateKeyValueArray(Node* node) { |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1994 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1991 if (Type::IsInteger(*value)) { | 1995 if (Type::IsInteger(*value)) { |
1992 return Type::Range(value->Number(), value->Number(), zone()); | 1996 return Type::Range(value->Number(), value->Number(), zone()); |
1993 } | 1997 } |
1994 return Type::NewConstant(value, zone()); | 1998 return Type::NewConstant(value, zone()); |
1995 } | 1999 } |
1996 | 2000 |
1997 } // namespace compiler | 2001 } // namespace compiler |
1998 } // namespace internal | 2002 } // namespace internal |
1999 } // namespace v8 | 2003 } // namespace v8 |
OLD | NEW |