| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 V(Return) \ | 124 V(Return) \ |
| 125 V(SeqStringGetChar) \ | 125 V(SeqStringGetChar) \ |
| 126 V(SeqStringSetChar) \ | 126 V(SeqStringSetChar) \ |
| 127 V(ShiftI) \ | 127 V(ShiftI) \ |
| 128 V(SmiTag) \ | 128 V(SmiTag) \ |
| 129 V(SmiUntag) \ | 129 V(SmiUntag) \ |
| 130 V(StackCheck) \ | 130 V(StackCheck) \ |
| 131 V(StoreCodeEntry) \ | 131 V(StoreCodeEntry) \ |
| 132 V(StoreContextSlot) \ | 132 V(StoreContextSlot) \ |
| 133 V(StoreKeyed) \ | 133 V(StoreKeyed) \ |
| 134 V(StoreKeyedGeneric) \ | |
| 135 V(StoreNamedField) \ | 134 V(StoreNamedField) \ |
| 136 V(StringAdd) \ | 135 V(StringAdd) \ |
| 137 V(StringCharCodeAt) \ | 136 V(StringCharCodeAt) \ |
| 138 V(StringCharFromCode) \ | 137 V(StringCharFromCode) \ |
| 139 V(StringCompareAndBranch) \ | 138 V(StringCompareAndBranch) \ |
| 140 V(SubI) \ | 139 V(SubI) \ |
| 141 V(TaggedToI) \ | 140 V(TaggedToI) \ |
| 142 V(ThisFunction) \ | 141 V(ThisFunction) \ |
| 143 V(TransitionElementsKind) \ | 142 V(TransitionElementsKind) \ |
| 144 V(TrapAllocationMemento) \ | 143 V(TrapAllocationMemento) \ |
| (...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1991 | 1990 |
| 1992 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 1991 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 1993 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 1992 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 1994 | 1993 |
| 1995 void PrintDataTo(StringStream* stream) override; | 1994 void PrintDataTo(StringStream* stream) override; |
| 1996 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 1995 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
| 1997 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 1996 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 1998 }; | 1997 }; |
| 1999 | 1998 |
| 2000 | 1999 |
| 2001 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { | |
| 2002 public: | |
| 2003 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
| 2004 LOperand* value, LOperand* slot, LOperand* vector) { | |
| 2005 inputs_[0] = context; | |
| 2006 inputs_[1] = object; | |
| 2007 inputs_[2] = key; | |
| 2008 inputs_[3] = value; | |
| 2009 temps_[0] = slot; | |
| 2010 temps_[1] = vector; | |
| 2011 } | |
| 2012 | |
| 2013 LOperand* context() { return inputs_[0]; } | |
| 2014 LOperand* object() { return inputs_[1]; } | |
| 2015 LOperand* key() { return inputs_[2]; } | |
| 2016 LOperand* value() { return inputs_[3]; } | |
| 2017 LOperand* temp_slot() { return temps_[0]; } | |
| 2018 LOperand* temp_vector() { return temps_[1]; } | |
| 2019 | |
| 2020 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | |
| 2021 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
| 2022 | |
| 2023 void PrintDataTo(StringStream* stream) override; | |
| 2024 | |
| 2025 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
| 2026 }; | |
| 2027 | |
| 2028 | |
| 2029 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { | 2000 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { |
| 2030 public: | 2001 public: |
| 2031 LTransitionElementsKind(LOperand* object, | 2002 LTransitionElementsKind(LOperand* object, |
| 2032 LOperand* context, | 2003 LOperand* context, |
| 2033 LOperand* new_map_temp) { | 2004 LOperand* new_map_temp) { |
| 2034 inputs_[0] = object; | 2005 inputs_[0] = object; |
| 2035 inputs_[1] = context; | 2006 inputs_[1] = context; |
| 2036 temps_[0] = new_map_temp; | 2007 temps_[0] = new_map_temp; |
| 2037 } | 2008 } |
| 2038 | 2009 |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2561 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2532 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2562 }; | 2533 }; |
| 2563 | 2534 |
| 2564 #undef DECLARE_HYDROGEN_ACCESSOR | 2535 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2565 #undef DECLARE_CONCRETE_INSTRUCTION | 2536 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2566 | 2537 |
| 2567 } // namespace internal | 2538 } // namespace internal |
| 2568 } // namespace v8 | 2539 } // namespace v8 |
| 2569 | 2540 |
| 2570 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2541 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |