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_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 V(IsStringAndBranch) \ | 83 V(IsStringAndBranch) \ |
84 V(IsSmiAndBranch) \ | 84 V(IsSmiAndBranch) \ |
85 V(IsUndetectableAndBranch) \ | 85 V(IsUndetectableAndBranch) \ |
86 V(Label) \ | 86 V(Label) \ |
87 V(LazyBailout) \ | 87 V(LazyBailout) \ |
88 V(LoadContextSlot) \ | 88 V(LoadContextSlot) \ |
89 V(LoadRoot) \ | 89 V(LoadRoot) \ |
90 V(LoadFieldByIndex) \ | 90 V(LoadFieldByIndex) \ |
91 V(LoadFunctionPrototype) \ | 91 V(LoadFunctionPrototype) \ |
92 V(LoadKeyed) \ | 92 V(LoadKeyed) \ |
93 V(LoadKeyedGeneric) \ | |
94 V(LoadNamedField) \ | 93 V(LoadNamedField) \ |
95 V(MathAbs) \ | 94 V(MathAbs) \ |
96 V(MathClz32) \ | 95 V(MathClz32) \ |
97 V(MathCos) \ | 96 V(MathCos) \ |
98 V(MathSin) \ | 97 V(MathSin) \ |
99 V(MathExp) \ | 98 V(MathExp) \ |
100 V(MathFloor) \ | 99 V(MathFloor) \ |
101 V(MathFround) \ | 100 V(MathFround) \ |
102 V(MathLog) \ | 101 V(MathLog) \ |
103 V(MathMinMax) \ | 102 V(MathMinMax) \ |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1523 } | 1522 } |
1524 | 1523 |
1525 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1524 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1526 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1525 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1527 | 1526 |
1528 void PrintDataTo(StringStream* stream) override; | 1527 void PrintDataTo(StringStream* stream) override; |
1529 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 1528 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
1530 }; | 1529 }; |
1531 | 1530 |
1532 | 1531 |
1533 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { | |
1534 public: | |
1535 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
1536 LOperand* vector) { | |
1537 inputs_[0] = context; | |
1538 inputs_[1] = object; | |
1539 inputs_[2] = key; | |
1540 temps_[0] = vector; | |
1541 } | |
1542 | |
1543 LOperand* context() { return inputs_[0]; } | |
1544 LOperand* object() { return inputs_[1]; } | |
1545 LOperand* key() { return inputs_[2]; } | |
1546 LOperand* temp_vector() { return temps_[0]; } | |
1547 | |
1548 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | |
1549 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | |
1550 }; | |
1551 | |
1552 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1532 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1553 public: | 1533 public: |
1554 explicit LLoadContextSlot(LOperand* context) { | 1534 explicit LLoadContextSlot(LOperand* context) { |
1555 inputs_[0] = context; | 1535 inputs_[0] = context; |
1556 } | 1536 } |
1557 | 1537 |
1558 LOperand* context() { return inputs_[0]; } | 1538 LOperand* context() { return inputs_[0]; } |
1559 | 1539 |
1560 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1540 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1561 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1541 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2534 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2514 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2535 }; | 2515 }; |
2536 | 2516 |
2537 #undef DECLARE_HYDROGEN_ACCESSOR | 2517 #undef DECLARE_HYDROGEN_ACCESSOR |
2538 #undef DECLARE_CONCRETE_INSTRUCTION | 2518 #undef DECLARE_CONCRETE_INSTRUCTION |
2539 | 2519 |
2540 } // namespace internal | 2520 } // namespace internal |
2541 } // namespace v8 | 2521 } // namespace v8 |
2542 | 2522 |
2543 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2523 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |