OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_ARM64_LITHIUM_ARM64_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(AddE) \ | 22 V(AddE) \ |
23 V(AddI) \ | 23 V(AddI) \ |
24 V(AddS) \ | 24 V(AddS) \ |
25 V(Allocate) \ | 25 V(Allocate) \ |
| 26 V(AllocateBlockContext) \ |
26 V(ApplyArguments) \ | 27 V(ApplyArguments) \ |
27 V(ArgumentsElements) \ | 28 V(ArgumentsElements) \ |
28 V(ArgumentsLength) \ | 29 V(ArgumentsLength) \ |
29 V(ArithmeticD) \ | 30 V(ArithmeticD) \ |
30 V(ArithmeticT) \ | 31 V(ArithmeticT) \ |
31 V(BitI) \ | 32 V(BitI) \ |
32 V(BitS) \ | 33 V(BitS) \ |
33 V(BoundsCheck) \ | 34 V(BoundsCheck) \ |
34 V(Branch) \ | 35 V(Branch) \ |
35 V(CallFunction) \ | 36 V(CallFunction) \ |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 V(Return) \ | 142 V(Return) \ |
142 V(SeqStringGetChar) \ | 143 V(SeqStringGetChar) \ |
143 V(SeqStringSetChar) \ | 144 V(SeqStringSetChar) \ |
144 V(ShiftI) \ | 145 V(ShiftI) \ |
145 V(ShiftS) \ | 146 V(ShiftS) \ |
146 V(SmiTag) \ | 147 V(SmiTag) \ |
147 V(SmiUntag) \ | 148 V(SmiUntag) \ |
148 V(StackCheck) \ | 149 V(StackCheck) \ |
149 V(StoreCodeEntry) \ | 150 V(StoreCodeEntry) \ |
150 V(StoreContextSlot) \ | 151 V(StoreContextSlot) \ |
| 152 V(StoreFrameContext) \ |
151 V(StoreGlobalCell) \ | 153 V(StoreGlobalCell) \ |
152 V(StoreKeyedExternal) \ | 154 V(StoreKeyedExternal) \ |
153 V(StoreKeyedFixed) \ | 155 V(StoreKeyedFixed) \ |
154 V(StoreKeyedFixedDouble) \ | 156 V(StoreKeyedFixedDouble) \ |
155 V(StoreKeyedGeneric) \ | 157 V(StoreKeyedGeneric) \ |
156 V(StoreNamedField) \ | 158 V(StoreNamedField) \ |
157 V(StoreNamedGeneric) \ | 159 V(StoreNamedGeneric) \ |
158 V(StringAdd) \ | 160 V(StringAdd) \ |
159 V(StringCharCodeAt) \ | 161 V(StringCharCodeAt) \ |
160 V(StringCharFromCode) \ | 162 V(StringCharFromCode) \ |
(...skipping 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2990 inputs_[1] = index; | 2992 inputs_[1] = index; |
2991 } | 2993 } |
2992 | 2994 |
2993 LOperand* object() { return inputs_[0]; } | 2995 LOperand* object() { return inputs_[0]; } |
2994 LOperand* index() { return inputs_[1]; } | 2996 LOperand* index() { return inputs_[1]; } |
2995 | 2997 |
2996 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") | 2998 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
2997 }; | 2999 }; |
2998 | 3000 |
2999 | 3001 |
| 3002 class LStoreFrameContext: public LTemplateInstruction<0, 1, 0> { |
| 3003 public: |
| 3004 explicit LStoreFrameContext(LOperand* context) { |
| 3005 inputs_[0] = context; |
| 3006 } |
| 3007 |
| 3008 LOperand* context() { return inputs_[0]; } |
| 3009 |
| 3010 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") |
| 3011 }; |
| 3012 |
| 3013 |
| 3014 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> { |
| 3015 public: |
| 3016 LAllocateBlockContext(LOperand* context, LOperand* function) { |
| 3017 inputs_[0] = context; |
| 3018 inputs_[1] = function; |
| 3019 } |
| 3020 |
| 3021 LOperand* context() { return inputs_[0]; } |
| 3022 LOperand* function() { return inputs_[1]; } |
| 3023 |
| 3024 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); } |
| 3025 |
| 3026 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context") |
| 3027 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext) |
| 3028 }; |
| 3029 |
| 3030 |
3000 class LWrapReceiver V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 3031 class LWrapReceiver V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
3001 public: | 3032 public: |
3002 LWrapReceiver(LOperand* receiver, LOperand* function) { | 3033 LWrapReceiver(LOperand* receiver, LOperand* function) { |
3003 inputs_[0] = receiver; | 3034 inputs_[0] = receiver; |
3004 inputs_[1] = function; | 3035 inputs_[1] = function; |
3005 } | 3036 } |
3006 | 3037 |
3007 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") | 3038 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") |
3008 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver) | 3039 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver) |
3009 | 3040 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3208 | 3239 |
3209 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3240 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3210 }; | 3241 }; |
3211 | 3242 |
3212 #undef DECLARE_HYDROGEN_ACCESSOR | 3243 #undef DECLARE_HYDROGEN_ACCESSOR |
3213 #undef DECLARE_CONCRETE_INSTRUCTION | 3244 #undef DECLARE_CONCRETE_INSTRUCTION |
3214 | 3245 |
3215 } } // namespace v8::internal | 3246 } } // namespace v8::internal |
3216 | 3247 |
3217 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3248 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |