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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 } | 1706 } |
1707 | 1707 |
1708 LOperand* context() { return inputs_[0]; } | 1708 LOperand* context() { return inputs_[0]; } |
1709 LOperand* global_object() { return inputs_[1]; } | 1709 LOperand* global_object() { return inputs_[1]; } |
1710 LOperand* temp_vector() { return temps_[0]; } | 1710 LOperand* temp_vector() { return temps_[0]; } |
1711 | 1711 |
1712 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1712 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1713 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1713 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1714 | 1714 |
1715 Handle<Object> name() const { return hydrogen()->name(); } | 1715 Handle<Object> name() const { return hydrogen()->name(); } |
1716 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1716 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1717 }; | 1717 }; |
1718 | 1718 |
1719 | 1719 |
1720 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1720 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1721 public: | 1721 public: |
1722 explicit LLoadContextSlot(LOperand* context) { | 1722 explicit LLoadContextSlot(LOperand* context) { |
1723 inputs_[0] = context; | 1723 inputs_[0] = context; |
1724 } | 1724 } |
1725 | 1725 |
1726 LOperand* context() { return inputs_[0]; } | 1726 LOperand* context() { return inputs_[0]; } |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2890 | 2890 |
2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2892 }; | 2892 }; |
2893 | 2893 |
2894 #undef DECLARE_HYDROGEN_ACCESSOR | 2894 #undef DECLARE_HYDROGEN_ACCESSOR |
2895 #undef DECLARE_CONCRETE_INSTRUCTION | 2895 #undef DECLARE_CONCRETE_INSTRUCTION |
2896 | 2896 |
2897 } } // namespace v8::internal | 2897 } } // namespace v8::internal |
2898 | 2898 |
2899 #endif // V8_IA32_LITHIUM_IA32_H_ | 2899 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |