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 | |
980 void HBoundsCheck::ApplyIndexChange() { | 971 void HBoundsCheck::ApplyIndexChange() { |
981 if (skip_check()) return; | 972 if (skip_check()) return; |
982 | 973 |
983 DecompositionResult decomposition; | 974 DecompositionResult decomposition; |
984 bool index_is_decomposable = index()->TryDecompose(&decomposition); | 975 bool index_is_decomposable = index()->TryDecompose(&decomposition); |
985 if (index_is_decomposable) { | 976 if (index_is_decomposable) { |
986 DCHECK(decomposition.base() == base()); | 977 DCHECK(decomposition.base() == base()); |
987 if (decomposition.offset() == offset() && | 978 if (decomposition.offset() == offset() && |
988 decomposition.scale() == scale()) return; | 979 decomposition.scale() == scale()) return; |
989 } else { | 980 } else { |
(...skipping 3826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4816 break; | 4807 break; |
4817 case HObjectAccess::kExternalMemory: | 4808 case HObjectAccess::kExternalMemory: |
4818 os << "[external-memory]"; | 4809 os << "[external-memory]"; |
4819 break; | 4810 break; |
4820 } | 4811 } |
4821 | 4812 |
4822 return os << "@" << access.offset(); | 4813 return os << "@" << access.offset(); |
4823 } | 4814 } |
4824 | 4815 |
4825 } } // namespace v8::internal | 4816 } } // namespace v8::internal |
OLD | NEW |