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.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 | 1894 |
1895 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1895 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1896 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1896 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1897 | 1897 |
1898 void PrintDataTo(StringStream* stream) OVERRIDE; | 1898 void PrintDataTo(StringStream* stream) OVERRIDE; |
1899 | 1899 |
1900 int arity() const { return hydrogen()->argument_count() - 1; } | 1900 int arity() const { return hydrogen()->argument_count() - 1; } |
1901 }; | 1901 }; |
1902 | 1902 |
1903 | 1903 |
1904 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 0> { | 1904 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 2> { |
1905 public: | 1905 public: |
1906 LCallFunction(LOperand* context, LOperand* function) { | 1906 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, |
| 1907 LOperand* vector) { |
1907 inputs_[0] = context; | 1908 inputs_[0] = context; |
1908 inputs_[1] = function; | 1909 inputs_[1] = function; |
| 1910 temps_[0] = slot; |
| 1911 temps_[1] = vector; |
1909 } | 1912 } |
1910 | 1913 |
1911 LOperand* context() { return inputs_[0]; } | 1914 LOperand* context() { return inputs_[0]; } |
1912 LOperand* function() { return inputs_[1]; } | 1915 LOperand* function() { return inputs_[1]; } |
| 1916 LOperand* temp_slot() { return temps_[0]; } |
| 1917 LOperand* temp_vector() { return temps_[1]; } |
1913 | 1918 |
1914 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1919 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1915 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1920 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1916 | 1921 |
1917 int arity() const { return hydrogen()->argument_count() - 1; } | 1922 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1923 void PrintDataTo(StringStream* stream) OVERRIDE; |
1918 }; | 1924 }; |
1919 | 1925 |
1920 | 1926 |
1921 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { | 1927 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { |
1922 public: | 1928 public: |
1923 LCallNew(LOperand* context, LOperand* constructor) { | 1929 LCallNew(LOperand* context, LOperand* constructor) { |
1924 inputs_[0] = context; | 1930 inputs_[0] = context; |
1925 inputs_[1] = constructor; | 1931 inputs_[1] = constructor; |
1926 } | 1932 } |
1927 | 1933 |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2821 | 2827 |
2822 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2823 }; | 2829 }; |
2824 | 2830 |
2825 #undef DECLARE_HYDROGEN_ACCESSOR | 2831 #undef DECLARE_HYDROGEN_ACCESSOR |
2826 #undef DECLARE_CONCRETE_INSTRUCTION | 2832 #undef DECLARE_CONCRETE_INSTRUCTION |
2827 | 2833 |
2828 } } // namespace v8::internal | 2834 } } // namespace v8::internal |
2829 | 2835 |
2830 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2836 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |