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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 V(Integer32ToDouble) \ | 85 V(Integer32ToDouble) \ |
86 V(InvokeFunction) \ | 86 V(InvokeFunction) \ |
87 V(IsStringAndBranch) \ | 87 V(IsStringAndBranch) \ |
88 V(IsSmiAndBranch) \ | 88 V(IsSmiAndBranch) \ |
89 V(IsUndetectableAndBranch) \ | 89 V(IsUndetectableAndBranch) \ |
90 V(Label) \ | 90 V(Label) \ |
91 V(LazyBailout) \ | 91 V(LazyBailout) \ |
92 V(LoadContextSlot) \ | 92 V(LoadContextSlot) \ |
93 V(LoadFieldByIndex) \ | 93 V(LoadFieldByIndex) \ |
94 V(LoadFunctionPrototype) \ | 94 V(LoadFunctionPrototype) \ |
95 V(LoadGlobalGeneric) \ | |
96 V(LoadKeyed) \ | 95 V(LoadKeyed) \ |
97 V(LoadKeyedGeneric) \ | 96 V(LoadKeyedGeneric) \ |
98 V(LoadNamedField) \ | 97 V(LoadNamedField) \ |
99 V(LoadNamedGeneric) \ | 98 V(LoadNamedGeneric) \ |
100 V(LoadRoot) \ | 99 V(LoadRoot) \ |
101 V(MathAbs) \ | 100 V(MathAbs) \ |
102 V(MathClz32) \ | 101 V(MathClz32) \ |
103 V(MathCos) \ | 102 V(MathCos) \ |
104 V(MathExp) \ | 103 V(MathExp) \ |
105 V(MathFloorD) \ | 104 V(MathFloorD) \ |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 | 1587 |
1589 LOperand* context() { return inputs_[0]; } | 1588 LOperand* context() { return inputs_[0]; } |
1590 LOperand* object() { return inputs_[1]; } | 1589 LOperand* object() { return inputs_[1]; } |
1591 LOperand* key() { return inputs_[2]; } | 1590 LOperand* key() { return inputs_[2]; } |
1592 LOperand* temp_vector() { return temps_[0]; } | 1591 LOperand* temp_vector() { return temps_[0]; } |
1593 | 1592 |
1594 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1593 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1595 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1594 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1596 }; | 1595 }; |
1597 | 1596 |
1598 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
1599 public: | |
1600 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
1601 inputs_[0] = context; | |
1602 temps_[0] = vector; | |
1603 } | |
1604 | |
1605 LOperand* context() { return inputs_[0]; } | |
1606 LOperand* temp_vector() { return temps_[0]; } | |
1607 | |
1608 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
1609 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
1610 | |
1611 Handle<Object> name() const { return hydrogen()->name(); } | |
1612 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
1613 }; | |
1614 | |
1615 | |
1616 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1597 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1617 public: | 1598 public: |
1618 explicit LLoadContextSlot(LOperand* context) { | 1599 explicit LLoadContextSlot(LOperand* context) { |
1619 inputs_[0] = context; | 1600 inputs_[0] = context; |
1620 } | 1601 } |
1621 | 1602 |
1622 LOperand* context() { return inputs_[0]; } | 1603 LOperand* context() { return inputs_[0]; } |
1623 | 1604 |
1624 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1605 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1625 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1606 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2595 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2576 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2596 }; | 2577 }; |
2597 | 2578 |
2598 #undef DECLARE_HYDROGEN_ACCESSOR | 2579 #undef DECLARE_HYDROGEN_ACCESSOR |
2599 #undef DECLARE_CONCRETE_INSTRUCTION | 2580 #undef DECLARE_CONCRETE_INSTRUCTION |
2600 | 2581 |
2601 } // namespace internal | 2582 } // namespace internal |
2602 } // namespace v8 | 2583 } // namespace v8 |
2603 | 2584 |
2604 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2585 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |