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 <iomanip> | 7 #include <iomanip> |
8 | 8 |
9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 | 719 |
720 Type* Typer::Visitor::TypeLoopExitEffect(Node* node) { | 720 Type* Typer::Visitor::TypeLoopExitEffect(Node* node) { |
721 UNREACHABLE(); | 721 UNREACHABLE(); |
722 return nullptr; | 722 return nullptr; |
723 } | 723 } |
724 | 724 |
725 Type* Typer::Visitor::TypeEnsureWritableFastElements(Node* node) { | 725 Type* Typer::Visitor::TypeEnsureWritableFastElements(Node* node) { |
726 return Operand(node, 1); | 726 return Operand(node, 1); |
727 } | 727 } |
728 | 728 |
| 729 Type* Typer::Visitor::TypeMaybeGrowFastElements(Node* node) { |
| 730 return Operand(node, 1); |
| 731 } |
| 732 |
729 Type* Typer::Visitor::TypeTransitionElementsKind(Node* node) { | 733 Type* Typer::Visitor::TypeTransitionElementsKind(Node* node) { |
730 UNREACHABLE(); | 734 UNREACHABLE(); |
731 return nullptr; | 735 return nullptr; |
732 } | 736 } |
733 | 737 |
734 Type* Typer::Visitor::TypeCheckpoint(Node* node) { | 738 Type* Typer::Visitor::TypeCheckpoint(Node* node) { |
735 UNREACHABLE(); | 739 UNREACHABLE(); |
736 return nullptr; | 740 return nullptr; |
737 } | 741 } |
738 | 742 |
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2304 } | 2308 } |
2305 if (Type::IsInteger(*value)) { | 2309 if (Type::IsInteger(*value)) { |
2306 return Type::Range(value->Number(), value->Number(), zone()); | 2310 return Type::Range(value->Number(), value->Number(), zone()); |
2307 } | 2311 } |
2308 return Type::Constant(value, zone()); | 2312 return Type::Constant(value, zone()); |
2309 } | 2313 } |
2310 | 2314 |
2311 } // namespace compiler | 2315 } // namespace compiler |
2312 } // namespace internal | 2316 } // namespace internal |
2313 } // namespace v8 | 2317 } // namespace v8 |
OLD | NEW |