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_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 V(InvokeFunction) \ | 84 V(InvokeFunction) \ |
85 V(IsStringAndBranch) \ | 85 V(IsStringAndBranch) \ |
86 V(IsSmiAndBranch) \ | 86 V(IsSmiAndBranch) \ |
87 V(IsUndetectableAndBranch) \ | 87 V(IsUndetectableAndBranch) \ |
88 V(Label) \ | 88 V(Label) \ |
89 V(LazyBailout) \ | 89 V(LazyBailout) \ |
90 V(LoadContextSlot) \ | 90 V(LoadContextSlot) \ |
91 V(LoadRoot) \ | 91 V(LoadRoot) \ |
92 V(LoadFieldByIndex) \ | 92 V(LoadFieldByIndex) \ |
93 V(LoadFunctionPrototype) \ | 93 V(LoadFunctionPrototype) \ |
94 V(LoadGlobalGeneric) \ | |
95 V(LoadKeyed) \ | 94 V(LoadKeyed) \ |
96 V(LoadKeyedGeneric) \ | 95 V(LoadKeyedGeneric) \ |
97 V(LoadNamedField) \ | 96 V(LoadNamedField) \ |
98 V(LoadNamedGeneric) \ | 97 V(LoadNamedGeneric) \ |
99 V(MathAbs) \ | 98 V(MathAbs) \ |
100 V(MathCos) \ | 99 V(MathCos) \ |
101 V(MathSin) \ | 100 V(MathSin) \ |
102 V(MathExp) \ | 101 V(MathExp) \ |
103 V(MathClz32) \ | 102 V(MathClz32) \ |
104 V(MathFloor) \ | 103 V(MathFloor) \ |
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 | 1588 |
1590 LOperand* context() { return inputs_[0]; } | 1589 LOperand* context() { return inputs_[0]; } |
1591 LOperand* object() { return inputs_[1]; } | 1590 LOperand* object() { return inputs_[1]; } |
1592 LOperand* key() { return inputs_[2]; } | 1591 LOperand* key() { return inputs_[2]; } |
1593 LOperand* temp_vector() { return temps_[0]; } | 1592 LOperand* temp_vector() { return temps_[0]; } |
1594 | 1593 |
1595 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1594 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1596 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1595 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1597 }; | 1596 }; |
1598 | 1597 |
1599 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
1600 public: | |
1601 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
1602 inputs_[0] = context; | |
1603 temps_[0] = vector; | |
1604 } | |
1605 | |
1606 LOperand* context() { return inputs_[0]; } | |
1607 LOperand* temp_vector() { return temps_[0]; } | |
1608 | |
1609 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
1610 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
1611 | |
1612 Handle<Object> name() const { return hydrogen()->name(); } | |
1613 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
1614 }; | |
1615 | |
1616 | |
1617 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1598 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1618 public: | 1599 public: |
1619 explicit LLoadContextSlot(LOperand* context) { | 1600 explicit LLoadContextSlot(LOperand* context) { |
1620 inputs_[0] = context; | 1601 inputs_[0] = context; |
1621 } | 1602 } |
1622 | 1603 |
1623 LOperand* context() { return inputs_[0]; } | 1604 LOperand* context() { return inputs_[0]; } |
1624 | 1605 |
1625 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1606 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1626 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1607 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2578 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2559 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2579 }; | 2560 }; |
2580 | 2561 |
2581 #undef DECLARE_HYDROGEN_ACCESSOR | 2562 #undef DECLARE_HYDROGEN_ACCESSOR |
2582 #undef DECLARE_CONCRETE_INSTRUCTION | 2563 #undef DECLARE_CONCRETE_INSTRUCTION |
2583 | 2564 |
2584 } // namespace internal | 2565 } // namespace internal |
2585 } // namespace v8 | 2566 } // namespace v8 |
2586 | 2567 |
2587 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2568 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |