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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 return os << NameOf(first()) << " " << NameOf(second()) << " #" | 942 return os << NameOf(first()) << " " << NameOf(second()) << " #" |
943 << argument_count(); | 943 << argument_count(); |
944 } | 944 } |
945 | 945 |
946 | 946 |
947 std::ostream& HCallFunction::PrintDataTo(std::ostream& os) const { // NOLINT | 947 std::ostream& HCallFunction::PrintDataTo(std::ostream& os) const { // NOLINT |
948 os << NameOf(context()) << " " << NameOf(function()); | 948 os << NameOf(context()) << " " << NameOf(function()); |
949 if (HasVectorAndSlot()) { | 949 if (HasVectorAndSlot()) { |
950 os << " (type-feedback-vector icslot " << slot().ToInt() << ")"; | 950 os << " (type-feedback-vector icslot " << slot().ToInt() << ")"; |
951 } | 951 } |
| 952 os << " (convert mode" << convert_mode() << ")"; |
952 return os; | 953 return os; |
953 } | 954 } |
954 | 955 |
955 | 956 |
956 void HBoundsCheck::ApplyIndexChange() { | 957 void HBoundsCheck::ApplyIndexChange() { |
957 if (skip_check()) return; | 958 if (skip_check()) return; |
958 | 959 |
959 DecompositionResult decomposition; | 960 DecompositionResult decomposition; |
960 bool index_is_decomposable = index()->TryDecompose(&decomposition); | 961 bool index_is_decomposable = index()->TryDecompose(&decomposition); |
961 if (index_is_decomposable) { | 962 if (index_is_decomposable) { |
(...skipping 3732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4694 case HObjectAccess::kExternalMemory: | 4695 case HObjectAccess::kExternalMemory: |
4695 os << "[external-memory]"; | 4696 os << "[external-memory]"; |
4696 break; | 4697 break; |
4697 } | 4698 } |
4698 | 4699 |
4699 return os << "@" << access.offset(); | 4700 return os << "@" << access.offset(); |
4700 } | 4701 } |
4701 | 4702 |
4702 } // namespace internal | 4703 } // namespace internal |
4703 } // namespace v8 | 4704 } // namespace v8 |
OLD | NEW |