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/ieee754.h" | 8 #include "src/base/ieee754.h" |
9 #include "src/base/safe_math.h" | 9 #include "src/base/safe_math.h" |
10 #include "src/crankshaft/hydrogen-infer-representation.h" | 10 #include "src/crankshaft/hydrogen-infer-representation.h" |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 case HValue::kGetCachedArrayIndex: | 795 case HValue::kGetCachedArrayIndex: |
796 case HValue::kGoto: | 796 case HValue::kGoto: |
797 case HValue::kHasCachedArrayIndexAndBranch: | 797 case HValue::kHasCachedArrayIndexAndBranch: |
798 case HValue::kHasInstanceTypeAndBranch: | 798 case HValue::kHasInstanceTypeAndBranch: |
799 case HValue::kInnerAllocatedObject: | 799 case HValue::kInnerAllocatedObject: |
800 case HValue::kIsSmiAndBranch: | 800 case HValue::kIsSmiAndBranch: |
801 case HValue::kIsStringAndBranch: | 801 case HValue::kIsStringAndBranch: |
802 case HValue::kIsUndetectableAndBranch: | 802 case HValue::kIsUndetectableAndBranch: |
803 case HValue::kLeaveInlined: | 803 case HValue::kLeaveInlined: |
804 case HValue::kLoadFieldByIndex: | 804 case HValue::kLoadFieldByIndex: |
805 case HValue::kLoadGlobalGeneric: | |
806 case HValue::kLoadNamedField: | 805 case HValue::kLoadNamedField: |
807 case HValue::kLoadNamedGeneric: | 806 case HValue::kLoadNamedGeneric: |
808 case HValue::kLoadRoot: | 807 case HValue::kLoadRoot: |
809 case HValue::kMathMinMax: | 808 case HValue::kMathMinMax: |
810 case HValue::kParameter: | 809 case HValue::kParameter: |
811 case HValue::kPhi: | 810 case HValue::kPhi: |
812 case HValue::kPushArguments: | 811 case HValue::kPushArguments: |
813 case HValue::kReturn: | 812 case HValue::kReturn: |
814 case HValue::kSeqStringGetChar: | 813 case HValue::kSeqStringGetChar: |
815 case HValue::kStoreCodeEntry: | 814 case HValue::kStoreCodeEntry: |
(...skipping 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3051 ElementsKind to_kind = transitioned_map().handle()->elements_kind(); | 3050 ElementsKind to_kind = transitioned_map().handle()->elements_kind(); |
3052 os << " " << *original_map().handle() << " [" | 3051 os << " " << *original_map().handle() << " [" |
3053 << ElementsAccessor::ForKind(from_kind)->name() << "] -> " | 3052 << ElementsAccessor::ForKind(from_kind)->name() << "] -> " |
3054 << *transitioned_map().handle() << " [" | 3053 << *transitioned_map().handle() << " [" |
3055 << ElementsAccessor::ForKind(to_kind)->name() << "]"; | 3054 << ElementsAccessor::ForKind(to_kind)->name() << "]"; |
3056 if (IsSimpleMapChangeTransition(from_kind, to_kind)) os << " (simple)"; | 3055 if (IsSimpleMapChangeTransition(from_kind, to_kind)) os << " (simple)"; |
3057 return os; | 3056 return os; |
3058 } | 3057 } |
3059 | 3058 |
3060 | 3059 |
3061 std::ostream& HLoadGlobalGeneric::PrintDataTo( | |
3062 std::ostream& os) const { // NOLINT | |
3063 return os << name()->ToCString().get() << " "; | |
3064 } | |
3065 | |
3066 | |
3067 std::ostream& HInnerAllocatedObject::PrintDataTo( | 3060 std::ostream& HInnerAllocatedObject::PrintDataTo( |
3068 std::ostream& os) const { // NOLINT | 3061 std::ostream& os) const { // NOLINT |
3069 os << NameOf(base_object()) << " offset "; | 3062 os << NameOf(base_object()) << " offset "; |
3070 return offset()->PrintTo(os); | 3063 return offset()->PrintTo(os); |
3071 } | 3064 } |
3072 | 3065 |
3073 | 3066 |
3074 std::ostream& HLoadContextSlot::PrintDataTo(std::ostream& os) const { // NOLINT | 3067 std::ostream& HLoadContextSlot::PrintDataTo(std::ostream& os) const { // NOLINT |
3075 return os << NameOf(value()) << "[" << slot_index() << "]"; | 3068 return os << NameOf(value()) << "[" << slot_index() << "]"; |
3076 } | 3069 } |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4038 case HObjectAccess::kExternalMemory: | 4031 case HObjectAccess::kExternalMemory: |
4039 os << "[external-memory]"; | 4032 os << "[external-memory]"; |
4040 break; | 4033 break; |
4041 } | 4034 } |
4042 | 4035 |
4043 return os << "@" << access.offset(); | 4036 return os << "@" << access.offset(); |
4044 } | 4037 } |
4045 | 4038 |
4046 } // namespace internal | 4039 } // namespace internal |
4047 } // namespace v8 | 4040 } // namespace v8 |
OLD | NEW |