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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_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 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1683 } | 1683 } |
1684 | 1684 |
1685 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1685 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1686 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1686 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1687 | 1687 |
1688 LOperand* context() { return inputs_[0]; } | 1688 LOperand* context() { return inputs_[0]; } |
1689 LOperand* global_object() { return inputs_[1]; } | 1689 LOperand* global_object() { return inputs_[1]; } |
1690 LOperand* temp_vector() { return temps_[0]; } | 1690 LOperand* temp_vector() { return temps_[0]; } |
1691 | 1691 |
1692 Handle<Object> name() const { return hydrogen()->name(); } | 1692 Handle<Object> name() const { return hydrogen()->name(); } |
1693 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1693 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1694 }; | 1694 }; |
1695 | 1695 |
1696 | 1696 |
1697 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1697 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1698 public: | 1698 public: |
1699 explicit LLoadContextSlot(LOperand* context) { | 1699 explicit LLoadContextSlot(LOperand* context) { |
1700 inputs_[0] = context; | 1700 inputs_[0] = context; |
1701 } | 1701 } |
1702 | 1702 |
1703 LOperand* context() { return inputs_[0]; } | 1703 LOperand* context() { return inputs_[0]; } |
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2873 | 2873 |
2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2875 }; | 2875 }; |
2876 | 2876 |
2877 #undef DECLARE_HYDROGEN_ACCESSOR | 2877 #undef DECLARE_HYDROGEN_ACCESSOR |
2878 #undef DECLARE_CONCRETE_INSTRUCTION | 2878 #undef DECLARE_CONCRETE_INSTRUCTION |
2879 | 2879 |
2880 } } // namespace v8::int | 2880 } } // namespace v8::int |
2881 | 2881 |
2882 #endif // V8_X64_LITHIUM_X64_H_ | 2882 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |