| 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 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2502 inputs_[1] = index; | 2501 inputs_[1] = index; |
| 2503 } | 2502 } |
| 2504 | 2503 |
| 2505 LOperand* object() { return inputs_[0]; } | 2504 LOperand* object() { return inputs_[0]; } |
| 2506 LOperand* index() { return inputs_[1]; } | 2505 LOperand* index() { return inputs_[1]; } |
| 2507 | 2506 |
| 2508 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") | 2507 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
| 2509 }; | 2508 }; |
| 2510 | 2509 |
| 2511 | 2510 |
| 2512 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> { | |
| 2513 public: | |
| 2514 explicit LStoreFrameContext(LOperand* context) { | |
| 2515 inputs_[0] = context; | |
| 2516 } | |
| 2517 | |
| 2518 LOperand* context() { return inputs_[0]; } | |
| 2519 | |
| 2520 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | |
| 2521 }; | |
| 2522 | |
| 2523 | |
| 2524 class LChunkBuilder; | 2511 class LChunkBuilder; |
| 2525 class LPlatformChunk final : public LChunk { | 2512 class LPlatformChunk final : public LChunk { |
| 2526 public: | 2513 public: |
| 2527 LPlatformChunk(CompilationInfo* info, HGraph* graph) | 2514 LPlatformChunk(CompilationInfo* info, HGraph* graph) |
| 2528 : LChunk(info, graph) { } | 2515 : LChunk(info, graph) { } |
| 2529 | 2516 |
| 2530 int GetNextSpillIndex(RegisterKind kind); | 2517 int GetNextSpillIndex(RegisterKind kind); |
| 2531 LOperand* GetNextSpillSlot(RegisterKind kind); | 2518 LOperand* GetNextSpillSlot(RegisterKind kind); |
| 2532 }; | 2519 }; |
| 2533 | 2520 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2667 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2654 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2668 }; | 2655 }; |
| 2669 | 2656 |
| 2670 #undef DECLARE_HYDROGEN_ACCESSOR | 2657 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2671 #undef DECLARE_CONCRETE_INSTRUCTION | 2658 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2672 | 2659 |
| 2673 } // namespace internal | 2660 } // namespace internal |
| 2674 } // namespace v8 | 2661 } // namespace v8 |
| 2675 | 2662 |
| 2676 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2663 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |