Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.h

Issue 1845553002: [crankshaft] Get rid of the StoreFrameContext instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 V(PushArgument) \ 125 V(PushArgument) \
126 V(Return) \ 126 V(Return) \
127 V(SeqStringGetChar) \ 127 V(SeqStringGetChar) \
128 V(SeqStringSetChar) \ 128 V(SeqStringSetChar) \
129 V(ShiftI) \ 129 V(ShiftI) \
130 V(SmiTag) \ 130 V(SmiTag) \
131 V(SmiUntag) \ 131 V(SmiUntag) \
132 V(StackCheck) \ 132 V(StackCheck) \
133 V(StoreCodeEntry) \ 133 V(StoreCodeEntry) \
134 V(StoreContextSlot) \ 134 V(StoreContextSlot) \
135 V(StoreFrameContext) \
136 V(StoreKeyed) \ 135 V(StoreKeyed) \
137 V(StoreKeyedGeneric) \ 136 V(StoreKeyedGeneric) \
138 V(StoreNamedField) \ 137 V(StoreNamedField) \
139 V(StoreNamedGeneric) \ 138 V(StoreNamedGeneric) \
140 V(StringAdd) \ 139 V(StringAdd) \
141 V(StringCharCodeAt) \ 140 V(StringCharCodeAt) \
142 V(StringCharFromCode) \ 141 V(StringCharFromCode) \
143 V(StringCompareAndBranch) \ 142 V(StringCompareAndBranch) \
144 V(SubI) \ 143 V(SubI) \
145 V(SubS) \ 144 V(SubS) \
(...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 inputs_[1] = index; 2506 inputs_[1] = index;
2508 } 2507 }
2509 2508
2510 LOperand* object() { return inputs_[0]; } 2509 LOperand* object() { return inputs_[0]; }
2511 LOperand* index() { return inputs_[1]; } 2510 LOperand* index() { return inputs_[1]; }
2512 2511
2513 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") 2512 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index")
2514 }; 2513 };
2515 2514
2516 2515
2517 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> {
2518 public:
2519 explicit LStoreFrameContext(LOperand* context) {
2520 inputs_[0] = context;
2521 }
2522
2523 LOperand* context() { return inputs_[0]; }
2524
2525 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2526 };
2527
2528
2529 class LChunkBuilder; 2516 class LChunkBuilder;
2530 class LPlatformChunk final : public LChunk { 2517 class LPlatformChunk final : public LChunk {
2531 public: 2518 public:
2532 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2519 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2533 : LChunk(info, graph) { } 2520 : LChunk(info, graph) { }
2534 2521
2535 int GetNextSpillIndex(RegisterKind kind); 2522 int GetNextSpillIndex(RegisterKind kind);
2536 LOperand* GetNextSpillSlot(RegisterKind kind); 2523 LOperand* GetNextSpillSlot(RegisterKind kind);
2537 }; 2524 };
2538 2525
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2658 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2672 }; 2659 };
2673 2660
2674 #undef DECLARE_HYDROGEN_ACCESSOR 2661 #undef DECLARE_HYDROGEN_ACCESSOR
2675 #undef DECLARE_CONCRETE_INSTRUCTION 2662 #undef DECLARE_CONCRETE_INSTRUCTION
2676 2663
2677 } // namespace internal 2664 } // namespace internal
2678 } // namespace v8 2665 } // namespace v8
2679 2666
2680 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2667 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698