OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/crankshaft/hydrogen-instructions.h" | 5 #include "src/crankshaft/hydrogen-instructions.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/safe_math.h" | 8 #include "src/base/safe_math.h" |
9 #include "src/crankshaft/hydrogen-infer-representation.h" | 9 #include "src/crankshaft/hydrogen-infer-representation.h" |
10 #include "src/double.h" | 10 #include "src/double.h" |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 case HValue::kAbnormalExit: | 769 case HValue::kAbnormalExit: |
770 case HValue::kAccessArgumentsAt: | 770 case HValue::kAccessArgumentsAt: |
771 case HValue::kAllocate: | 771 case HValue::kAllocate: |
772 case HValue::kArgumentsElements: | 772 case HValue::kArgumentsElements: |
773 case HValue::kArgumentsLength: | 773 case HValue::kArgumentsLength: |
774 case HValue::kArgumentsObject: | 774 case HValue::kArgumentsObject: |
775 case HValue::kBlockEntry: | 775 case HValue::kBlockEntry: |
776 case HValue::kBoundsCheckBaseIndexInformation: | 776 case HValue::kBoundsCheckBaseIndexInformation: |
777 case HValue::kCallFunction: | 777 case HValue::kCallFunction: |
778 case HValue::kCallNewArray: | 778 case HValue::kCallNewArray: |
779 case HValue::kCallStub: | |
780 case HValue::kCapturedObject: | 779 case HValue::kCapturedObject: |
781 case HValue::kClassOfTestAndBranch: | 780 case HValue::kClassOfTestAndBranch: |
782 case HValue::kCompareGeneric: | 781 case HValue::kCompareGeneric: |
783 case HValue::kCompareHoleAndBranch: | 782 case HValue::kCompareHoleAndBranch: |
784 case HValue::kCompareMap: | 783 case HValue::kCompareMap: |
785 case HValue::kCompareNumericAndBranch: | 784 case HValue::kCompareNumericAndBranch: |
786 case HValue::kCompareObjectEqAndBranch: | 785 case HValue::kCompareObjectEqAndBranch: |
787 case HValue::kConstant: | 786 case HValue::kConstant: |
788 case HValue::kConstructDouble: | 787 case HValue::kConstructDouble: |
789 case HValue::kContext: | 788 case HValue::kContext: |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 } | 1722 } |
1724 | 1723 |
1725 | 1724 |
1726 std::ostream& HCheckInstanceType::PrintDataTo( | 1725 std::ostream& HCheckInstanceType::PrintDataTo( |
1727 std::ostream& os) const { // NOLINT | 1726 std::ostream& os) const { // NOLINT |
1728 os << GetCheckName() << " "; | 1727 os << GetCheckName() << " "; |
1729 return HUnaryOperation::PrintDataTo(os); | 1728 return HUnaryOperation::PrintDataTo(os); |
1730 } | 1729 } |
1731 | 1730 |
1732 | 1731 |
1733 std::ostream& HCallStub::PrintDataTo(std::ostream& os) const { // NOLINT | |
1734 os << CodeStub::MajorName(major_key_) << " "; | |
1735 return HUnaryCall::PrintDataTo(os); | |
1736 } | |
1737 | |
1738 | |
1739 std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT | 1732 std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT |
1740 const char* type = "expression"; | 1733 const char* type = "expression"; |
1741 if (environment_->is_local_index(index_)) type = "local"; | 1734 if (environment_->is_local_index(index_)) type = "local"; |
1742 if (environment_->is_special_index(index_)) type = "special"; | 1735 if (environment_->is_special_index(index_)) type = "special"; |
1743 if (environment_->is_parameter_index(index_)) type = "parameter"; | 1736 if (environment_->is_parameter_index(index_)) type = "parameter"; |
1744 return os << type << " @ " << index_; | 1737 return os << type << " @ " << index_; |
1745 } | 1738 } |
1746 | 1739 |
1747 | 1740 |
1748 std::ostream& HInstanceOf::PrintDataTo(std::ostream& os) const { // NOLINT | 1741 std::ostream& HInstanceOf::PrintDataTo(std::ostream& os) const { // NOLINT |
(...skipping 2908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4657 case HObjectAccess::kExternalMemory: | 4650 case HObjectAccess::kExternalMemory: |
4658 os << "[external-memory]"; | 4651 os << "[external-memory]"; |
4659 break; | 4652 break; |
4660 } | 4653 } |
4661 | 4654 |
4662 return os << "@" << access.offset(); | 4655 return os << "@" << access.offset(); |
4663 } | 4656 } |
4664 | 4657 |
4665 } // namespace internal | 4658 } // namespace internal |
4666 } // namespace v8 | 4659 } // namespace v8 |
OLD | NEW |