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 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | 1871 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) |
1872 | 1872 |
1873 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1873 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1874 | 1874 |
1875 int arity() const { return hydrogen()->argument_count() - 1; } | 1875 int arity() const { return hydrogen()->argument_count() - 1; } |
1876 }; | 1876 }; |
1877 | 1877 |
1878 | 1878 |
1879 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1879 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1880 public: | 1880 public: |
1881 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, | 1881 LCallWithDescriptor(const InterfaceDescriptor* descriptor, |
1882 const ZoneList<LOperand*>& operands, | 1882 const ZoneList<LOperand*>& operands, |
1883 Zone* zone) | 1883 Zone* zone) |
1884 : inputs_(descriptor->environment_length() + 1, zone) { | 1884 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
1885 ASSERT(descriptor->environment_length() + 1 == operands.length()); | 1885 ASSERT(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
1886 inputs_.AddAll(operands, zone); | 1886 inputs_.AddAll(operands, zone); |
1887 } | 1887 } |
1888 | 1888 |
1889 LOperand* target() const { return inputs_[0]; } | 1889 LOperand* target() const { return inputs_[0]; } |
1890 | 1890 |
1891 private: | 1891 private: |
1892 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1892 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1893 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1893 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
1894 | 1894 |
1895 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1895 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2879 | 2879 |
2880 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2880 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2881 }; | 2881 }; |
2882 | 2882 |
2883 #undef DECLARE_HYDROGEN_ACCESSOR | 2883 #undef DECLARE_HYDROGEN_ACCESSOR |
2884 #undef DECLARE_CONCRETE_INSTRUCTION | 2884 #undef DECLARE_CONCRETE_INSTRUCTION |
2885 | 2885 |
2886 } } // namespace v8::internal | 2886 } } // namespace v8::internal |
2887 | 2887 |
2888 #endif // V8_X87_LITHIUM_X87_H_ | 2888 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |