| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 V(PushArgument) \ | 128 V(PushArgument) \ |
| 129 V(Return) \ | 129 V(Return) \ |
| 130 V(SeqStringGetChar) \ | 130 V(SeqStringGetChar) \ |
| 131 V(SeqStringSetChar) \ | 131 V(SeqStringSetChar) \ |
| 132 V(ShiftI) \ | 132 V(ShiftI) \ |
| 133 V(SmiTag) \ | 133 V(SmiTag) \ |
| 134 V(SmiUntag) \ | 134 V(SmiUntag) \ |
| 135 V(StackCheck) \ | 135 V(StackCheck) \ |
| 136 V(StoreCodeEntry) \ | 136 V(StoreCodeEntry) \ |
| 137 V(StoreContextSlot) \ | 137 V(StoreContextSlot) \ |
| 138 V(StoreFrameContext) \ | |
| 139 V(StoreKeyed) \ | 138 V(StoreKeyed) \ |
| 140 V(StoreKeyedGeneric) \ | 139 V(StoreKeyedGeneric) \ |
| 141 V(StoreNamedField) \ | 140 V(StoreNamedField) \ |
| 142 V(StoreNamedGeneric) \ | 141 V(StoreNamedGeneric) \ |
| 143 V(StringAdd) \ | 142 V(StringAdd) \ |
| 144 V(StringCharCodeAt) \ | 143 V(StringCharCodeAt) \ |
| 145 V(StringCharFromCode) \ | 144 V(StringCharFromCode) \ |
| 146 V(StringCompareAndBranch) \ | 145 V(StringCompareAndBranch) \ |
| 147 V(SubI) \ | 146 V(SubI) \ |
| 148 V(TaggedToI) \ | 147 V(TaggedToI) \ |
| (...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 inputs_[1] = index; | 2509 inputs_[1] = index; |
| 2511 } | 2510 } |
| 2512 | 2511 |
| 2513 LOperand* object() { return inputs_[0]; } | 2512 LOperand* object() { return inputs_[0]; } |
| 2514 LOperand* index() { return inputs_[1]; } | 2513 LOperand* index() { return inputs_[1]; } |
| 2515 | 2514 |
| 2516 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") | 2515 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
| 2517 }; | 2516 }; |
| 2518 | 2517 |
| 2519 | 2518 |
| 2520 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> { | |
| 2521 public: | |
| 2522 explicit LStoreFrameContext(LOperand* context) { | |
| 2523 inputs_[0] = context; | |
| 2524 } | |
| 2525 | |
| 2526 LOperand* context() { return inputs_[0]; } | |
| 2527 | |
| 2528 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | |
| 2529 }; | |
| 2530 | |
| 2531 | |
| 2532 class LChunkBuilder; | 2519 class LChunkBuilder; |
| 2533 class LPlatformChunk final : public LChunk { | 2520 class LPlatformChunk final : public LChunk { |
| 2534 public: | 2521 public: |
| 2535 LPlatformChunk(CompilationInfo* info, HGraph* graph) | 2522 LPlatformChunk(CompilationInfo* info, HGraph* graph) |
| 2536 : LChunk(info, graph), | 2523 : LChunk(info, graph), |
| 2537 num_double_slots_(0) { } | 2524 num_double_slots_(0) { } |
| 2538 | 2525 |
| 2539 int GetNextSpillIndex(RegisterKind kind); | 2526 int GetNextSpillIndex(RegisterKind kind); |
| 2540 LOperand* GetNextSpillSlot(RegisterKind kind); | 2527 LOperand* GetNextSpillSlot(RegisterKind kind); |
| 2541 | 2528 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2686 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2673 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2687 }; | 2674 }; |
| 2688 | 2675 |
| 2689 #undef DECLARE_HYDROGEN_ACCESSOR | 2676 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2690 #undef DECLARE_CONCRETE_INSTRUCTION | 2677 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2691 | 2678 |
| 2692 } // namespace internal | 2679 } // namespace internal |
| 2693 } // namespace v8 | 2680 } // namespace v8 |
| 2694 | 2681 |
| 2695 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2682 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |