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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 | 1803 |
1804 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1804 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1805 | 1805 |
1806 int arity() const { return hydrogen()->argument_count() - 1; } | 1806 int arity() const { return hydrogen()->argument_count() - 1; } |
1807 }; | 1807 }; |
1808 | 1808 |
1809 | 1809 |
1810 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1810 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1811 public: | 1811 public: |
1812 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, | 1812 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
1813 ZoneList<LOperand*>& operands, | 1813 const ZoneList<LOperand*>& operands, |
1814 Zone* zone) | 1814 Zone* zone) |
1815 : descriptor_(descriptor), | 1815 : descriptor_(descriptor), |
1816 inputs_(descriptor->environment_length() + 1, zone) { | 1816 inputs_(descriptor->environment_length() + 1, zone) { |
1817 ASSERT(descriptor->environment_length() + 1 == operands.length()); | 1817 ASSERT(descriptor->environment_length() + 1 == operands.length()); |
1818 inputs_.AddAll(operands, zone); | 1818 inputs_.AddAll(operands, zone); |
1819 } | 1819 } |
1820 | 1820 |
1821 LOperand* target() const { return inputs_[0]; } | 1821 LOperand* target() const { return inputs_[0]; } |
1822 | 1822 |
1823 const CallInterfaceDescriptor* descriptor() { return descriptor_; } | 1823 const CallInterfaceDescriptor* descriptor() { return descriptor_; } |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 | 2797 |
2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2799 }; | 2799 }; |
2800 | 2800 |
2801 #undef DECLARE_HYDROGEN_ACCESSOR | 2801 #undef DECLARE_HYDROGEN_ACCESSOR |
2802 #undef DECLARE_CONCRETE_INSTRUCTION | 2802 #undef DECLARE_CONCRETE_INSTRUCTION |
2803 | 2803 |
2804 } } // namespace v8::internal | 2804 } } // namespace v8::internal |
2805 | 2805 |
2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |