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

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

Issue 307593002: Preliminary support for block contexts in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Port to other architectures 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 | « no previous file | src/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 V(RegExpLiteral) \ 133 V(RegExpLiteral) \
133 V(Return) \ 134 V(Return) \
134 V(SeqStringGetChar) \ 135 V(SeqStringGetChar) \
135 V(SeqStringSetChar) \ 136 V(SeqStringSetChar) \
136 V(ShiftI) \ 137 V(ShiftI) \
137 V(SmiTag) \ 138 V(SmiTag) \
138 V(SmiUntag) \ 139 V(SmiUntag) \
139 V(StackCheck) \ 140 V(StackCheck) \
140 V(StoreCodeEntry) \ 141 V(StoreCodeEntry) \
141 V(StoreContextSlot) \ 142 V(StoreContextSlot) \
143 V(StoreFrameContext) \
142 V(StoreGlobalCell) \ 144 V(StoreGlobalCell) \
143 V(StoreKeyed) \ 145 V(StoreKeyed) \
144 V(StoreKeyedGeneric) \ 146 V(StoreKeyedGeneric) \
145 V(StoreNamedField) \ 147 V(StoreNamedField) \
146 V(StoreNamedGeneric) \ 148 V(StoreNamedGeneric) \
147 V(StringAdd) \ 149 V(StringAdd) \
148 V(StringCharCodeAt) \ 150 V(StringCharCodeAt) \
149 V(StringCharFromCode) \ 151 V(StringCharFromCode) \
150 V(StringCompareAndBranch) \ 152 V(StringCompareAndBranch) \
151 V(SubI) \ 153 V(SubI) \
(...skipping 2510 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 2708
2678 int GetNextSpillIndex(RegisterKind kind); 2709 int GetNextSpillIndex(RegisterKind kind);
2679 LOperand* GetNextSpillSlot(RegisterKind kind); 2710 LOperand* GetNextSpillSlot(RegisterKind kind);
2680 }; 2711 };
2681 2712
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2841 2872
2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2873 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2843 }; 2874 };
2844 2875
2845 #undef DECLARE_HYDROGEN_ACCESSOR 2876 #undef DECLARE_HYDROGEN_ACCESSOR
2846 #undef DECLARE_CONCRETE_INSTRUCTION 2877 #undef DECLARE_CONCRETE_INSTRUCTION
2847 2878
2848 } } // namespace v8::internal 2879 } } // namespace v8::internal
2849 2880
2850 #endif // V8_ARM_LITHIUM_ARM_H_ 2881 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698