OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 V(InvokeFunction) \ | 82 V(InvokeFunction) \ |
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(LoadGlobalGeneric) \ | |
93 V(LoadKeyed) \ | 92 V(LoadKeyed) \ |
94 V(LoadKeyedGeneric) \ | 93 V(LoadKeyedGeneric) \ |
95 V(LoadNamedField) \ | 94 V(LoadNamedField) \ |
96 V(LoadNamedGeneric) \ | 95 V(LoadNamedGeneric) \ |
97 V(MathAbs) \ | 96 V(MathAbs) \ |
98 V(MathClz32) \ | 97 V(MathClz32) \ |
99 V(MathCos) \ | 98 V(MathCos) \ |
100 V(MathSin) \ | 99 V(MathSin) \ |
101 V(MathExp) \ | 100 V(MathExp) \ |
102 V(MathFloorD) \ | 101 V(MathFloorD) \ |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 | 1534 |
1536 LOperand* context() { return inputs_[0]; } | 1535 LOperand* context() { return inputs_[0]; } |
1537 LOperand* object() { return inputs_[1]; } | 1536 LOperand* object() { return inputs_[1]; } |
1538 LOperand* key() { return inputs_[2]; } | 1537 LOperand* key() { return inputs_[2]; } |
1539 LOperand* temp_vector() { return temps_[0]; } | 1538 LOperand* temp_vector() { return temps_[0]; } |
1540 | 1539 |
1541 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1540 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1542 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1541 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1543 }; | 1542 }; |
1544 | 1543 |
1545 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
1546 public: | |
1547 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
1548 inputs_[0] = context; | |
1549 temps_[0] = vector; | |
1550 } | |
1551 | |
1552 LOperand* context() { return inputs_[0]; } | |
1553 LOperand* temp_vector() { return temps_[0]; } | |
1554 | |
1555 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
1556 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
1557 | |
1558 Handle<Object> name() const { return hydrogen()->name(); } | |
1559 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
1560 }; | |
1561 | |
1562 | |
1563 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1544 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1564 public: | 1545 public: |
1565 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } | 1546 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } |
1566 | 1547 |
1567 LOperand* context() { return inputs_[0]; } | 1548 LOperand* context() { return inputs_[0]; } |
1568 | 1549 |
1569 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1550 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1570 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1551 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
1571 | 1552 |
1572 int slot_index() { return hydrogen()->slot_index(); } | 1553 int slot_index() { return hydrogen()->slot_index(); } |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2494 | 2475 |
2495 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2476 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2496 }; | 2477 }; |
2497 | 2478 |
2498 #undef DECLARE_HYDROGEN_ACCESSOR | 2479 #undef DECLARE_HYDROGEN_ACCESSOR |
2499 #undef DECLARE_CONCRETE_INSTRUCTION | 2480 #undef DECLARE_CONCRETE_INSTRUCTION |
2500 } // namespace internal | 2481 } // namespace internal |
2501 } // namespace v8 | 2482 } // namespace v8 |
2502 | 2483 |
2503 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2484 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |