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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 return nullptr; | 699 return nullptr; |
700 } | 700 } |
701 | 701 |
702 | 702 |
703 Type* Typer::Visitor::TypeGuard(Node* node) { | 703 Type* Typer::Visitor::TypeGuard(Node* node) { |
704 Type* input_type = Operand(node, 0); | 704 Type* input_type = Operand(node, 0); |
705 Type* guard_type = OpParameter<Type*>(node); | 705 Type* guard_type = OpParameter<Type*>(node); |
706 return Type::Intersect(input_type, guard_type, zone()); | 706 return Type::Intersect(input_type, guard_type, zone()); |
707 } | 707 } |
708 | 708 |
| 709 Type* Typer::Visitor::TypeCheckPoint(Node* node) { |
| 710 UNREACHABLE(); |
| 711 return nullptr; |
| 712 } |
709 | 713 |
710 Type* Typer::Visitor::TypeBeginRegion(Node* node) { | 714 Type* Typer::Visitor::TypeBeginRegion(Node* node) { |
711 UNREACHABLE(); | 715 UNREACHABLE(); |
712 return nullptr; | 716 return nullptr; |
713 } | 717 } |
714 | 718 |
715 | 719 |
716 Type* Typer::Visitor::TypeFinishRegion(Node* node) { return Operand(node, 0); } | 720 Type* Typer::Visitor::TypeFinishRegion(Node* node) { return Operand(node, 0); } |
717 | 721 |
718 | 722 |
(...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2573 } | 2577 } |
2574 if (Type::IsInteger(*value)) { | 2578 if (Type::IsInteger(*value)) { |
2575 return Type::Range(value->Number(), value->Number(), zone()); | 2579 return Type::Range(value->Number(), value->Number(), zone()); |
2576 } | 2580 } |
2577 return Type::Constant(value, zone()); | 2581 return Type::Constant(value, zone()); |
2578 } | 2582 } |
2579 | 2583 |
2580 } // namespace compiler | 2584 } // namespace compiler |
2581 } // namespace internal | 2585 } // namespace internal |
2582 } // namespace v8 | 2586 } // namespace v8 |
OLD | NEW |