| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 V(HasInstanceTypeAndBranch) \ | 106 V(HasInstanceTypeAndBranch) \ |
| 107 V(InnerAllocatedObject) \ | 107 V(InnerAllocatedObject) \ |
| 108 V(InstanceOf) \ | 108 V(InstanceOf) \ |
| 109 V(InstanceOfKnownGlobal) \ | 109 V(InstanceOfKnownGlobal) \ |
| 110 V(InstanceSize) \ | 110 V(InstanceSize) \ |
| 111 V(InstructionGap) \ | 111 V(InstructionGap) \ |
| 112 V(Integer32ToDouble) \ | 112 V(Integer32ToDouble) \ |
| 113 V(Integer32ToSmi) \ | 113 V(Integer32ToSmi) \ |
| 114 V(InvokeFunction) \ | 114 V(InvokeFunction) \ |
| 115 V(IsConstructCallAndBranch) \ | 115 V(IsConstructCallAndBranch) \ |
| 116 V(IsNumberAndBranch) \ | |
| 117 V(IsObjectAndBranch) \ | 116 V(IsObjectAndBranch) \ |
| 118 V(IsSmiAndBranch) \ | 117 V(IsSmiAndBranch) \ |
| 119 V(IsStringAndBranch) \ | 118 V(IsStringAndBranch) \ |
| 120 V(IsUndetectableAndBranch) \ | 119 V(IsUndetectableAndBranch) \ |
| 121 V(Label) \ | 120 V(Label) \ |
| 122 V(LazyBailout) \ | 121 V(LazyBailout) \ |
| 123 V(LoadContextSlot) \ | 122 V(LoadContextSlot) \ |
| 124 V(LoadExternalArrayPointer) \ | 123 V(LoadExternalArrayPointer) \ |
| 125 V(LoadFieldByIndex) \ | 124 V(LoadFieldByIndex) \ |
| 126 V(LoadFunctionPrototype) \ | 125 V(LoadFunctionPrototype) \ |
| 127 V(LoadGlobalCell) \ | 126 V(LoadGlobalCell) \ |
| 128 V(LoadGlobalGeneric) \ | 127 V(LoadGlobalGeneric) \ |
| 129 V(LoadKeyedExternal) \ | 128 V(LoadKeyedExternal) \ |
| 130 V(LoadKeyedFixed) \ | 129 V(LoadKeyedFixed) \ |
| 131 V(LoadKeyedFixedDouble) \ | 130 V(LoadKeyedFixedDouble) \ |
| 132 V(LoadKeyedGeneric) \ | 131 V(LoadKeyedGeneric) \ |
| 133 V(LoadNamedField) \ | 132 V(LoadNamedField) \ |
| 134 V(LoadNamedGeneric) \ | 133 V(LoadNamedGeneric) \ |
| 134 V(LoadRoot) \ |
| 135 V(MapEnumLength) \ | 135 V(MapEnumLength) \ |
| 136 V(MathAbs) \ | 136 V(MathAbs) \ |
| 137 V(MathAbsTagged) \ | 137 V(MathAbsTagged) \ |
| 138 V(MathCos) \ | 138 V(MathCos) \ |
| 139 V(MathExp) \ | 139 V(MathExp) \ |
| 140 V(MathFloor) \ | 140 V(MathFloor) \ |
| 141 V(MathFloorOfDiv) \ | 141 V(MathFloorOfDiv) \ |
| 142 V(MathLog) \ | 142 V(MathLog) \ |
| 143 V(MathMinMax) \ | 143 V(MathMinMax) \ |
| 144 V(MathPowHalf) \ | 144 V(MathPowHalf) \ |
| 145 V(MathRound) \ | 145 V(MathRound) \ |
| 146 V(MathSin) \ | 146 V(MathSin) \ |
| 147 V(MathSqrt) \ | 147 V(MathSqrt) \ |
| 148 V(MathTan) \ | 148 V(MathTan) \ |
| 149 V(ModI) \ | 149 V(ModI) \ |
| 150 V(MulConstIS) \ | 150 V(MulConstIS) \ |
| 151 V(MulI) \ | 151 V(MulI) \ |
| 152 V(MulS) \ | 152 V(MulS) \ |
| 153 V(NumberTagD) \ | 153 V(NumberTagD) \ |
| 154 V(NumberTagU) \ | 154 V(NumberTagU) \ |
| 155 V(NumberUntagD) \ | 155 V(NumberUntagD) \ |
| 156 V(OsrEntry) \ | 156 V(OsrEntry) \ |
| 157 V(OuterContext) \ | 157 V(OuterContext) \ |
| 158 V(Parameter) \ | 158 V(Parameter) \ |
| 159 V(Power) \ | 159 V(Power) \ |
| 160 V(PushArgument) \ | 160 V(PushArgument) \ |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 inputs_[0] = value; | 1103 inputs_[0] = value; |
| 1104 temps_[0] = temp; | 1104 temps_[0] = temp; |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 LOperand* value() { return inputs_[0]; } | 1107 LOperand* value() { return inputs_[0]; } |
| 1108 LOperand* temp() { return temps_[0]; } | 1108 LOperand* temp() { return temps_[0]; } |
| 1109 | 1109 |
| 1110 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") | 1110 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") |
| 1111 DECLARE_HYDROGEN_ACCESSOR(CompareMap) | 1111 DECLARE_HYDROGEN_ACCESSOR(CompareMap) |
| 1112 | 1112 |
| 1113 Handle<Map> map() const { return hydrogen()->map(); } | 1113 Handle<Map> map() const { return hydrogen()->map().handle(); } |
| 1114 }; | 1114 }; |
| 1115 | 1115 |
| 1116 | 1116 |
| 1117 class LCmpObjectEqAndBranch V8_FINAL : public LControlInstruction<2, 0> { | 1117 class LCmpObjectEqAndBranch V8_FINAL : public LControlInstruction<2, 0> { |
| 1118 public: | 1118 public: |
| 1119 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { | 1119 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { |
| 1120 inputs_[0] = left; | 1120 inputs_[0] = left; |
| 1121 inputs_[1] = right; | 1121 inputs_[1] = right; |
| 1122 } | 1122 } |
| 1123 | 1123 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 } | 1515 } |
| 1516 | 1516 |
| 1517 LOperand* temp1() { return temps_[0]; } | 1517 LOperand* temp1() { return temps_[0]; } |
| 1518 LOperand* temp2() { return temps_[1]; } | 1518 LOperand* temp2() { return temps_[1]; } |
| 1519 | 1519 |
| 1520 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | 1520 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, |
| 1521 "is-construct-call-and-branch") | 1521 "is-construct-call-and-branch") |
| 1522 }; | 1522 }; |
| 1523 | 1523 |
| 1524 | 1524 |
| 1525 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> { | |
| 1526 public: | |
| 1527 explicit LIsNumberAndBranch(LOperand* value) { | |
| 1528 inputs_[0] = value; | |
| 1529 } | |
| 1530 | |
| 1531 LOperand* value() { return inputs_[0]; } | |
| 1532 | |
| 1533 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") | |
| 1534 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) | |
| 1535 }; | |
| 1536 | |
| 1537 | |
| 1538 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 2> { | 1525 class LIsObjectAndBranch V8_FINAL : public LControlInstruction<1, 2> { |
| 1539 public: | 1526 public: |
| 1540 LIsObjectAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { | 1527 LIsObjectAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { |
| 1541 inputs_[0] = value; | 1528 inputs_[0] = value; |
| 1542 temps_[0] = temp1; | 1529 temps_[0] = temp1; |
| 1543 temps_[1] = temp2; | 1530 temps_[1] = temp2; |
| 1544 } | 1531 } |
| 1545 | 1532 |
| 1546 LOperand* value() { return inputs_[0]; } | 1533 LOperand* value() { return inputs_[0]; } |
| 1547 LOperand* temp1() { return temps_[0]; } | 1534 LOperand* temp1() { return temps_[0]; } |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 | 1775 |
| 1789 LOperand* object() { return inputs_[0]; } | 1776 LOperand* object() { return inputs_[0]; } |
| 1790 | 1777 |
| 1791 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | 1778 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") |
| 1792 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | 1779 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) |
| 1793 | 1780 |
| 1794 Handle<Object> name() const { return hydrogen()->name(); } | 1781 Handle<Object> name() const { return hydrogen()->name(); } |
| 1795 }; | 1782 }; |
| 1796 | 1783 |
| 1797 | 1784 |
| 1785 class LLoadRoot V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
| 1786 public: |
| 1787 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
| 1788 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
| 1789 |
| 1790 Heap::RootListIndex index() const { return hydrogen()->index(); } |
| 1791 }; |
| 1792 |
| 1793 |
| 1798 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1794 class LMapEnumLength V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1799 public: | 1795 public: |
| 1800 explicit LMapEnumLength(LOperand* value) { | 1796 explicit LMapEnumLength(LOperand* value) { |
| 1801 inputs_[0] = value; | 1797 inputs_[0] = value; |
| 1802 } | 1798 } |
| 1803 | 1799 |
| 1804 LOperand* value() { return inputs_[0]; } | 1800 LOperand* value() { return inputs_[0]; } |
| 1805 | 1801 |
| 1806 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1802 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1807 }; | 1803 }; |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2966 | 2962 |
| 2967 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2963 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2968 }; | 2964 }; |
| 2969 | 2965 |
| 2970 #undef DECLARE_HYDROGEN_ACCESSOR | 2966 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2971 #undef DECLARE_CONCRETE_INSTRUCTION | 2967 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2972 | 2968 |
| 2973 } } // namespace v8::internal | 2969 } } // namespace v8::internal |
| 2974 | 2970 |
| 2975 #endif // V8_A64_LITHIUM_A64_H_ | 2971 #endif // V8_A64_LITHIUM_A64_H_ |
| OLD | NEW |