OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1842 | 1842 |
1843 int arity() const { return hydrogen()->argument_count() - 1; } | 1843 int arity() const { return hydrogen()->argument_count() - 1; } |
1844 }; | 1844 }; |
1845 | 1845 |
1846 | 1846 |
1847 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1847 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1848 public: | 1848 public: |
1849 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, | 1849 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
1850 ZoneList<LOperand*>& operands, | 1850 ZoneList<LOperand*>& operands, |
1851 Zone* zone) | 1851 Zone* zone) |
1852 : descriptor_(descriptor), | 1852 : inputs_(descriptor->environment_length() + 1, zone) { |
1853 inputs_(descriptor->environment_length() + 1, zone) { | |
1854 ASSERT(descriptor->environment_length() + 1 == operands.length()); | 1853 ASSERT(descriptor->environment_length() + 1 == operands.length()); |
1855 inputs_.AddAll(operands, zone); | 1854 inputs_.AddAll(operands, zone); |
1856 } | 1855 } |
1857 | 1856 |
1858 LOperand* target() const { return inputs_[0]; } | 1857 LOperand* target() const { return inputs_[0]; } |
1859 | 1858 |
1860 private: | 1859 private: |
1861 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1860 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1862 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1861 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
1863 | 1862 |
1864 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1863 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1865 | 1864 |
1866 int arity() const { return hydrogen()->argument_count() - 1; } | 1865 int arity() const { return hydrogen()->argument_count() - 1; } |
1867 | 1866 |
1868 const CallInterfaceDescriptor* descriptor_; | |
1869 ZoneList<LOperand*> inputs_; | 1867 ZoneList<LOperand*> inputs_; |
1870 | 1868 |
1871 // Iterator support. | 1869 // Iterator support. |
1872 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } | 1870 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } |
1873 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } | 1871 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } |
1874 | 1872 |
1875 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } | 1873 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } |
1876 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } | 1874 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } |
1877 }; | 1875 }; |
1878 | 1876 |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 | 2841 |
2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2845 }; | 2843 }; |
2846 | 2844 |
2847 #undef DECLARE_HYDROGEN_ACCESSOR | 2845 #undef DECLARE_HYDROGEN_ACCESSOR |
2848 #undef DECLARE_CONCRETE_INSTRUCTION | 2846 #undef DECLARE_CONCRETE_INSTRUCTION |
2849 | 2847 |
2850 } } // namespace v8::internal | 2848 } } // namespace v8::internal |
2851 | 2849 |
2852 #endif // V8_IA32_LITHIUM_IA32_H_ | 2850 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |