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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/double.h" | 8 #include "src/double.h" |
9 #include "src/factory.h" | 9 #include "src/factory.h" |
10 #include "src/hydrogen-infer-representation.h" | 10 #include "src/hydrogen-infer-representation.h" |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 case HValue::kAllocate: | 789 case HValue::kAllocate: |
790 case HValue::kArgumentsElements: | 790 case HValue::kArgumentsElements: |
791 case HValue::kArgumentsLength: | 791 case HValue::kArgumentsLength: |
792 case HValue::kArgumentsObject: | 792 case HValue::kArgumentsObject: |
793 case HValue::kBlockEntry: | 793 case HValue::kBlockEntry: |
794 case HValue::kBoundsCheckBaseIndexInformation: | 794 case HValue::kBoundsCheckBaseIndexInformation: |
795 case HValue::kCallFunction: | 795 case HValue::kCallFunction: |
796 case HValue::kCallNew: | 796 case HValue::kCallNew: |
797 case HValue::kCallNewArray: | 797 case HValue::kCallNewArray: |
798 case HValue::kCallStub: | 798 case HValue::kCallStub: |
799 case HValue::kCallWithDescriptor: | |
800 case HValue::kCapturedObject: | 799 case HValue::kCapturedObject: |
801 case HValue::kClassOfTestAndBranch: | 800 case HValue::kClassOfTestAndBranch: |
802 case HValue::kCompareGeneric: | 801 case HValue::kCompareGeneric: |
803 case HValue::kCompareHoleAndBranch: | 802 case HValue::kCompareHoleAndBranch: |
804 case HValue::kCompareMap: | 803 case HValue::kCompareMap: |
805 case HValue::kCompareMinusZeroAndBranch: | 804 case HValue::kCompareMinusZeroAndBranch: |
806 case HValue::kCompareNumericAndBranch: | 805 case HValue::kCompareNumericAndBranch: |
807 case HValue::kCompareObjectEqAndBranch: | 806 case HValue::kCompareObjectEqAndBranch: |
808 case HValue::kConstant: | 807 case HValue::kConstant: |
809 case HValue::kConstructDouble: | 808 case HValue::kConstructDouble: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 return false; | 855 return false; |
857 | 856 |
858 case HValue::kAdd: | 857 case HValue::kAdd: |
859 case HValue::kAllocateBlockContext: | 858 case HValue::kAllocateBlockContext: |
860 case HValue::kApplyArguments: | 859 case HValue::kApplyArguments: |
861 case HValue::kBitwise: | 860 case HValue::kBitwise: |
862 case HValue::kBoundsCheck: | 861 case HValue::kBoundsCheck: |
863 case HValue::kBranch: | 862 case HValue::kBranch: |
864 case HValue::kCallJSFunction: | 863 case HValue::kCallJSFunction: |
865 case HValue::kCallRuntime: | 864 case HValue::kCallRuntime: |
| 865 case HValue::kCallWithDescriptor: |
866 case HValue::kChange: | 866 case HValue::kChange: |
867 case HValue::kCheckHeapObject: | 867 case HValue::kCheckHeapObject: |
868 case HValue::kCheckInstanceType: | 868 case HValue::kCheckInstanceType: |
869 case HValue::kCheckMapValue: | 869 case HValue::kCheckMapValue: |
870 case HValue::kCheckMaps: | 870 case HValue::kCheckMaps: |
871 case HValue::kCheckSmi: | 871 case HValue::kCheckSmi: |
872 case HValue::kCheckValue: | 872 case HValue::kCheckValue: |
873 case HValue::kClampToUint8: | 873 case HValue::kClampToUint8: |
874 case HValue::kDateField: | 874 case HValue::kDateField: |
875 case HValue::kDeoptimize: | 875 case HValue::kDeoptimize: |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 return HUnaryOperation::PrintDataTo(os); | 1709 return HUnaryOperation::PrintDataTo(os); |
1710 } | 1710 } |
1711 | 1711 |
1712 | 1712 |
1713 std::ostream& HCallStub::PrintDataTo(std::ostream& os) const { // NOLINT | 1713 std::ostream& HCallStub::PrintDataTo(std::ostream& os) const { // NOLINT |
1714 os << CodeStub::MajorName(major_key_, false) << " "; | 1714 os << CodeStub::MajorName(major_key_, false) << " "; |
1715 return HUnaryCall::PrintDataTo(os); | 1715 return HUnaryCall::PrintDataTo(os); |
1716 } | 1716 } |
1717 | 1717 |
1718 | 1718 |
| 1719 Code::Flags HTailCallThroughMegamorphicCache::flags() const { |
| 1720 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( |
| 1721 Code::ComputeHandlerFlags(Code::LOAD_IC)); |
| 1722 return code_flags; |
| 1723 } |
| 1724 |
| 1725 |
1719 std::ostream& HTailCallThroughMegamorphicCache::PrintDataTo( | 1726 std::ostream& HTailCallThroughMegamorphicCache::PrintDataTo( |
1720 std::ostream& os) const { // NOLINT | 1727 std::ostream& os) const { // NOLINT |
1721 for (int i = 0; i < OperandCount(); i++) { | 1728 for (int i = 0; i < OperandCount(); i++) { |
1722 os << NameOf(OperandAt(i)) << " "; | 1729 os << NameOf(OperandAt(i)) << " "; |
1723 } | 1730 } |
1724 return os << "flags: " << flags(); | 1731 return os << "flags: " << flags(); |
1725 } | 1732 } |
1726 | 1733 |
1727 | 1734 |
1728 std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT | 1735 std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT |
(...skipping 3069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4798 break; | 4805 break; |
4799 case HObjectAccess::kExternalMemory: | 4806 case HObjectAccess::kExternalMemory: |
4800 os << "[external-memory]"; | 4807 os << "[external-memory]"; |
4801 break; | 4808 break; |
4802 } | 4809 } |
4803 | 4810 |
4804 return os << "@" << access.offset(); | 4811 return os << "@" << access.offset(); |
4805 } | 4812 } |
4806 | 4813 |
4807 } } // namespace v8::internal | 4814 } } // namespace v8::internal |
OLD | NEW |