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