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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 | 1572 |
1573 LOperand* context() { return inputs_[0]; } | 1573 LOperand* context() { return inputs_[0]; } |
1574 LOperand* object() { return inputs_[1]; } | 1574 LOperand* object() { return inputs_[1]; } |
1575 LOperand* key() { return inputs_[2]; } | 1575 LOperand* key() { return inputs_[2]; } |
1576 LOperand* temp_vector() { return temps_[0]; } | 1576 LOperand* temp_vector() { return temps_[0]; } |
1577 | 1577 |
1578 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1578 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1579 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1579 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1580 }; | 1580 }; |
1581 | 1581 |
1582 | 1582 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
1583 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1584 public: | 1583 public: |
1585 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1584 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
1586 LOperand* vector) { | |
1587 inputs_[0] = context; | 1585 inputs_[0] = context; |
1588 inputs_[1] = global_object; | |
1589 temps_[0] = vector; | 1586 temps_[0] = vector; |
1590 } | 1587 } |
1591 | 1588 |
1592 LOperand* context() { return inputs_[0]; } | 1589 LOperand* context() { return inputs_[0]; } |
1593 LOperand* global_object() { return inputs_[1]; } | |
1594 LOperand* temp_vector() { return temps_[0]; } | 1590 LOperand* temp_vector() { return temps_[0]; } |
1595 | 1591 |
1596 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1592 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1597 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1593 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1598 | 1594 |
1599 Handle<Object> name() const { return hydrogen()->name(); } | 1595 Handle<Object> name() const { return hydrogen()->name(); } |
1600 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1596 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1601 }; | 1597 }; |
1602 | 1598 |
1603 | 1599 |
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2664 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2660 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2665 }; | 2661 }; |
2666 | 2662 |
2667 #undef DECLARE_HYDROGEN_ACCESSOR | 2663 #undef DECLARE_HYDROGEN_ACCESSOR |
2668 #undef DECLARE_CONCRETE_INSTRUCTION | 2664 #undef DECLARE_CONCRETE_INSTRUCTION |
2669 | 2665 |
2670 } // namespace internal | 2666 } // namespace internal |
2671 } // namespace v8 | 2667 } // namespace v8 |
2672 | 2668 |
2673 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2669 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |