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/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 return Type::Any(); | 1430 return Type::Any(); |
1431 } | 1431 } |
1432 | 1432 |
1433 | 1433 |
1434 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { | 1434 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { |
1435 UNREACHABLE(); | 1435 UNREACHABLE(); |
1436 return nullptr; | 1436 return nullptr; |
1437 } | 1437 } |
1438 | 1438 |
1439 | 1439 |
1440 Type* Typer::Visitor::TypeJSLoadDynamic(Node* node) { return Type::Any(); } | |
1441 | |
1442 | |
1443 Type* Typer::Visitor::WrapContextTypeForInput(Node* node) { | 1440 Type* Typer::Visitor::WrapContextTypeForInput(Node* node) { |
1444 Type* outer = TypeOrNone(NodeProperties::GetContextInput(node)); | 1441 Type* outer = TypeOrNone(NodeProperties::GetContextInput(node)); |
1445 if (outer->Is(Type::None())) { | 1442 if (outer->Is(Type::None())) { |
1446 return Type::None(); | 1443 return Type::None(); |
1447 } else { | 1444 } else { |
1448 DCHECK(outer->Maybe(Type::Internal())); | 1445 DCHECK(outer->Maybe(Type::Internal())); |
1449 return Type::Context(outer, zone()); | 1446 return Type::Context(outer, zone()); |
1450 } | 1447 } |
1451 } | 1448 } |
1452 | 1449 |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2426 } | 2423 } |
2427 if (Type::IsInteger(*value)) { | 2424 if (Type::IsInteger(*value)) { |
2428 return Type::Range(value->Number(), value->Number(), zone()); | 2425 return Type::Range(value->Number(), value->Number(), zone()); |
2429 } | 2426 } |
2430 return Type::Constant(value, zone()); | 2427 return Type::Constant(value, zone()); |
2431 } | 2428 } |
2432 | 2429 |
2433 } // namespace compiler | 2430 } // namespace compiler |
2434 } // namespace internal | 2431 } // namespace internal |
2435 } // namespace v8 | 2432 } // namespace v8 |
OLD | NEW |