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/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 | 1172 |
1173 | 1173 |
1174 // JS object operators. | 1174 // JS object operators. |
1175 | 1175 |
1176 | 1176 |
1177 Bounds Typer::Visitor::TypeJSCreate(Node* node) { | 1177 Bounds Typer::Visitor::TypeJSCreate(Node* node) { |
1178 return Bounds(Type::None(), Type::Object()); | 1178 return Bounds(Type::None(), Type::Object()); |
1179 } | 1179 } |
1180 | 1180 |
1181 | 1181 |
| 1182 Bounds Typer::Visitor::TypeJSCreateArguments(Node* node) { |
| 1183 return Bounds(Type::None(), Type::OtherObject()); |
| 1184 } |
| 1185 |
| 1186 |
1182 Bounds Typer::Visitor::TypeJSCreateClosure(Node* node) { | 1187 Bounds Typer::Visitor::TypeJSCreateClosure(Node* node) { |
1183 return Bounds(Type::None(), Type::OtherObject()); | 1188 return Bounds(Type::None(), Type::OtherObject()); |
1184 } | 1189 } |
1185 | 1190 |
1186 | 1191 |
1187 Bounds Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { | 1192 Bounds Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { |
1188 return Bounds(Type::None(), Type::OtherObject()); | 1193 return Bounds(Type::None(), Type::OtherObject()); |
1189 } | 1194 } |
1190 | 1195 |
1191 | 1196 |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 } | 2300 } |
2296 if (Type::IsInteger(*value)) { | 2301 if (Type::IsInteger(*value)) { |
2297 return Type::Range(value->Number(), value->Number(), zone()); | 2302 return Type::Range(value->Number(), value->Number(), zone()); |
2298 } | 2303 } |
2299 return Type::Constant(value, zone()); | 2304 return Type::Constant(value, zone()); |
2300 } | 2305 } |
2301 | 2306 |
2302 } // namespace compiler | 2307 } // namespace compiler |
2303 } // namespace internal | 2308 } // namespace internal |
2304 } // namespace v8 | 2309 } // namespace v8 |
OLD | NEW |