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-allocator.h" | 9 #include "src/lithium-allocator.h" |
10 #include "src/lithium.h" | 10 #include "src/lithium.h" |
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1826 | 1826 |
1827 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1827 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1828 | 1828 |
1829 int arity() const { return hydrogen()->argument_count() - 1; } | 1829 int arity() const { return hydrogen()->argument_count() - 1; } |
1830 }; | 1830 }; |
1831 | 1831 |
1832 | 1832 |
1833 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1833 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1834 public: | 1834 public: |
1835 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, | 1835 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
1836 ZoneList<LOperand*>& operands, | 1836 const ZoneList<LOperand*>& operands, |
1837 Zone* zone) | 1837 Zone* zone) |
1838 : inputs_(descriptor->environment_length() + 1, zone) { | 1838 : inputs_(descriptor->environment_length() + 1, zone) { |
1839 ASSERT(descriptor->environment_length() + 1 == operands.length()); | 1839 ASSERT(descriptor->environment_length() + 1 == operands.length()); |
1840 inputs_.AddAll(operands, zone); | 1840 inputs_.AddAll(operands, zone); |
1841 } | 1841 } |
1842 | 1842 |
1843 LOperand* target() const { return inputs_[0]; } | 1843 LOperand* target() const { return inputs_[0]; } |
1844 | 1844 |
1845 private: | 1845 private: |
1846 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1846 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2808 | 2808 |
2809 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2809 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2810 }; | 2810 }; |
2811 | 2811 |
2812 #undef DECLARE_HYDROGEN_ACCESSOR | 2812 #undef DECLARE_HYDROGEN_ACCESSOR |
2813 #undef DECLARE_CONCRETE_INSTRUCTION | 2813 #undef DECLARE_CONCRETE_INSTRUCTION |
2814 | 2814 |
2815 } } // namespace v8::int | 2815 } } // namespace v8::int |
2816 | 2816 |
2817 #endif // V8_X64_LITHIUM_X64_H_ | 2817 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |