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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 V(PushArgument) \ 127 V(PushArgument) \
128 V(Return) \ 128 V(Return) \
129 V(SeqStringGetChar) \ 129 V(SeqStringGetChar) \
130 V(SeqStringSetChar) \ 130 V(SeqStringSetChar) \
131 V(ShiftI) \ 131 V(ShiftI) \
132 V(SmiTag) \ 132 V(SmiTag) \
133 V(SmiUntag) \ 133 V(SmiUntag) \
134 V(StackCheck) \ 134 V(StackCheck) \
135 V(StoreCodeEntry) \ 135 V(StoreCodeEntry) \
136 V(StoreContextSlot) \ 136 V(StoreContextSlot) \
137 V(StoreFrameContext) \
138 V(StoreKeyed) \ 137 V(StoreKeyed) \
139 V(StoreKeyedGeneric) \ 138 V(StoreKeyedGeneric) \
140 V(StoreNamedField) \ 139 V(StoreNamedField) \
141 V(StoreNamedGeneric) \ 140 V(StoreNamedGeneric) \
142 V(StringAdd) \ 141 V(StringAdd) \
143 V(StringCharCodeAt) \ 142 V(StringCharCodeAt) \
144 V(StringCharFromCode) \ 143 V(StringCharFromCode) \
145 V(StringCompareAndBranch) \ 144 V(StringCompareAndBranch) \
146 V(SubI) \ 145 V(SubI) \
147 V(TaggedToI) \ 146 V(TaggedToI) \
(...skipping 2359 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 num_double_slots_(0) { } 2521 num_double_slots_(0) { }
2535 2522
2536 int GetNextSpillIndex(RegisterKind kind); 2523 int GetNextSpillIndex(RegisterKind kind);
2537 LOperand* GetNextSpillSlot(RegisterKind kind); 2524 LOperand* GetNextSpillSlot(RegisterKind kind);
2538 2525
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2668 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2682 }; 2669 };
2683 2670
2684 #undef DECLARE_HYDROGEN_ACCESSOR 2671 #undef DECLARE_HYDROGEN_ACCESSOR
2685 #undef DECLARE_CONCRETE_INSTRUCTION 2672 #undef DECLARE_CONCRETE_INSTRUCTION
2686 2673
2687 } // namespace internal 2674 } // namespace internal
2688 } // namespace v8 2675 } // namespace v8
2689 2676
2690 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2677 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698