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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 | 2230 |
2230 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } | 2231 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } |
2231 Handle<Map> transitioned_map() { | 2232 Handle<Map> transitioned_map() { |
2232 return hydrogen()->transitioned_map().handle(); | 2233 return hydrogen()->transitioned_map().handle(); |
2233 } | 2234 } |
2234 ElementsKind from_kind() { return hydrogen()->from_kind(); } | 2235 ElementsKind from_kind() { return hydrogen()->from_kind(); } |
2235 ElementsKind to_kind() { return hydrogen()->to_kind(); } | 2236 ElementsKind to_kind() { return hydrogen()->to_kind(); } |
2236 }; | 2237 }; |
2237 | 2238 |
2238 | 2239 |
| 2240 class LArrayShift V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 2241 public: |
| 2242 LArrayShift(LOperand* context, LOperand* object) { |
| 2243 inputs_[0] = context; |
| 2244 inputs_[1] = object; |
| 2245 } |
| 2246 |
| 2247 LOperand* context() const { return inputs_[0]; } |
| 2248 LOperand* object() const { return inputs_[1]; } |
| 2249 |
| 2250 DECLARE_CONCRETE_INSTRUCTION(ArrayShift, "array-shift") |
| 2251 DECLARE_HYDROGEN_ACCESSOR(ArrayShift) |
| 2252 }; |
| 2253 |
| 2254 |
2239 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { | 2255 class LTrapAllocationMemento V8_FINAL : public LTemplateInstruction<0, 1, 1> { |
2240 public: | 2256 public: |
2241 LTrapAllocationMemento(LOperand* object, | 2257 LTrapAllocationMemento(LOperand* object, |
2242 LOperand* temp) { | 2258 LOperand* temp) { |
2243 inputs_[0] = object; | 2259 inputs_[0] = object; |
2244 temps_[0] = temp; | 2260 temps_[0] = temp; |
2245 } | 2261 } |
2246 | 2262 |
2247 LOperand* object() { return inputs_[0]; } | 2263 LOperand* object() { return inputs_[0]; } |
2248 LOperand* temp() { return temps_[0]; } | 2264 LOperand* temp() { return temps_[0]; } |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 | 2812 |
2797 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2813 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2798 }; | 2814 }; |
2799 | 2815 |
2800 #undef DECLARE_HYDROGEN_ACCESSOR | 2816 #undef DECLARE_HYDROGEN_ACCESSOR |
2801 #undef DECLARE_CONCRETE_INSTRUCTION | 2817 #undef DECLARE_CONCRETE_INSTRUCTION |
2802 | 2818 |
2803 } } // namespace v8::internal | 2819 } } // namespace v8::internal |
2804 | 2820 |
2805 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2821 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |