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

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

Issue 315233002: X87: Preliminary support for block contexts in hydrogen. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | Annotate | Revision Log
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | src/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_X87_LITHIUM_X87_H_
6 #define V8_X87_LITHIUM_X87_H_ 6 #define V8_X87_LITHIUM_X87_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(AllocateBlockContext) \
23 V(Allocate) \ 24 V(Allocate) \
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) \
(...skipping 98 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 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 inputs_[1] = index; 2664 inputs_[1] = index;
2663 } 2665 }
2664 2666
2665 LOperand* object() { return inputs_[0]; } 2667 LOperand* object() { return inputs_[0]; }
2666 LOperand* index() { return inputs_[1]; } 2668 LOperand* index() { return inputs_[1]; }
2667 2669
2668 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") 2670 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index")
2669 }; 2671 };
2670 2672
2671 2673
2674 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> {
2675 public:
2676 explicit LStoreFrameContext(LOperand* context) {
2677 inputs_[0] = context;
2678 }
2679
2680 LOperand* context() { return inputs_[0]; }
2681
2682 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2683 };
2684
2685
2686 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> {
2687 public:
2688 LAllocateBlockContext(LOperand* context, LOperand* function) {
2689 inputs_[0] = context;
2690 inputs_[1] = function;
2691 }
2692
2693 LOperand* context() { return inputs_[0]; }
2694 LOperand* function() { return inputs_[1]; }
2695
2696 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); }
2697
2698 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context")
2699 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext)
2700 };
2701
2702
2672 class LChunkBuilder; 2703 class LChunkBuilder;
2673 class LPlatformChunk V8_FINAL : public LChunk { 2704 class LPlatformChunk V8_FINAL : public LChunk {
2674 public: 2705 public:
2675 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2706 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2676 : LChunk(info, graph), 2707 : LChunk(info, graph),
2677 num_double_slots_(0) { } 2708 num_double_slots_(0) { }
2678 2709
2679 int GetNextSpillIndex(RegisterKind kind); 2710 int GetNextSpillIndex(RegisterKind kind);
2680 LOperand* GetNextSpillSlot(RegisterKind kind); 2711 LOperand* GetNextSpillSlot(RegisterKind kind);
2681 2712
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 2879
2849 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2880 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2850 }; 2881 };
2851 2882
2852 #undef DECLARE_HYDROGEN_ACCESSOR 2883 #undef DECLARE_HYDROGEN_ACCESSOR
2853 #undef DECLARE_CONCRETE_INSTRUCTION 2884 #undef DECLARE_CONCRETE_INSTRUCTION
2854 2885
2855 } } // namespace v8::internal 2886 } } // namespace v8::internal
2856 2887
2857 #endif // V8_X87_LITHIUM_X87_H_ 2888 #endif // V8_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | src/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698