| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 V(InvokeFunction) \ | 82 V(InvokeFunction) \ |
| 83 V(IsStringAndBranch) \ | 83 V(IsStringAndBranch) \ |
| 84 V(IsSmiAndBranch) \ | 84 V(IsSmiAndBranch) \ |
| 85 V(IsUndetectableAndBranch) \ | 85 V(IsUndetectableAndBranch) \ |
| 86 V(Label) \ | 86 V(Label) \ |
| 87 V(LazyBailout) \ | 87 V(LazyBailout) \ |
| 88 V(LoadContextSlot) \ | 88 V(LoadContextSlot) \ |
| 89 V(LoadRoot) \ | 89 V(LoadRoot) \ |
| 90 V(LoadFieldByIndex) \ | 90 V(LoadFieldByIndex) \ |
| 91 V(LoadFunctionPrototype) \ | 91 V(LoadFunctionPrototype) \ |
| 92 V(LoadGlobalGeneric) \ | |
| 93 V(LoadKeyed) \ | 92 V(LoadKeyed) \ |
| 94 V(LoadKeyedGeneric) \ | 93 V(LoadKeyedGeneric) \ |
| 95 V(LoadNamedField) \ | 94 V(LoadNamedField) \ |
| 96 V(LoadNamedGeneric) \ | 95 V(LoadNamedGeneric) \ |
| 97 V(MathAbs) \ | 96 V(MathAbs) \ |
| 98 V(MathClz32) \ | 97 V(MathClz32) \ |
| 99 V(MathCos) \ | 98 V(MathCos) \ |
| 100 V(MathExp) \ | 99 V(MathExp) \ |
| 101 V(MathFloorD) \ | 100 V(MathFloorD) \ |
| 102 V(MathFloorI) \ | 101 V(MathFloorI) \ |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1581 | 1580 |
| 1582 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1581 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1583 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1582 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
| 1584 | 1583 |
| 1585 LOperand* context() { return inputs_[0]; } | 1584 LOperand* context() { return inputs_[0]; } |
| 1586 LOperand* object() { return inputs_[1]; } | 1585 LOperand* object() { return inputs_[1]; } |
| 1587 LOperand* key() { return inputs_[2]; } | 1586 LOperand* key() { return inputs_[2]; } |
| 1588 LOperand* temp_vector() { return temps_[0]; } | 1587 LOperand* temp_vector() { return temps_[0]; } |
| 1589 }; | 1588 }; |
| 1590 | 1589 |
| 1591 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
| 1592 public: | |
| 1593 explicit LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
| 1594 inputs_[0] = context; | |
| 1595 temps_[0] = vector; | |
| 1596 } | |
| 1597 | |
| 1598 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
| 1599 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
| 1600 | |
| 1601 LOperand* context() { return inputs_[0]; } | |
| 1602 LOperand* temp_vector() { return temps_[0]; } | |
| 1603 | |
| 1604 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1605 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
| 1606 }; | |
| 1607 | |
| 1608 | |
| 1609 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1590 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1610 public: | 1591 public: |
| 1611 explicit LLoadContextSlot(LOperand* context) { | 1592 explicit LLoadContextSlot(LOperand* context) { |
| 1612 inputs_[0] = context; | 1593 inputs_[0] = context; |
| 1613 } | 1594 } |
| 1614 | 1595 |
| 1615 LOperand* context() { return inputs_[0]; } | 1596 LOperand* context() { return inputs_[0]; } |
| 1616 | 1597 |
| 1617 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1598 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1618 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1599 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| (...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2560 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2580 }; | 2561 }; |
| 2581 | 2562 |
| 2582 #undef DECLARE_HYDROGEN_ACCESSOR | 2563 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2583 #undef DECLARE_CONCRETE_INSTRUCTION | 2564 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2584 | 2565 |
| 2585 } // namespace internal | 2566 } // namespace internal |
| 2586 } // namespace v8 | 2567 } // namespace v8 |
| 2587 | 2568 |
| 2588 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2569 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |