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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_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 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 | 1932 |
1933 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1933 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1934 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1934 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1935 | 1935 |
1936 void PrintDataTo(StringStream* stream) OVERRIDE; | 1936 void PrintDataTo(StringStream* stream) OVERRIDE; |
1937 | 1937 |
1938 int arity() const { return hydrogen()->argument_count() - 1; } | 1938 int arity() const { return hydrogen()->argument_count() - 1; } |
1939 }; | 1939 }; |
1940 | 1940 |
1941 | 1941 |
1942 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 2> { | 1942 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 0> { |
1943 public: | 1943 public: |
1944 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, | 1944 LCallFunction(LOperand* context, LOperand* function) { |
1945 LOperand* vector) { | |
1946 inputs_[0] = context; | 1945 inputs_[0] = context; |
1947 inputs_[1] = function; | 1946 inputs_[1] = function; |
1948 temps_[0] = slot; | |
1949 temps_[1] = vector; | |
1950 } | 1947 } |
1951 | 1948 |
1952 LOperand* context() { return inputs_[0]; } | 1949 LOperand* context() { return inputs_[0]; } |
1953 LOperand* function() { return inputs_[1]; } | 1950 LOperand* function() { return inputs_[1]; } |
1954 LOperand* temp_slot() { return temps_[0]; } | |
1955 LOperand* temp_vector() { return temps_[1]; } | |
1956 | 1951 |
1957 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1952 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1958 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1953 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1959 | 1954 |
1960 int arity() const { return hydrogen()->argument_count() - 1; } | 1955 int arity() const { return hydrogen()->argument_count() - 1; } |
1961 void PrintDataTo(StringStream* stream) OVERRIDE; | |
1962 }; | 1956 }; |
1963 | 1957 |
1964 | 1958 |
1965 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { | 1959 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { |
1966 public: | 1960 public: |
1967 LCallNew(LOperand* context, LOperand* constructor) { | 1961 LCallNew(LOperand* context, LOperand* constructor) { |
1968 inputs_[0] = context; | 1962 inputs_[0] = context; |
1969 inputs_[1] = constructor; | 1963 inputs_[1] = constructor; |
1970 } | 1964 } |
1971 | 1965 |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2886 | 2880 |
2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2881 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2888 }; | 2882 }; |
2889 | 2883 |
2890 #undef DECLARE_HYDROGEN_ACCESSOR | 2884 #undef DECLARE_HYDROGEN_ACCESSOR |
2891 #undef DECLARE_CONCRETE_INSTRUCTION | 2885 #undef DECLARE_CONCRETE_INSTRUCTION |
2892 | 2886 |
2893 } } // namespace v8::internal | 2887 } } // namespace v8::internal |
2894 | 2888 |
2895 #endif // V8_ARM_LITHIUM_ARM_H_ | 2889 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |