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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 has_stack_check); | 961 has_stack_check); |
962 } | 962 } |
963 | 963 |
964 | 964 |
965 std::ostream& HBinaryCall::PrintDataTo(std::ostream& os) const { // NOLINT | 965 std::ostream& HBinaryCall::PrintDataTo(std::ostream& os) const { // NOLINT |
966 return os << NameOf(first()) << " " << NameOf(second()) << " #" | 966 return os << NameOf(first()) << " " << NameOf(second()) << " #" |
967 << argument_count(); | 967 << argument_count(); |
968 } | 968 } |
969 | 969 |
970 | 970 |
| 971 std::ostream& HCallFunction::PrintDataTo(std::ostream& os) const { // NOLINT |
| 972 os << NameOf(context()) << " " << NameOf(function()); |
| 973 if (HasVectorAndSlot()) { |
| 974 os << " (type-feedback-vector icslot " << slot().ToInt() << ")"; |
| 975 } |
| 976 return os; |
| 977 } |
| 978 |
| 979 |
971 void HBoundsCheck::ApplyIndexChange() { | 980 void HBoundsCheck::ApplyIndexChange() { |
972 if (skip_check()) return; | 981 if (skip_check()) return; |
973 | 982 |
974 DecompositionResult decomposition; | 983 DecompositionResult decomposition; |
975 bool index_is_decomposable = index()->TryDecompose(&decomposition); | 984 bool index_is_decomposable = index()->TryDecompose(&decomposition); |
976 if (index_is_decomposable) { | 985 if (index_is_decomposable) { |
977 DCHECK(decomposition.base() == base()); | 986 DCHECK(decomposition.base() == base()); |
978 if (decomposition.offset() == offset() && | 987 if (decomposition.offset() == offset() && |
979 decomposition.scale() == scale()) return; | 988 decomposition.scale() == scale()) return; |
980 } else { | 989 } else { |
(...skipping 3826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4807 break; | 4816 break; |
4808 case HObjectAccess::kExternalMemory: | 4817 case HObjectAccess::kExternalMemory: |
4809 os << "[external-memory]"; | 4818 os << "[external-memory]"; |
4810 break; | 4819 break; |
4811 } | 4820 } |
4812 | 4821 |
4813 return os << "@" << access.offset(); | 4822 return os << "@" << access.offset(); |
4814 } | 4823 } |
4815 | 4824 |
4816 } } // namespace v8::internal | 4825 } } // namespace v8::internal |
OLD | NEW |