| 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_S390_LITHIUM_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 V(StoreNamedField) \ | 137 V(StoreNamedField) \ |
| 138 V(StoreNamedGeneric) \ | 138 V(StoreNamedGeneric) \ |
| 139 V(StringAdd) \ | 139 V(StringAdd) \ |
| 140 V(StringCharCodeAt) \ | 140 V(StringCharCodeAt) \ |
| 141 V(StringCharFromCode) \ | 141 V(StringCharFromCode) \ |
| 142 V(StringCompareAndBranch) \ | 142 V(StringCompareAndBranch) \ |
| 143 V(SubI) \ | 143 V(SubI) \ |
| 144 V(RSubI) \ | 144 V(RSubI) \ |
| 145 V(TaggedToI) \ | 145 V(TaggedToI) \ |
| 146 V(ThisFunction) \ | 146 V(ThisFunction) \ |
| 147 V(ToFastProperties) \ | |
| 148 V(TransitionElementsKind) \ | 147 V(TransitionElementsKind) \ |
| 149 V(TrapAllocationMemento) \ | 148 V(TrapAllocationMemento) \ |
| 150 V(Typeof) \ | 149 V(Typeof) \ |
| 151 V(TypeofIsAndBranch) \ | 150 V(TypeofIsAndBranch) \ |
| 152 V(Uint32ToDouble) \ | 151 V(Uint32ToDouble) \ |
| 153 V(UnknownOSRValue) \ | 152 V(UnknownOSRValue) \ |
| 154 V(WrapReceiver) | 153 V(WrapReceiver) |
| 155 | 154 |
| 156 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 155 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 157 Opcode opcode() const final { return LInstruction::k##type; } \ | 156 Opcode opcode() const final { return LInstruction::k##type; } \ |
| (...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 | 2147 |
| 2149 LOperand* context() { return inputs_[0]; } | 2148 LOperand* context() { return inputs_[0]; } |
| 2150 LOperand* size() { return inputs_[1]; } | 2149 LOperand* size() { return inputs_[1]; } |
| 2151 LOperand* temp1() { return temps_[0]; } | 2150 LOperand* temp1() { return temps_[0]; } |
| 2152 LOperand* temp2() { return temps_[1]; } | 2151 LOperand* temp2() { return temps_[1]; } |
| 2153 | 2152 |
| 2154 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2153 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2155 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2154 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2156 }; | 2155 }; |
| 2157 | 2156 |
| 2158 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
| 2159 public: | |
| 2160 explicit LToFastProperties(LOperand* value) { inputs_[0] = value; } | |
| 2161 | |
| 2162 LOperand* value() { return inputs_[0]; } | |
| 2163 | |
| 2164 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
| 2165 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
| 2166 }; | |
| 2167 | |
| 2168 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2157 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
| 2169 public: | 2158 public: |
| 2170 LTypeof(LOperand* context, LOperand* value) { | 2159 LTypeof(LOperand* context, LOperand* value) { |
| 2171 inputs_[0] = context; | 2160 inputs_[0] = context; |
| 2172 inputs_[1] = value; | 2161 inputs_[1] = value; |
| 2173 } | 2162 } |
| 2174 | 2163 |
| 2175 LOperand* context() { return inputs_[0]; } | 2164 LOperand* context() { return inputs_[0]; } |
| 2176 LOperand* value() { return inputs_[1]; } | 2165 LOperand* value() { return inputs_[1]; } |
| 2177 | 2166 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 | 2403 |
| 2415 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2404 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2416 }; | 2405 }; |
| 2417 | 2406 |
| 2418 #undef DECLARE_HYDROGEN_ACCESSOR | 2407 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2419 #undef DECLARE_CONCRETE_INSTRUCTION | 2408 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2420 } // namespace internal | 2409 } // namespace internal |
| 2421 } // namespace v8 | 2410 } // namespace v8 |
| 2422 | 2411 |
| 2423 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2412 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
| OLD | NEW |