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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1714 } | 1714 } |
1715 | 1715 |
1716 LOperand* context() { return inputs_[0]; } | 1716 LOperand* context() { return inputs_[0]; } |
1717 LOperand* global_object() { return inputs_[1]; } | 1717 LOperand* global_object() { return inputs_[1]; } |
1718 LOperand* temp_vector() { return temps_[0]; } | 1718 LOperand* temp_vector() { return temps_[0]; } |
1719 | 1719 |
1720 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1720 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1721 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1721 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1722 | 1722 |
1723 Handle<Object> name() const { return hydrogen()->name(); } | 1723 Handle<Object> name() const { return hydrogen()->name(); } |
1724 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1724 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1725 }; | 1725 }; |
1726 | 1726 |
1727 | 1727 |
1728 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1728 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1729 public: | 1729 public: |
1730 explicit LLoadContextSlot(LOperand* context) { | 1730 explicit LLoadContextSlot(LOperand* context) { |
1731 inputs_[0] = context; | 1731 inputs_[0] = context; |
1732 } | 1732 } |
1733 | 1733 |
1734 LOperand* context() { return inputs_[0]; } | 1734 LOperand* context() { return inputs_[0]; } |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2902 | 2902 |
2903 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2903 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2904 }; | 2904 }; |
2905 | 2905 |
2906 #undef DECLARE_HYDROGEN_ACCESSOR | 2906 #undef DECLARE_HYDROGEN_ACCESSOR |
2907 #undef DECLARE_CONCRETE_INSTRUCTION | 2907 #undef DECLARE_CONCRETE_INSTRUCTION |
2908 | 2908 |
2909 } } // namespace v8::internal | 2909 } } // namespace v8::internal |
2910 | 2910 |
2911 #endif // V8_X87_LITHIUM_X87_H_ | 2911 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |