| 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 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1950 | 1950 |
| 1951 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1951 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
| 1952 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1952 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
| 1953 | 1953 |
| 1954 void PrintDataTo(StringStream* stream) OVERRIDE; | 1954 void PrintDataTo(StringStream* stream) OVERRIDE; |
| 1955 | 1955 |
| 1956 int arity() const { return hydrogen()->argument_count() - 1; } | 1956 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1957 }; | 1957 }; |
| 1958 | 1958 |
| 1959 | 1959 |
| 1960 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 0> { | 1960 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 2> { |
| 1961 public: | 1961 public: |
| 1962 explicit LCallFunction(LOperand* context, LOperand* function) { | 1962 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, |
| 1963 LOperand* vector) { |
| 1963 inputs_[0] = context; | 1964 inputs_[0] = context; |
| 1964 inputs_[1] = function; | 1965 inputs_[1] = function; |
| 1966 temps_[0] = slot; |
| 1967 temps_[1] = vector; |
| 1965 } | 1968 } |
| 1966 | 1969 |
| 1967 LOperand* context() { return inputs_[0]; } | 1970 LOperand* context() { return inputs_[0]; } |
| 1968 LOperand* function() { return inputs_[1]; } | 1971 LOperand* function() { return inputs_[1]; } |
| 1972 LOperand* temp_slot() { return temps_[0]; } |
| 1973 LOperand* temp_vector() { return temps_[1]; } |
| 1969 | 1974 |
| 1970 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1975 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| 1971 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1976 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| 1972 | 1977 |
| 1978 void PrintDataTo(StringStream* stream) OVERRIDE; |
| 1973 int arity() const { return hydrogen()->argument_count() - 1; } | 1979 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1974 }; | 1980 }; |
| 1975 | 1981 |
| 1976 | 1982 |
| 1977 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { | 1983 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1978 public: | 1984 public: |
| 1979 LCallNew(LOperand* context, LOperand* constructor) { | 1985 LCallNew(LOperand* context, LOperand* constructor) { |
| 1980 inputs_[0] = context; | 1986 inputs_[0] = context; |
| 1981 inputs_[1] = constructor; | 1987 inputs_[1] = constructor; |
| 1982 } | 1988 } |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2884 | 2890 |
| 2885 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2886 }; | 2892 }; |
| 2887 | 2893 |
| 2888 #undef DECLARE_HYDROGEN_ACCESSOR | 2894 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2889 #undef DECLARE_CONCRETE_INSTRUCTION | 2895 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2890 | 2896 |
| 2891 } } // namespace v8::internal | 2897 } } // namespace v8::internal |
| 2892 | 2898 |
| 2893 #endif // V8_X87_LITHIUM_X87_H_ | 2899 #endif // V8_X87_LITHIUM_X87_H_ |
| OLD | NEW |