| 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_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 V(SeqStringSetChar) \ | 128 V(SeqStringSetChar) \ |
| 129 V(ShiftI) \ | 129 V(ShiftI) \ |
| 130 V(SmiTag) \ | 130 V(SmiTag) \ |
| 131 V(SmiUntag) \ | 131 V(SmiUntag) \ |
| 132 V(StackCheck) \ | 132 V(StackCheck) \ |
| 133 V(StoreCodeEntry) \ | 133 V(StoreCodeEntry) \ |
| 134 V(StoreContextSlot) \ | 134 V(StoreContextSlot) \ |
| 135 V(StoreKeyed) \ | 135 V(StoreKeyed) \ |
| 136 V(StoreKeyedGeneric) \ | 136 V(StoreKeyedGeneric) \ |
| 137 V(StoreNamedField) \ | 137 V(StoreNamedField) \ |
| 138 V(StoreNamedGeneric) \ | |
| 139 V(StringAdd) \ | 138 V(StringAdd) \ |
| 140 V(StringCharCodeAt) \ | 139 V(StringCharCodeAt) \ |
| 141 V(StringCharFromCode) \ | 140 V(StringCharFromCode) \ |
| 142 V(StringCompareAndBranch) \ | 141 V(StringCompareAndBranch) \ |
| 143 V(SubI) \ | 142 V(SubI) \ |
| 144 V(SubS) \ | 143 V(SubS) \ |
| 145 V(TaggedToI) \ | 144 V(TaggedToI) \ |
| 146 V(ThisFunction) \ | 145 V(ThisFunction) \ |
| 147 V(TransitionElementsKind) \ | 146 V(TransitionElementsKind) \ |
| 148 V(TrapAllocationMemento) \ | 147 V(TrapAllocationMemento) \ |
| (...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2007 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
| 2009 | 2008 |
| 2010 void PrintDataTo(StringStream* stream) override; | 2009 void PrintDataTo(StringStream* stream) override; |
| 2011 | 2010 |
| 2012 Representation representation() const { | 2011 Representation representation() const { |
| 2013 return hydrogen()->field_representation(); | 2012 return hydrogen()->field_representation(); |
| 2014 } | 2013 } |
| 2015 }; | 2014 }; |
| 2016 | 2015 |
| 2017 | 2016 |
| 2018 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { | |
| 2019 public: | |
| 2020 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value, | |
| 2021 LOperand* slot, LOperand* vector) { | |
| 2022 inputs_[0] = context; | |
| 2023 inputs_[1] = object; | |
| 2024 inputs_[2] = value; | |
| 2025 temps_[0] = slot; | |
| 2026 temps_[1] = vector; | |
| 2027 } | |
| 2028 | |
| 2029 LOperand* context() { return inputs_[0]; } | |
| 2030 LOperand* object() { return inputs_[1]; } | |
| 2031 LOperand* value() { return inputs_[2]; } | |
| 2032 LOperand* temp_slot() { return temps_[0]; } | |
| 2033 LOperand* temp_vector() { return temps_[1]; } | |
| 2034 | |
| 2035 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | |
| 2036 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | |
| 2037 | |
| 2038 void PrintDataTo(StringStream* stream) override; | |
| 2039 | |
| 2040 Handle<Object> name() const { return hydrogen()->name(); } | |
| 2041 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
| 2042 }; | |
| 2043 | |
| 2044 | |
| 2045 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { | 2017 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
| 2046 public: | 2018 public: |
| 2047 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, | 2019 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, |
| 2048 LOperand* backing_store_owner) { | 2020 LOperand* backing_store_owner) { |
| 2049 inputs_[0] = object; | 2021 inputs_[0] = object; |
| 2050 inputs_[1] = key; | 2022 inputs_[1] = key; |
| 2051 inputs_[2] = value; | 2023 inputs_[2] = value; |
| 2052 inputs_[3] = backing_store_owner; | 2024 inputs_[3] = backing_store_owner; |
| 2053 } | 2025 } |
| 2054 | 2026 |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2635 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2607 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2636 }; | 2608 }; |
| 2637 | 2609 |
| 2638 #undef DECLARE_HYDROGEN_ACCESSOR | 2610 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2639 #undef DECLARE_CONCRETE_INSTRUCTION | 2611 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2640 | 2612 |
| 2641 } // namespace internal | 2613 } // namespace internal |
| 2642 } // namespace v8 | 2614 } // namespace v8 |
| 2643 | 2615 |
| 2644 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2616 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
| OLD | NEW |