OLD | NEW |
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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_H_ |
7 | 7 |
8 #include "hydrogen.h" | 8 #include "hydrogen.h" |
9 #include "lithium-allocator.h" | 9 #include "lithium-allocator.h" |
10 #include "lithium.h" | 10 #include "lithium.h" |
11 #include "safepoint-table.h" | 11 #include "safepoint-table.h" |
12 #include "utils.h" | 12 #include "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(ApplyArguments) \ | 24 V(ApplyArguments) \ |
25 V(ArgumentsElements) \ | 25 V(ArgumentsElements) \ |
26 V(ArgumentsLength) \ | 26 V(ArgumentsLength) \ |
27 V(ArithmeticD) \ | 27 V(ArithmeticD) \ |
28 V(ArithmeticT) \ | 28 V(ArithmeticT) \ |
29 V(ArrayShift) \ | |
30 V(BitI) \ | 29 V(BitI) \ |
31 V(BoundsCheck) \ | 30 V(BoundsCheck) \ |
32 V(Branch) \ | 31 V(Branch) \ |
33 V(CallJSFunction) \ | 32 V(CallJSFunction) \ |
34 V(CallWithDescriptor) \ | 33 V(CallWithDescriptor) \ |
35 V(CallFunction) \ | 34 V(CallFunction) \ |
36 V(CallNew) \ | 35 V(CallNew) \ |
37 V(CallNewArray) \ | 36 V(CallNewArray) \ |
38 V(CallRuntime) \ | 37 V(CallRuntime) \ |
39 V(CallStub) \ | 38 V(CallStub) \ |
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 | 2237 |
2239 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } | 2238 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } |
2240 Handle<Map> transitioned_map() { | 2239 Handle<Map> transitioned_map() { |
2241 return hydrogen()->transitioned_map().handle(); | 2240 return hydrogen()->transitioned_map().handle(); |
2242 } | 2241 } |
2243 ElementsKind from_kind() { return hydrogen()->from_kind(); } | 2242 ElementsKind from_kind() { return hydrogen()->from_kind(); } |
2244 ElementsKind to_kind() { return hydrogen()->to_kind(); } | 2243 ElementsKind to_kind() { return hydrogen()->to_kind(); } |
2245 }; | 2244 }; |
2246 | 2245 |
2247 | 2246 |
2248 class LArrayShift V8_FINAL : public LTemplateInstruction<1, 2, 0> { | |
2249 public: | |
2250 LArrayShift(LOperand* context, LOperand* object) { | |
2251 inputs_[0] = context; | |
2252 inputs_[1] = object; | |
2253 } | |
2254 | |
2255 LOperand* context() const { return inputs_[0]; } | |
2256 LOperand* object() const { return inputs_[1]; } | |
2257 | |
2258 DECLARE_CONCRETE_INSTRUCTION(ArrayShift, "array-shift") | |
2259 DECLARE_HYDROGEN_ACCESSOR(ArrayShift) | |
2260 }; | |
2261 | |
2262 | |
2263 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { | 2247 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { |
2264 public: | 2248 public: |
2265 LTrapAllocationMemento(LOperand* object, | 2249 LTrapAllocationMemento(LOperand* object, |
2266 LOperand* temp) { | 2250 LOperand* temp) { |
2267 inputs_[0] = object; | 2251 inputs_[0] = object; |
2268 temps_[0] = temp; | 2252 temps_[0] = temp; |
2269 } | 2253 } |
2270 | 2254 |
2271 LOperand* object() { return inputs_[0]; } | 2255 LOperand* object() { return inputs_[0]; } |
2272 LOperand* temp() { return temps_[0]; } | 2256 LOperand* temp() { return temps_[0]; } |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 | 2810 |
2827 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2811 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2828 }; | 2812 }; |
2829 | 2813 |
2830 #undef DECLARE_HYDROGEN_ACCESSOR | 2814 #undef DECLARE_HYDROGEN_ACCESSOR |
2831 #undef DECLARE_CONCRETE_INSTRUCTION | 2815 #undef DECLARE_CONCRETE_INSTRUCTION |
2832 | 2816 |
2833 } } // namespace v8::int | 2817 } } // namespace v8::int |
2834 | 2818 |
2835 #endif // V8_X64_LITHIUM_X64_H_ | 2819 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |