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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 V(Integer32ToDouble) \ | 86 V(Integer32ToDouble) \ |
87 V(InvokeFunction) \ | 87 V(InvokeFunction) \ |
88 V(IsStringAndBranch) \ | 88 V(IsStringAndBranch) \ |
89 V(IsSmiAndBranch) \ | 89 V(IsSmiAndBranch) \ |
90 V(IsUndetectableAndBranch) \ | 90 V(IsUndetectableAndBranch) \ |
91 V(Label) \ | 91 V(Label) \ |
92 V(LazyBailout) \ | 92 V(LazyBailout) \ |
93 V(LoadContextSlot) \ | 93 V(LoadContextSlot) \ |
94 V(LoadFieldByIndex) \ | 94 V(LoadFieldByIndex) \ |
95 V(LoadFunctionPrototype) \ | 95 V(LoadFunctionPrototype) \ |
96 V(LoadGlobalGeneric) \ | |
97 V(LoadKeyed) \ | 96 V(LoadKeyed) \ |
98 V(LoadKeyedGeneric) \ | 97 V(LoadKeyedGeneric) \ |
99 V(LoadNamedField) \ | 98 V(LoadNamedField) \ |
100 V(LoadNamedGeneric) \ | 99 V(LoadNamedGeneric) \ |
101 V(LoadRoot) \ | 100 V(LoadRoot) \ |
102 V(MathAbs) \ | 101 V(MathAbs) \ |
103 V(MathClz32) \ | 102 V(MathClz32) \ |
104 V(MathCos) \ | 103 V(MathCos) \ |
105 V(MathExp) \ | 104 V(MathExp) \ |
106 V(MathFloor) \ | 105 V(MathFloor) \ |
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 | 1577 |
1579 LOperand* context() { return inputs_[0]; } | 1578 LOperand* context() { return inputs_[0]; } |
1580 LOperand* object() { return inputs_[1]; } | 1579 LOperand* object() { return inputs_[1]; } |
1581 LOperand* key() { return inputs_[2]; } | 1580 LOperand* key() { return inputs_[2]; } |
1582 LOperand* temp_vector() { return temps_[0]; } | 1581 LOperand* temp_vector() { return temps_[0]; } |
1583 | 1582 |
1584 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1583 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1585 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1584 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1586 }; | 1585 }; |
1587 | 1586 |
1588 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
1589 public: | |
1590 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
1591 inputs_[0] = context; | |
1592 temps_[0] = vector; | |
1593 } | |
1594 | |
1595 LOperand* context() { return inputs_[0]; } | |
1596 LOperand* temp_vector() { return temps_[0]; } | |
1597 | |
1598 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
1599 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
1600 | |
1601 Handle<Object> name() const { return hydrogen()->name(); } | |
1602 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
1603 }; | |
1604 | |
1605 | |
1606 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1587 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1607 public: | 1588 public: |
1608 explicit LLoadContextSlot(LOperand* context) { | 1589 explicit LLoadContextSlot(LOperand* context) { |
1609 inputs_[0] = context; | 1590 inputs_[0] = context; |
1610 } | 1591 } |
1611 | 1592 |
1612 LOperand* context() { return inputs_[0]; } | 1593 LOperand* context() { return inputs_[0]; } |
1613 | 1594 |
1614 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1595 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1615 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1596 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2570 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2590 }; | 2571 }; |
2591 | 2572 |
2592 #undef DECLARE_HYDROGEN_ACCESSOR | 2573 #undef DECLARE_HYDROGEN_ACCESSOR |
2593 #undef DECLARE_CONCRETE_INSTRUCTION | 2574 #undef DECLARE_CONCRETE_INSTRUCTION |
2594 | 2575 |
2595 } // namespace internal | 2576 } // namespace internal |
2596 } // namespace v8 | 2577 } // namespace v8 |
2597 | 2578 |
2598 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2579 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |