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 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | 1899 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) |
1900 | 1900 |
1901 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1901 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1902 | 1902 |
1903 int arity() const { return hydrogen()->argument_count() - 1; } | 1903 int arity() const { return hydrogen()->argument_count() - 1; } |
1904 }; | 1904 }; |
1905 | 1905 |
1906 | 1906 |
1907 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1907 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1908 public: | 1908 public: |
1909 LCallWithDescriptor(const InterfaceDescriptor* descriptor, | 1909 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
1910 const ZoneList<LOperand*>& operands, | 1910 const ZoneList<LOperand*>& operands, Zone* zone) |
1911 Zone* zone) | 1911 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
1912 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { | |
1913 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); | 1912 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
1914 inputs_.AddAll(operands, zone); | 1913 inputs_.AddAll(operands, zone); |
1915 } | 1914 } |
1916 | 1915 |
1917 LOperand* target() const { return inputs_[0]; } | 1916 LOperand* target() const { return inputs_[0]; } |
1918 | 1917 |
1919 private: | 1918 private: |
1920 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1919 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1921 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1920 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
1922 | 1921 |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2908 | 2907 |
2909 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2908 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2910 }; | 2909 }; |
2911 | 2910 |
2912 #undef DECLARE_HYDROGEN_ACCESSOR | 2911 #undef DECLARE_HYDROGEN_ACCESSOR |
2913 #undef DECLARE_CONCRETE_INSTRUCTION | 2912 #undef DECLARE_CONCRETE_INSTRUCTION |
2914 | 2913 |
2915 } } // namespace v8::internal | 2914 } } // namespace v8::internal |
2916 | 2915 |
2917 #endif // V8_X87_LITHIUM_X87_H_ | 2916 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |