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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 } | 1656 } |
1657 | 1657 |
1658 LOperand* context() { return inputs_[0]; } | 1658 LOperand* context() { return inputs_[0]; } |
1659 LOperand* global_object() { return inputs_[1]; } | 1659 LOperand* global_object() { return inputs_[1]; } |
1660 LOperand* temp_vector() { return temps_[0]; } | 1660 LOperand* temp_vector() { return temps_[0]; } |
1661 | 1661 |
1662 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1662 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1663 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1663 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1664 | 1664 |
1665 Handle<Object> name() const { return hydrogen()->name(); } | 1665 Handle<Object> name() const { return hydrogen()->name(); } |
1666 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1666 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1667 }; | 1667 }; |
1668 | 1668 |
1669 | 1669 |
1670 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1670 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1671 public: | 1671 public: |
1672 explicit LLoadContextSlot(LOperand* context) { | 1672 explicit LLoadContextSlot(LOperand* context) { |
1673 inputs_[0] = context; | 1673 inputs_[0] = context; |
1674 } | 1674 } |
1675 | 1675 |
1676 LOperand* context() { return inputs_[0]; } | 1676 LOperand* context() { return inputs_[0]; } |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2850 | 2850 |
2851 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2851 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2852 }; | 2852 }; |
2853 | 2853 |
2854 #undef DECLARE_HYDROGEN_ACCESSOR | 2854 #undef DECLARE_HYDROGEN_ACCESSOR |
2855 #undef DECLARE_CONCRETE_INSTRUCTION | 2855 #undef DECLARE_CONCRETE_INSTRUCTION |
2856 | 2856 |
2857 } } // namespace v8::internal | 2857 } } // namespace v8::internal |
2858 | 2858 |
2859 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2859 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |