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/base/flags.h" | 5 #include "src/base/flags.h" |
6 #include "src/bootstrapper.h" | 6 #include "src/bootstrapper.h" |
7 #include "src/compiler/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 Bounds Typer::Visitor::TypeJSCreate(Node* node) { | 1309 Bounds Typer::Visitor::TypeJSCreate(Node* node) { |
1310 return Bounds(Type::None(), Type::Object()); | 1310 return Bounds(Type::None(), Type::Object()); |
1311 } | 1311 } |
1312 | 1312 |
1313 | 1313 |
1314 Bounds Typer::Visitor::TypeJSCreateClosure(Node* node) { | 1314 Bounds Typer::Visitor::TypeJSCreateClosure(Node* node) { |
1315 return Bounds(Type::None(), Type::OtherObject()); | 1315 return Bounds(Type::None(), Type::OtherObject()); |
1316 } | 1316 } |
1317 | 1317 |
1318 | 1318 |
| 1319 Bounds Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { |
| 1320 return Bounds(Type::None(), Type::OtherObject()); |
| 1321 } |
| 1322 |
| 1323 |
| 1324 Bounds Typer::Visitor::TypeJSCreateLiteralObject(Node* node) { |
| 1325 return Bounds(Type::None(), Type::OtherObject()); |
| 1326 } |
| 1327 |
| 1328 |
1319 Type* Typer::Visitor::JSLoadPropertyTyper(Type* object, Type* name, Typer* t) { | 1329 Type* Typer::Visitor::JSLoadPropertyTyper(Type* object, Type* name, Typer* t) { |
1320 // TODO(rossberg): Use range types and sized array types to filter undefined. | 1330 // TODO(rossberg): Use range types and sized array types to filter undefined. |
1321 if (object->IsArray() && name->Is(Type::Integral32())) { | 1331 if (object->IsArray() && name->Is(Type::Integral32())) { |
1322 return Type::Union( | 1332 return Type::Union( |
1323 object->AsArray()->Element(), Type::Undefined(), t->zone()); | 1333 object->AsArray()->Element(), Type::Undefined(), t->zone()); |
1324 } | 1334 } |
1325 return Type::Any(); | 1335 return Type::Any(); |
1326 } | 1336 } |
1327 | 1337 |
1328 | 1338 |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2351 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2361 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2352 #undef TYPED_ARRAY_CASE | 2362 #undef TYPED_ARRAY_CASE |
2353 } | 2363 } |
2354 } | 2364 } |
2355 return Type::Constant(value, zone()); | 2365 return Type::Constant(value, zone()); |
2356 } | 2366 } |
2357 | 2367 |
2358 } // namespace compiler | 2368 } // namespace compiler |
2359 } // namespace internal | 2369 } // namespace internal |
2360 } // namespace v8 | 2370 } // namespace v8 |
OLD | NEW |