OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 V(FlooringDivByPowerOf2I) \ | 72 V(FlooringDivByPowerOf2I) \ |
73 V(FlooringDivI) \ | 73 V(FlooringDivI) \ |
74 V(ForInCacheArray) \ | 74 V(ForInCacheArray) \ |
75 V(ForInPrepareMap) \ | 75 V(ForInPrepareMap) \ |
76 V(GetCachedArrayIndex) \ | 76 V(GetCachedArrayIndex) \ |
77 V(Goto) \ | 77 V(Goto) \ |
78 V(HasCachedArrayIndexAndBranch) \ | 78 V(HasCachedArrayIndexAndBranch) \ |
79 V(HasInPrototypeChainAndBranch) \ | 79 V(HasInPrototypeChainAndBranch) \ |
80 V(HasInstanceTypeAndBranch) \ | 80 V(HasInstanceTypeAndBranch) \ |
81 V(InnerAllocatedObject) \ | 81 V(InnerAllocatedObject) \ |
82 V(InstanceOf) \ | |
83 V(InstructionGap) \ | 82 V(InstructionGap) \ |
84 V(Integer32ToDouble) \ | 83 V(Integer32ToDouble) \ |
85 V(InvokeFunction) \ | 84 V(InvokeFunction) \ |
86 V(IsStringAndBranch) \ | 85 V(IsStringAndBranch) \ |
87 V(IsSmiAndBranch) \ | 86 V(IsSmiAndBranch) \ |
88 V(IsUndetectableAndBranch) \ | 87 V(IsUndetectableAndBranch) \ |
89 V(Label) \ | 88 V(Label) \ |
90 V(LazyBailout) \ | 89 V(LazyBailout) \ |
91 V(LoadContextSlot) \ | 90 V(LoadContextSlot) \ |
92 V(LoadRoot) \ | 91 V(LoadRoot) \ |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 LOperand* left() { return inputs_[1]; } | 1108 LOperand* left() { return inputs_[1]; } |
1110 LOperand* right() { return inputs_[2]; } | 1109 LOperand* right() { return inputs_[2]; } |
1111 | 1110 |
1112 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1111 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1113 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1112 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1114 | 1113 |
1115 Token::Value op() const { return hydrogen()->token(); } | 1114 Token::Value op() const { return hydrogen()->token(); } |
1116 }; | 1115 }; |
1117 | 1116 |
1118 | 1117 |
1119 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | |
1120 public: | |
1121 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | |
1122 inputs_[0] = context; | |
1123 inputs_[1] = left; | |
1124 inputs_[2] = right; | |
1125 } | |
1126 | |
1127 LOperand* context() const { return inputs_[0]; } | |
1128 LOperand* left() const { return inputs_[1]; } | |
1129 LOperand* right() const { return inputs_[2]; } | |
1130 | |
1131 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | |
1132 }; | |
1133 | |
1134 | |
1135 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { | 1118 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { |
1136 public: | 1119 public: |
1137 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { | 1120 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { |
1138 inputs_[0] = object; | 1121 inputs_[0] = object; |
1139 inputs_[1] = prototype; | 1122 inputs_[1] = prototype; |
1140 } | 1123 } |
1141 | 1124 |
1142 LOperand* object() const { return inputs_[0]; } | 1125 LOperand* object() const { return inputs_[0]; } |
1143 LOperand* prototype() const { return inputs_[1]; } | 1126 LOperand* prototype() const { return inputs_[1]; } |
1144 | 1127 |
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2584 | 2567 |
2585 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2568 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2586 }; | 2569 }; |
2587 | 2570 |
2588 #undef DECLARE_HYDROGEN_ACCESSOR | 2571 #undef DECLARE_HYDROGEN_ACCESSOR |
2589 #undef DECLARE_CONCRETE_INSTRUCTION | 2572 #undef DECLARE_CONCRETE_INSTRUCTION |
2590 } // namespace internal | 2573 } // namespace internal |
2591 } // namespace v8 | 2574 } // namespace v8 |
2592 | 2575 |
2593 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2576 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |