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_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 "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) \ |
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) \ |
34 V(CallFunction) \ | 35 V(CallFunction) \ |
35 V(CallNew) \ | 36 V(CallNew) \ |
36 V(CallNewArray) \ | 37 V(CallNewArray) \ |
37 V(CallRuntime) \ | 38 V(CallRuntime) \ |
38 V(CallStub) \ | 39 V(CallStub) \ |
(...skipping 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 | 2275 |
2275 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } | 2276 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } |
2276 Handle<Map> transitioned_map() { | 2277 Handle<Map> transitioned_map() { |
2277 return hydrogen()->transitioned_map().handle(); | 2278 return hydrogen()->transitioned_map().handle(); |
2278 } | 2279 } |
2279 ElementsKind from_kind() { return hydrogen()->from_kind(); } | 2280 ElementsKind from_kind() { return hydrogen()->from_kind(); } |
2280 ElementsKind to_kind() { return hydrogen()->to_kind(); } | 2281 ElementsKind to_kind() { return hydrogen()->to_kind(); } |
2281 }; | 2282 }; |
2282 | 2283 |
2283 | 2284 |
| 2285 class LArrayShift V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 2286 public: |
| 2287 LArrayShift(LOperand* context, LOperand* object) { |
| 2288 inputs_[0] = context; |
| 2289 inputs_[1] = object; |
| 2290 } |
| 2291 |
| 2292 LOperand* context() const { return inputs_[0]; } |
| 2293 LOperand* object() const { return inputs_[1]; } |
| 2294 |
| 2295 DECLARE_CONCRETE_INSTRUCTION(ArrayShift, "array-shift") |
| 2296 DECLARE_HYDROGEN_ACCESSOR(ArrayShift) |
| 2297 }; |
| 2298 |
| 2299 |
2284 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { | 2300 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { |
2285 public: | 2301 public: |
2286 LTrapAllocationMemento(LOperand* object, | 2302 LTrapAllocationMemento(LOperand* object, |
2287 LOperand* temp) { | 2303 LOperand* temp) { |
2288 inputs_[0] = object; | 2304 inputs_[0] = object; |
2289 temps_[0] = temp; | 2305 temps_[0] = temp; |
2290 } | 2306 } |
2291 | 2307 |
2292 LOperand* object() { return inputs_[0]; } | 2308 LOperand* object() { return inputs_[0]; } |
2293 LOperand* temp() { return temps_[0]; } | 2309 LOperand* temp() { return temps_[0]; } |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2840 | 2856 |
2841 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2857 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2842 }; | 2858 }; |
2843 | 2859 |
2844 #undef DECLARE_HYDROGEN_ACCESSOR | 2860 #undef DECLARE_HYDROGEN_ACCESSOR |
2845 #undef DECLARE_CONCRETE_INSTRUCTION | 2861 #undef DECLARE_CONCRETE_INSTRUCTION |
2846 | 2862 |
2847 } } // namespace v8::internal | 2863 } } // namespace v8::internal |
2848 | 2864 |
2849 #endif // V8_ARM_LITHIUM_ARM_H_ | 2865 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |