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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 UNREACHABLE(); | 698 UNREACHABLE(); |
699 return nullptr; | 699 return nullptr; |
700 } | 700 } |
701 | 701 |
702 Type* Typer::Visitor::TypeTypeGuard(Node* node) { | 702 Type* Typer::Visitor::TypeTypeGuard(Node* node) { |
703 Type* input_type = Operand(node, 0); | 703 Type* input_type = Operand(node, 0); |
704 Type* guard_type = TypeOf(node->op()); | 704 Type* guard_type = TypeOf(node->op()); |
705 return Type::Intersect(input_type, guard_type, zone()); | 705 return Type::Intersect(input_type, guard_type, zone()); |
706 } | 706 } |
707 | 707 |
708 Type* Typer::Visitor::TypeCheckPoint(Node* node) { | 708 Type* Typer::Visitor::TypeCheckpoint(Node* node) { |
709 UNREACHABLE(); | 709 UNREACHABLE(); |
710 return nullptr; | 710 return nullptr; |
711 } | 711 } |
712 | 712 |
713 Type* Typer::Visitor::TypeBeginRegion(Node* node) { | 713 Type* Typer::Visitor::TypeBeginRegion(Node* node) { |
714 UNREACHABLE(); | 714 UNREACHABLE(); |
715 return nullptr; | 715 return nullptr; |
716 } | 716 } |
717 | 717 |
718 | 718 |
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2598 } | 2598 } |
2599 if (Type::IsInteger(*value)) { | 2599 if (Type::IsInteger(*value)) { |
2600 return Type::Range(value->Number(), value->Number(), zone()); | 2600 return Type::Range(value->Number(), value->Number(), zone()); |
2601 } | 2601 } |
2602 return Type::Constant(value, zone()); | 2602 return Type::Constant(value, zone()); |
2603 } | 2603 } |
2604 | 2604 |
2605 } // namespace compiler | 2605 } // namespace compiler |
2606 } // namespace internal | 2606 } // namespace internal |
2607 } // namespace v8 | 2607 } // namespace v8 |
OLD | NEW |