OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_CRANKSHAFT_S390_LITHIUM_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 void PrintDataTo(StringStream* stream) override; | 1938 void PrintDataTo(StringStream* stream) override; |
1939 | 1939 |
1940 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } | 1940 Handle<Map> original_map() { return hydrogen()->original_map().handle(); } |
1941 Handle<Map> transitioned_map() { | 1941 Handle<Map> transitioned_map() { |
1942 return hydrogen()->transitioned_map().handle(); | 1942 return hydrogen()->transitioned_map().handle(); |
1943 } | 1943 } |
1944 ElementsKind from_kind() { return hydrogen()->from_kind(); } | 1944 ElementsKind from_kind() { return hydrogen()->from_kind(); } |
1945 ElementsKind to_kind() { return hydrogen()->to_kind(); } | 1945 ElementsKind to_kind() { return hydrogen()->to_kind(); } |
1946 }; | 1946 }; |
1947 | 1947 |
1948 class LTrapAllocationMemento final : public LTemplateInstruction<0, 1, 1> { | 1948 class LTrapAllocationMemento final : public LTemplateInstruction<0, 1, 2> { |
1949 public: | 1949 public: |
1950 LTrapAllocationMemento(LOperand* object, LOperand* temp) { | 1950 LTrapAllocationMemento(LOperand* object, LOperand* temp1, LOperand* temp2) { |
1951 inputs_[0] = object; | 1951 inputs_[0] = object; |
1952 temps_[0] = temp; | 1952 temps_[0] = temp1; |
| 1953 temps_[1] = temp2; |
1953 } | 1954 } |
1954 | 1955 |
1955 LOperand* object() { return inputs_[0]; } | 1956 LOperand* object() { return inputs_[0]; } |
1956 LOperand* temp() { return temps_[0]; } | 1957 LOperand* temp1() { return temps_[0]; } |
| 1958 LOperand* temp2() { return temps_[1]; } |
1957 | 1959 |
1958 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, "trap-allocation-memento") | 1960 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, "trap-allocation-memento") |
1959 }; | 1961 }; |
1960 | 1962 |
1961 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { | 1963 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
1962 public: | 1964 public: |
1963 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, | 1965 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
1964 LOperand* key, LOperand* current_capacity) { | 1966 LOperand* key, LOperand* current_capacity) { |
1965 inputs_[0] = context; | 1967 inputs_[0] = context; |
1966 inputs_[1] = object; | 1968 inputs_[1] = object; |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2403 | 2405 |
2404 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2406 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2405 }; | 2407 }; |
2406 | 2408 |
2407 #undef DECLARE_HYDROGEN_ACCESSOR | 2409 #undef DECLARE_HYDROGEN_ACCESSOR |
2408 #undef DECLARE_CONCRETE_INSTRUCTION | 2410 #undef DECLARE_CONCRETE_INSTRUCTION |
2409 } // namespace internal | 2411 } // namespace internal |
2410 } // namespace v8 | 2412 } // namespace v8 |
2411 | 2413 |
2412 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2414 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
OLD | NEW |