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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 | 1566 |
1567 LOperand* context() { return inputs_[0]; } | 1567 LOperand* context() { return inputs_[0]; } |
1568 LOperand* object() { return inputs_[1]; } | 1568 LOperand* object() { return inputs_[1]; } |
1569 LOperand* key() { return inputs_[2]; } | 1569 LOperand* key() { return inputs_[2]; } |
1570 LOperand* temp_vector() { return temps_[0]; } | 1570 LOperand* temp_vector() { return temps_[0]; } |
1571 | 1571 |
1572 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1572 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1573 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1573 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1574 }; | 1574 }; |
1575 | 1575 |
1576 | 1576 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
1577 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1578 public: | 1577 public: |
1579 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1578 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
1580 LOperand* vector) { | |
1581 inputs_[0] = context; | 1579 inputs_[0] = context; |
1582 inputs_[1] = global_object; | |
1583 temps_[0] = vector; | 1580 temps_[0] = vector; |
1584 } | 1581 } |
1585 | 1582 |
1586 LOperand* context() { return inputs_[0]; } | 1583 LOperand* context() { return inputs_[0]; } |
1587 LOperand* global_object() { return inputs_[1]; } | |
1588 LOperand* temp_vector() { return temps_[0]; } | 1584 LOperand* temp_vector() { return temps_[0]; } |
1589 | 1585 |
1590 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1586 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1591 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1587 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1592 | 1588 |
1593 Handle<Object> name() const { return hydrogen()->name(); } | 1589 Handle<Object> name() const { return hydrogen()->name(); } |
1594 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1590 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1595 }; | 1591 }; |
1596 | 1592 |
1597 | 1593 |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2646 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2642 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2647 }; | 2643 }; |
2648 | 2644 |
2649 #undef DECLARE_HYDROGEN_ACCESSOR | 2645 #undef DECLARE_HYDROGEN_ACCESSOR |
2650 #undef DECLARE_CONCRETE_INSTRUCTION | 2646 #undef DECLARE_CONCRETE_INSTRUCTION |
2651 | 2647 |
2652 } // namespace internal | 2648 } // namespace internal |
2653 } // namespace v8 | 2649 } // namespace v8 |
2654 | 2650 |
2655 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2651 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |