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

Side by Side Diff: src/mips/lithium-mips.h

Issue 313183007: MIPS: Preliminary support for block contexts in hydrogen. (Closed) Base URL: git@github.com:paul99/v8m-rb.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium-allocator.h" 9 #include "src/lithium-allocator.h"
10 #include "src/lithium.h" 10 #include "src/lithium.h"
11 #include "src/safepoint-table.h" 11 #include "src/safepoint-table.h"
12 #include "src/utils.h" 12 #include "src/utils.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Forward declarations. 17 // Forward declarations.
18 class LCodeGen; 18 class LCodeGen;
19 19
20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
21 V(AccessArgumentsAt) \ 21 V(AccessArgumentsAt) \
22 V(AddI) \ 22 V(AddI) \
23 V(Allocate) \ 23 V(Allocate) \
24 V(AllocateBlockContext) \
24 V(ApplyArguments) \ 25 V(ApplyArguments) \
25 V(ArgumentsElements) \ 26 V(ArgumentsElements) \
26 V(ArgumentsLength) \ 27 V(ArgumentsLength) \
27 V(ArithmeticD) \ 28 V(ArithmeticD) \
28 V(ArithmeticT) \ 29 V(ArithmeticT) \
29 V(BitI) \ 30 V(BitI) \
30 V(BoundsCheck) \ 31 V(BoundsCheck) \
31 V(Branch) \ 32 V(Branch) \
32 V(CallJSFunction) \ 33 V(CallJSFunction) \
33 V(CallWithDescriptor) \ 34 V(CallWithDescriptor) \
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 V(RegExpLiteral) \ 132 V(RegExpLiteral) \
132 V(Return) \ 133 V(Return) \
133 V(SeqStringGetChar) \ 134 V(SeqStringGetChar) \
134 V(SeqStringSetChar) \ 135 V(SeqStringSetChar) \
135 V(ShiftI) \ 136 V(ShiftI) \
136 V(SmiTag) \ 137 V(SmiTag) \
137 V(SmiUntag) \ 138 V(SmiUntag) \
138 V(StackCheck) \ 139 V(StackCheck) \
139 V(StoreCodeEntry) \ 140 V(StoreCodeEntry) \
140 V(StoreContextSlot) \ 141 V(StoreContextSlot) \
142 V(StoreFrameContext) \
141 V(StoreGlobalCell) \ 143 V(StoreGlobalCell) \
142 V(StoreKeyed) \ 144 V(StoreKeyed) \
143 V(StoreKeyedGeneric) \ 145 V(StoreKeyedGeneric) \
144 V(StoreNamedField) \ 146 V(StoreNamedField) \
145 V(StoreNamedGeneric) \ 147 V(StoreNamedGeneric) \
146 V(StringAdd) \ 148 V(StringAdd) \
147 V(StringCharCodeAt) \ 149 V(StringCharCodeAt) \
148 V(StringCharFromCode) \ 150 V(StringCharFromCode) \
149 V(StringCompareAndBranch) \ 151 V(StringCompareAndBranch) \
150 V(SubI) \ 152 V(SubI) \
(...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 inputs_[1] = index; 2621 inputs_[1] = index;
2620 } 2622 }
2621 2623
2622 LOperand* object() { return inputs_[0]; } 2624 LOperand* object() { return inputs_[0]; }
2623 LOperand* index() { return inputs_[1]; } 2625 LOperand* index() { return inputs_[1]; }
2624 2626
2625 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") 2627 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index")
2626 }; 2628 };
2627 2629
2628 2630
2631 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> {
2632 public:
2633 explicit LStoreFrameContext(LOperand* context) {
2634 inputs_[0] = context;
2635 }
2636
2637 LOperand* context() { return inputs_[0]; }
2638
2639 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2640 };
2641
2642
2643 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> {
2644 public:
2645 LAllocateBlockContext(LOperand* context, LOperand* function) {
2646 inputs_[0] = context;
2647 inputs_[1] = function;
2648 }
2649
2650 LOperand* context() { return inputs_[0]; }
2651 LOperand* function() { return inputs_[1]; }
2652
2653 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); }
2654
2655 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context")
2656 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext)
2657 };
2658
2659
2629 class LChunkBuilder; 2660 class LChunkBuilder;
2630 class LPlatformChunk V8_FINAL : public LChunk { 2661 class LPlatformChunk V8_FINAL : public LChunk {
2631 public: 2662 public:
2632 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2663 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2633 : LChunk(info, graph) { } 2664 : LChunk(info, graph) { }
2634 2665
2635 int GetNextSpillIndex(RegisterKind kind); 2666 int GetNextSpillIndex(RegisterKind kind);
2636 LOperand* GetNextSpillSlot(RegisterKind kind); 2667 LOperand* GetNextSpillSlot(RegisterKind kind);
2637 }; 2668 };
2638 2669
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 2828
2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2829 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2799 }; 2830 };
2800 2831
2801 #undef DECLARE_HYDROGEN_ACCESSOR 2832 #undef DECLARE_HYDROGEN_ACCESSOR
2802 #undef DECLARE_CONCRETE_INSTRUCTION 2833 #undef DECLARE_CONCRETE_INSTRUCTION
2803 2834
2804 } } // namespace v8::internal 2835 } } // namespace v8::internal
2805 2836
2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2837 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698