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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1942 | 1942 |
1943 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1943 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1944 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1944 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1945 | 1945 |
1946 void PrintDataTo(StringStream* stream) OVERRIDE; | 1946 void PrintDataTo(StringStream* stream) OVERRIDE; |
1947 | 1947 |
1948 int arity() const { return hydrogen()->argument_count() - 1; } | 1948 int arity() const { return hydrogen()->argument_count() - 1; } |
1949 }; | 1949 }; |
1950 | 1950 |
1951 | 1951 |
1952 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 2> { | 1952 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 0> { |
1953 public: | 1953 public: |
1954 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, | 1954 explicit LCallFunction(LOperand* context, LOperand* function) { |
1955 LOperand* vector) { | |
1956 inputs_[0] = context; | 1955 inputs_[0] = context; |
1957 inputs_[1] = function; | 1956 inputs_[1] = function; |
1958 temps_[0] = slot; | |
1959 temps_[1] = vector; | |
1960 } | 1957 } |
1961 | 1958 |
1962 LOperand* context() { return inputs_[0]; } | 1959 LOperand* context() { return inputs_[0]; } |
1963 LOperand* function() { return inputs_[1]; } | 1960 LOperand* function() { return inputs_[1]; } |
1964 LOperand* temp_slot() { return temps_[0]; } | |
1965 LOperand* temp_vector() { return temps_[1]; } | |
1966 | 1961 |
1967 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1962 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1968 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1963 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1969 | 1964 |
1970 void PrintDataTo(StringStream* stream) OVERRIDE; | |
1971 int arity() const { return hydrogen()->argument_count() - 1; } | 1965 int arity() const { return hydrogen()->argument_count() - 1; } |
1972 }; | 1966 }; |
1973 | 1967 |
1974 | 1968 |
1975 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { | 1969 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { |
1976 public: | 1970 public: |
1977 LCallNew(LOperand* context, LOperand* constructor) { | 1971 LCallNew(LOperand* context, LOperand* constructor) { |
1978 inputs_[0] = context; | 1972 inputs_[0] = context; |
1979 inputs_[1] = constructor; | 1973 inputs_[1] = constructor; |
1980 } | 1974 } |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 | 2872 |
2879 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2873 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2880 }; | 2874 }; |
2881 | 2875 |
2882 #undef DECLARE_HYDROGEN_ACCESSOR | 2876 #undef DECLARE_HYDROGEN_ACCESSOR |
2883 #undef DECLARE_CONCRETE_INSTRUCTION | 2877 #undef DECLARE_CONCRETE_INSTRUCTION |
2884 | 2878 |
2885 } } // namespace v8::internal | 2879 } } // namespace v8::internal |
2886 | 2880 |
2887 #endif // V8_IA32_LITHIUM_IA32_H_ | 2881 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |