| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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(TaggedToI) \ | 143 V(TaggedToI) \ |
| (...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2496 inputs_[1] = index; | 2495 inputs_[1] = index; |
| 2497 } | 2496 } |
| 2498 | 2497 |
| 2499 LOperand* object() { return inputs_[0]; } | 2498 LOperand* object() { return inputs_[0]; } |
| 2500 LOperand* index() { return inputs_[1]; } | 2499 LOperand* index() { return inputs_[1]; } |
| 2501 | 2500 |
| 2502 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") | 2501 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
| 2503 }; | 2502 }; |
| 2504 | 2503 |
| 2505 | 2504 |
| 2506 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> { | |
| 2507 public: | |
| 2508 explicit LStoreFrameContext(LOperand* context) { | |
| 2509 inputs_[0] = context; | |
| 2510 } | |
| 2511 | |
| 2512 LOperand* context() { return inputs_[0]; } | |
| 2513 | |
| 2514 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | |
| 2515 }; | |
| 2516 | |
| 2517 | |
| 2518 class LChunkBuilder; | 2505 class LChunkBuilder; |
| 2519 class LPlatformChunk final : public LChunk { | 2506 class LPlatformChunk final : public LChunk { |
| 2520 public: | 2507 public: |
| 2521 LPlatformChunk(CompilationInfo* info, HGraph* graph) | 2508 LPlatformChunk(CompilationInfo* info, HGraph* graph) |
| 2522 : LChunk(info, graph), | 2509 : LChunk(info, graph), |
| 2523 dehoisted_key_ids_(graph->GetMaximumValueID(), graph->zone()) { } | 2510 dehoisted_key_ids_(graph->GetMaximumValueID(), graph->zone()) { } |
| 2524 | 2511 |
| 2525 int GetNextSpillIndex(RegisterKind kind); | 2512 int GetNextSpillIndex(RegisterKind kind); |
| 2526 LOperand* GetNextSpillSlot(RegisterKind kind); | 2513 LOperand* GetNextSpillSlot(RegisterKind kind); |
| 2527 BitVector* GetDehoistedKeyIds() { return &dehoisted_key_ids_; } | 2514 BitVector* GetDehoistedKeyIds() { return &dehoisted_key_ids_; } |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2670 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2657 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2671 }; | 2658 }; |
| 2672 | 2659 |
| 2673 #undef DECLARE_HYDROGEN_ACCESSOR | 2660 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2674 #undef DECLARE_CONCRETE_INSTRUCTION | 2661 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2675 | 2662 |
| 2676 } // namespace internal | 2663 } // namespace internal |
| 2677 } // namespace v8 | 2664 } // namespace v8 |
| 2678 | 2665 |
| 2679 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2666 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |