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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 V(PushArgument) \ | 124 V(PushArgument) \ |
125 V(Return) \ | 125 V(Return) \ |
126 V(SeqStringGetChar) \ | 126 V(SeqStringGetChar) \ |
127 V(SeqStringSetChar) \ | 127 V(SeqStringSetChar) \ |
128 V(ShiftI) \ | 128 V(ShiftI) \ |
129 V(SmiTag) \ | 129 V(SmiTag) \ |
130 V(SmiUntag) \ | 130 V(SmiUntag) \ |
131 V(StackCheck) \ | 131 V(StackCheck) \ |
132 V(StoreCodeEntry) \ | 132 V(StoreCodeEntry) \ |
133 V(StoreContextSlot) \ | 133 V(StoreContextSlot) \ |
134 V(StoreFrameContext) \ | |
135 V(StoreKeyed) \ | 134 V(StoreKeyed) \ |
136 V(StoreKeyedGeneric) \ | 135 V(StoreKeyedGeneric) \ |
137 V(StoreNamedField) \ | 136 V(StoreNamedField) \ |
138 V(StoreNamedGeneric) \ | 137 V(StoreNamedGeneric) \ |
139 V(StringAdd) \ | 138 V(StringAdd) \ |
140 V(StringCharCodeAt) \ | 139 V(StringCharCodeAt) \ |
141 V(StringCharFromCode) \ | 140 V(StringCharFromCode) \ |
142 V(StringCompareAndBranch) \ | 141 V(StringCompareAndBranch) \ |
143 V(SubI) \ | 142 V(SubI) \ |
144 V(RSubI) \ | 143 V(RSubI) \ |
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 inputs_[0] = object; | 2256 inputs_[0] = object; |
2258 inputs_[1] = index; | 2257 inputs_[1] = index; |
2259 } | 2258 } |
2260 | 2259 |
2261 LOperand* object() { return inputs_[0]; } | 2260 LOperand* object() { return inputs_[0]; } |
2262 LOperand* index() { return inputs_[1]; } | 2261 LOperand* index() { return inputs_[1]; } |
2263 | 2262 |
2264 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") | 2263 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
2265 }; | 2264 }; |
2266 | 2265 |
2267 class LStoreFrameContext : public LTemplateInstruction<0, 1, 0> { | |
2268 public: | |
2269 explicit LStoreFrameContext(LOperand* context) { inputs_[0] = context; } | |
2270 | |
2271 LOperand* context() { return inputs_[0]; } | |
2272 | |
2273 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | |
2274 }; | |
2275 | |
2276 class LChunkBuilder; | 2266 class LChunkBuilder; |
2277 class LPlatformChunk final : public LChunk { | 2267 class LPlatformChunk final : public LChunk { |
2278 public: | 2268 public: |
2279 LPlatformChunk(CompilationInfo* info, HGraph* graph) : LChunk(info, graph) {} | 2269 LPlatformChunk(CompilationInfo* info, HGraph* graph) : LChunk(info, graph) {} |
2280 | 2270 |
2281 int GetNextSpillIndex(RegisterKind kind); | 2271 int GetNextSpillIndex(RegisterKind kind); |
2282 LOperand* GetNextSpillSlot(RegisterKind kind); | 2272 LOperand* GetNextSpillSlot(RegisterKind kind); |
2283 }; | 2273 }; |
2284 | 2274 |
2285 class LChunkBuilder final : public LChunkBuilderBase { | 2275 class LChunkBuilder final : public LChunkBuilderBase { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 | 2403 |
2414 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2404 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2415 }; | 2405 }; |
2416 | 2406 |
2417 #undef DECLARE_HYDROGEN_ACCESSOR | 2407 #undef DECLARE_HYDROGEN_ACCESSOR |
2418 #undef DECLARE_CONCRETE_INSTRUCTION | 2408 #undef DECLARE_CONCRETE_INSTRUCTION |
2419 } // namespace internal | 2409 } // namespace internal |
2420 } // namespace v8 | 2410 } // namespace v8 |
2421 | 2411 |
2422 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2412 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
OLD | NEW |