| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 V(PushArgument) \ | 123 V(PushArgument) \ |
| 124 V(Return) \ | 124 V(Return) \ |
| 125 V(SeqStringGetChar) \ | 125 V(SeqStringGetChar) \ |
| 126 V(SeqStringSetChar) \ | 126 V(SeqStringSetChar) \ |
| 127 V(ShiftI) \ | 127 V(ShiftI) \ |
| 128 V(SmiTag) \ | 128 V(SmiTag) \ |
| 129 V(SmiUntag) \ | 129 V(SmiUntag) \ |
| 130 V(StackCheck) \ | 130 V(StackCheck) \ |
| 131 V(StoreCodeEntry) \ | 131 V(StoreCodeEntry) \ |
| 132 V(StoreContextSlot) \ | 132 V(StoreContextSlot) \ |
| 133 V(StoreFrameContext) \ | |
| 134 V(StoreKeyed) \ | 133 V(StoreKeyed) \ |
| 135 V(StoreKeyedGeneric) \ | 134 V(StoreKeyedGeneric) \ |
| 136 V(StoreNamedField) \ | 135 V(StoreNamedField) \ |
| 137 V(StoreNamedGeneric) \ | 136 V(StoreNamedGeneric) \ |
| 138 V(StringAdd) \ | 137 V(StringAdd) \ |
| 139 V(StringCharCodeAt) \ | 138 V(StringCharCodeAt) \ |
| 140 V(StringCharFromCode) \ | 139 V(StringCharFromCode) \ |
| 141 V(StringCompareAndBranch) \ | 140 V(StringCompareAndBranch) \ |
| 142 V(SubI) \ | 141 V(SubI) \ |
| 143 V(TaggedToI) \ | 142 V(TaggedToI) \ |
| (...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2461 inputs_[1] = index; | 2460 inputs_[1] = index; |
| 2462 } | 2461 } |
| 2463 | 2462 |
| 2464 LOperand* object() { return inputs_[0]; } | 2463 LOperand* object() { return inputs_[0]; } |
| 2465 LOperand* index() { return inputs_[1]; } | 2464 LOperand* index() { return inputs_[1]; } |
| 2466 | 2465 |
| 2467 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") | 2466 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
| 2468 }; | 2467 }; |
| 2469 | 2468 |
| 2470 | 2469 |
| 2471 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> { | |
| 2472 public: | |
| 2473 explicit LStoreFrameContext(LOperand* context) { | |
| 2474 inputs_[0] = context; | |
| 2475 } | |
| 2476 | |
| 2477 LOperand* context() { return inputs_[0]; } | |
| 2478 | |
| 2479 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | |
| 2480 }; | |
| 2481 | |
| 2482 | |
| 2483 class LChunkBuilder; | 2470 class LChunkBuilder; |
| 2484 class LPlatformChunk final : public LChunk { | 2471 class LPlatformChunk final : public LChunk { |
| 2485 public: | 2472 public: |
| 2486 LPlatformChunk(CompilationInfo* info, HGraph* graph) | 2473 LPlatformChunk(CompilationInfo* info, HGraph* graph) |
| 2487 : LChunk(info, graph) { } | 2474 : LChunk(info, graph) { } |
| 2488 | 2475 |
| 2489 int GetNextSpillIndex(RegisterKind kind); | 2476 int GetNextSpillIndex(RegisterKind kind); |
| 2490 LOperand* GetNextSpillSlot(RegisterKind kind); | 2477 LOperand* GetNextSpillSlot(RegisterKind kind); |
| 2491 }; | 2478 }; |
| 2492 | 2479 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2625 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2612 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2626 }; | 2613 }; |
| 2627 | 2614 |
| 2628 #undef DECLARE_HYDROGEN_ACCESSOR | 2615 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2629 #undef DECLARE_CONCRETE_INSTRUCTION | 2616 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2630 | 2617 |
| 2631 } // namespace internal | 2618 } // namespace internal |
| 2632 } // namespace v8 | 2619 } // namespace v8 |
| 2633 | 2620 |
| 2634 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2621 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |