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/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 return nullptr; | 712 return nullptr; |
713 } | 713 } |
714 | 714 |
715 Type* Typer::Visitor::TypeLoopExitValue(Node* node) { return Operand(node, 0); } | 715 Type* Typer::Visitor::TypeLoopExitValue(Node* node) { return Operand(node, 0); } |
716 | 716 |
717 Type* Typer::Visitor::TypeLoopExitEffect(Node* node) { | 717 Type* Typer::Visitor::TypeLoopExitEffect(Node* node) { |
718 UNREACHABLE(); | 718 UNREACHABLE(); |
719 return nullptr; | 719 return nullptr; |
720 } | 720 } |
721 | 721 |
722 Type* Typer::Visitor::TypeEnsureWritableFastElements(Node* node) { | |
723 return Operand(node, 1); | |
724 } | |
725 | |
726 Type* Typer::Visitor::TypeTransitionElementsKind(Node* node) { | 722 Type* Typer::Visitor::TypeTransitionElementsKind(Node* node) { |
727 UNREACHABLE(); | 723 UNREACHABLE(); |
728 return nullptr; | 724 return nullptr; |
729 } | 725 } |
730 | 726 |
731 Type* Typer::Visitor::TypeCheckpoint(Node* node) { | 727 Type* Typer::Visitor::TypeCheckpoint(Node* node) { |
732 UNREACHABLE(); | 728 UNREACHABLE(); |
733 return nullptr; | 729 return nullptr; |
734 } | 730 } |
735 | 731 |
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2296 } | 2292 } |
2297 if (Type::IsInteger(*value)) { | 2293 if (Type::IsInteger(*value)) { |
2298 return Type::Range(value->Number(), value->Number(), zone()); | 2294 return Type::Range(value->Number(), value->Number(), zone()); |
2299 } | 2295 } |
2300 return Type::Constant(value, zone()); | 2296 return Type::Constant(value, zone()); |
2301 } | 2297 } |
2302 | 2298 |
2303 } // namespace compiler | 2299 } // namespace compiler |
2304 } // namespace internal | 2300 } // namespace internal |
2305 } // namespace v8 | 2301 } // namespace v8 |
OLD | NEW |