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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 case HValue::kRegExpLiteral: | 830 case HValue::kRegExpLiteral: |
831 case HValue::kReturn: | 831 case HValue::kReturn: |
832 case HValue::kSeqStringGetChar: | 832 case HValue::kSeqStringGetChar: |
833 case HValue::kStoreCodeEntry: | 833 case HValue::kStoreCodeEntry: |
834 case HValue::kStoreFrameContext: | 834 case HValue::kStoreFrameContext: |
835 case HValue::kStoreKeyed: | 835 case HValue::kStoreKeyed: |
836 case HValue::kStoreNamedField: | 836 case HValue::kStoreNamedField: |
837 case HValue::kStoreNamedGeneric: | 837 case HValue::kStoreNamedGeneric: |
838 case HValue::kStringCharCodeAt: | 838 case HValue::kStringCharCodeAt: |
839 case HValue::kStringCharFromCode: | 839 case HValue::kStringCharFromCode: |
840 case HValue::kTailCallThroughMegamorphicCache: | |
841 case HValue::kThisFunction: | 840 case HValue::kThisFunction: |
842 case HValue::kTypeofIsAndBranch: | 841 case HValue::kTypeofIsAndBranch: |
843 case HValue::kUnknownOSRValue: | 842 case HValue::kUnknownOSRValue: |
844 case HValue::kUseConst: | 843 case HValue::kUseConst: |
845 return false; | 844 return false; |
846 | 845 |
847 case HValue::kAdd: | 846 case HValue::kAdd: |
848 case HValue::kAllocateBlockContext: | 847 case HValue::kAllocateBlockContext: |
849 case HValue::kApplyArguments: | 848 case HValue::kApplyArguments: |
850 case HValue::kBitwise: | 849 case HValue::kBitwise: |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 return HUnaryOperation::PrintDataTo(os); | 1709 return HUnaryOperation::PrintDataTo(os); |
1711 } | 1710 } |
1712 | 1711 |
1713 | 1712 |
1714 std::ostream& HCallStub::PrintDataTo(std::ostream& os) const { // NOLINT | 1713 std::ostream& HCallStub::PrintDataTo(std::ostream& os) const { // NOLINT |
1715 os << CodeStub::MajorName(major_key_, false) << " "; | 1714 os << CodeStub::MajorName(major_key_, false) << " "; |
1716 return HUnaryCall::PrintDataTo(os); | 1715 return HUnaryCall::PrintDataTo(os); |
1717 } | 1716 } |
1718 | 1717 |
1719 | 1718 |
1720 Code::Flags HTailCallThroughMegamorphicCache::flags() const { | |
1721 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | |
1722 Code::ComputeHandlerFlags(Code::LOAD_IC)); | |
1723 return code_flags; | |
1724 } | |
1725 | |
1726 | |
1727 std::ostream& HTailCallThroughMegamorphicCache::PrintDataTo( | |
1728 std::ostream& os) const { // NOLINT | |
1729 for (int i = 0; i < OperandCount(); i++) { | |
1730 os << NameOf(OperandAt(i)) << " "; | |
1731 } | |
1732 return os << "flags: " << flags(); | |
1733 } | |
1734 | |
1735 | |
1736 std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT | 1719 std::ostream& HUnknownOSRValue::PrintDataTo(std::ostream& os) const { // NOLINT |
1737 const char* type = "expression"; | 1720 const char* type = "expression"; |
1738 if (environment_->is_local_index(index_)) type = "local"; | 1721 if (environment_->is_local_index(index_)) type = "local"; |
1739 if (environment_->is_special_index(index_)) type = "special"; | 1722 if (environment_->is_special_index(index_)) type = "special"; |
1740 if (environment_->is_parameter_index(index_)) type = "parameter"; | 1723 if (environment_->is_parameter_index(index_)) type = "parameter"; |
1741 return os << type << " @ " << index_; | 1724 return os << type << " @ " << index_; |
1742 } | 1725 } |
1743 | 1726 |
1744 | 1727 |
1745 std::ostream& HInstanceOf::PrintDataTo(std::ostream& os) const { // NOLINT | 1728 std::ostream& HInstanceOf::PrintDataTo(std::ostream& os) const { // NOLINT |
(...skipping 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4725 break; | 4708 break; |
4726 case HObjectAccess::kExternalMemory: | 4709 case HObjectAccess::kExternalMemory: |
4727 os << "[external-memory]"; | 4710 os << "[external-memory]"; |
4728 break; | 4711 break; |
4729 } | 4712 } |
4730 | 4713 |
4731 return os << "@" << access.offset(); | 4714 return os << "@" << access.offset(); |
4732 } | 4715 } |
4733 | 4716 |
4734 } } // namespace v8::internal | 4717 } } // namespace v8::internal |
OLD | NEW |