| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 | 1591 |
| 1592 LOperand* context() { return inputs_[0]; } | 1592 LOperand* context() { return inputs_[0]; } |
| 1593 LOperand* object() { return inputs_[1]; } | 1593 LOperand* object() { return inputs_[1]; } |
| 1594 LOperand* key() { return inputs_[2]; } | 1594 LOperand* key() { return inputs_[2]; } |
| 1595 LOperand* temp_vector() { return temps_[0]; } | 1595 LOperand* temp_vector() { return temps_[0]; } |
| 1596 | 1596 |
| 1597 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1597 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1598 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1598 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
| 1599 }; | 1599 }; |
| 1600 | 1600 |
| 1601 | 1601 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
| 1602 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
| 1603 public: | 1602 public: |
| 1604 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1603 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
| 1605 LOperand* vector) { | |
| 1606 inputs_[0] = context; | 1604 inputs_[0] = context; |
| 1607 inputs_[1] = global_object; | |
| 1608 temps_[0] = vector; | 1605 temps_[0] = vector; |
| 1609 } | 1606 } |
| 1610 | 1607 |
| 1611 LOperand* context() { return inputs_[0]; } | 1608 LOperand* context() { return inputs_[0]; } |
| 1612 LOperand* global_object() { return inputs_[1]; } | |
| 1613 LOperand* temp_vector() { return temps_[0]; } | 1609 LOperand* temp_vector() { return temps_[0]; } |
| 1614 | 1610 |
| 1615 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1611 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1616 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1612 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1617 | 1613 |
| 1618 Handle<Object> name() const { return hydrogen()->name(); } | 1614 Handle<Object> name() const { return hydrogen()->name(); } |
| 1619 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1615 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
| 1620 }; | 1616 }; |
| 1621 | 1617 |
| 1622 | 1618 |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2667 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2663 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2668 }; | 2664 }; |
| 2669 | 2665 |
| 2670 #undef DECLARE_HYDROGEN_ACCESSOR | 2666 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2671 #undef DECLARE_CONCRETE_INSTRUCTION | 2667 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2672 | 2668 |
| 2673 } // namespace internal | 2669 } // namespace internal |
| 2674 } // namespace v8 | 2670 } // namespace v8 |
| 2675 | 2671 |
| 2676 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2672 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |