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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_PPC_LITHIUM_PPC_H_ |
6 #define V8_PPC_LITHIUM_PPC_H_ | 6 #define V8_PPC_LITHIUM_PPC_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1631 } | 1631 } |
1632 | 1632 |
1633 LOperand* context() { return inputs_[0]; } | 1633 LOperand* context() { return inputs_[0]; } |
1634 LOperand* global_object() { return inputs_[1]; } | 1634 LOperand* global_object() { return inputs_[1]; } |
1635 LOperand* temp_vector() { return temps_[0]; } | 1635 LOperand* temp_vector() { return temps_[0]; } |
1636 | 1636 |
1637 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1637 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1638 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1638 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1639 | 1639 |
1640 Handle<Object> name() const { return hydrogen()->name(); } | 1640 Handle<Object> name() const { return hydrogen()->name(); } |
1641 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1641 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1642 }; | 1642 }; |
1643 | 1643 |
1644 | 1644 |
1645 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1645 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1646 public: | 1646 public: |
1647 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } | 1647 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } |
1648 | 1648 |
1649 LOperand* context() { return inputs_[0]; } | 1649 LOperand* context() { return inputs_[0]; } |
1650 | 1650 |
1651 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1651 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2764 | 2764 |
2765 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2765 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2766 }; | 2766 }; |
2767 | 2767 |
2768 #undef DECLARE_HYDROGEN_ACCESSOR | 2768 #undef DECLARE_HYDROGEN_ACCESSOR |
2769 #undef DECLARE_CONCRETE_INSTRUCTION | 2769 #undef DECLARE_CONCRETE_INSTRUCTION |
2770 } | 2770 } |
2771 } // namespace v8::internal | 2771 } // namespace v8::internal |
2772 | 2772 |
2773 #endif // V8_PPC_LITHIUM_PPC_H_ | 2773 #endif // V8_PPC_LITHIUM_PPC_H_ |
OLD | NEW |