| 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 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 | 1592 |
| 1593 LOperand* context() { return inputs_[0]; } | 1593 LOperand* context() { return inputs_[0]; } |
| 1594 LOperand* object() { return inputs_[1]; } | 1594 LOperand* object() { return inputs_[1]; } |
| 1595 LOperand* key() { return inputs_[2]; } | 1595 LOperand* key() { return inputs_[2]; } |
| 1596 LOperand* temp_vector() { return temps_[0]; } | 1596 LOperand* temp_vector() { return temps_[0]; } |
| 1597 | 1597 |
| 1598 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1598 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1599 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1599 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
| 1600 }; | 1600 }; |
| 1601 | 1601 |
| 1602 | 1602 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
| 1603 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
| 1604 public: | 1603 public: |
| 1605 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1604 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
| 1606 LOperand* vector) { | |
| 1607 inputs_[0] = context; | 1605 inputs_[0] = context; |
| 1608 inputs_[1] = global_object; | |
| 1609 temps_[0] = vector; | 1606 temps_[0] = vector; |
| 1610 } | 1607 } |
| 1611 | 1608 |
| 1612 LOperand* context() { return inputs_[0]; } | 1609 LOperand* context() { return inputs_[0]; } |
| 1613 LOperand* global_object() { return inputs_[1]; } | |
| 1614 LOperand* temp_vector() { return temps_[0]; } | 1610 LOperand* temp_vector() { return temps_[0]; } |
| 1615 | 1611 |
| 1616 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1612 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1617 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1613 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1618 | 1614 |
| 1619 Handle<Object> name() const { return hydrogen()->name(); } | 1615 Handle<Object> name() const { return hydrogen()->name(); } |
| 1620 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1616 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
| 1621 }; | 1617 }; |
| 1622 | 1618 |
| 1623 | 1619 |
| (...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2651 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2647 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2652 }; | 2648 }; |
| 2653 | 2649 |
| 2654 #undef DECLARE_HYDROGEN_ACCESSOR | 2650 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2655 #undef DECLARE_CONCRETE_INSTRUCTION | 2651 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2656 | 2652 |
| 2657 } // namespace internal | 2653 } // namespace internal |
| 2658 } // namespace v8 | 2654 } // namespace v8 |
| 2659 | 2655 |
| 2660 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2656 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
| OLD | NEW |