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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 V(CheckFunction) \ | 73 V(CheckFunction) \ |
74 V(CheckInstanceType) \ | 74 V(CheckInstanceType) \ |
75 V(CheckNonSmi) \ | 75 V(CheckNonSmi) \ |
76 V(CheckMaps) \ | 76 V(CheckMaps) \ |
77 V(CheckPrototypeMaps) \ | 77 V(CheckPrototypeMaps) \ |
78 V(CheckSmi) \ | 78 V(CheckSmi) \ |
79 V(ClampDToUint8) \ | 79 V(ClampDToUint8) \ |
80 V(ClampIToUint8) \ | 80 V(ClampIToUint8) \ |
81 V(ClampTToUint8) \ | 81 V(ClampTToUint8) \ |
82 V(ClassOfTestAndBranch) \ | 82 V(ClassOfTestAndBranch) \ |
83 V(CmpIDAndBranch) \ | 83 V(CompareNumericAndBranch) \ |
84 V(CmpMapAndBranch) \ | 84 V(CmpMapAndBranch) \ |
85 V(CmpObjectEqAndBranch) \ | 85 V(CmpObjectEqAndBranch) \ |
86 V(CmpT) \ | 86 V(CmpT) \ |
87 V(ConstantD) \ | 87 V(ConstantD) \ |
88 V(ConstantI) \ | 88 V(ConstantI) \ |
89 V(ConstantS) \ | 89 V(ConstantS) \ |
90 V(ConstantT) \ | 90 V(ConstantT) \ |
91 V(Context) \ | 91 V(Context) \ |
92 V(DateField) \ | 92 V(DateField) \ |
93 V(DebugBreak) \ | 93 V(DebugBreak) \ |
94 V(DeclareGlobals) \ | 94 V(DeclareGlobals) \ |
95 V(Deoptimize) \ | 95 V(Deoptimize) \ |
96 V(DivI) \ | 96 V(DivI) \ |
97 V(DoubleToI) \ | 97 V(DoubleToI) \ |
98 V(DoubleToSmi) \ | 98 V(DoubleToSmi) \ |
99 V(Drop) \ | 99 V(Drop) \ |
100 V(DummyUse) \ | 100 V(DummyUse) \ |
101 V(ElementsKind) \ | 101 V(ElementsKind) \ |
102 V(FixedArrayBaseLength) \ | |
103 V(ForInCacheArray) \ | 102 V(ForInCacheArray) \ |
104 V(ForInPrepareMap) \ | 103 V(ForInPrepareMap) \ |
105 V(FunctionLiteral) \ | 104 V(FunctionLiteral) \ |
106 V(GetCachedArrayIndex) \ | 105 V(GetCachedArrayIndex) \ |
107 V(GlobalObject) \ | 106 V(GlobalObject) \ |
108 V(GlobalReceiver) \ | 107 V(GlobalReceiver) \ |
109 V(Goto) \ | 108 V(Goto) \ |
110 V(HasCachedArrayIndexAndBranch) \ | 109 V(HasCachedArrayIndexAndBranch) \ |
111 V(HasInstanceTypeAndBranch) \ | 110 V(HasInstanceTypeAndBranch) \ |
112 V(In) \ | 111 V(In) \ |
113 V(InnerAllocatedObject) \ | 112 V(InnerAllocatedObject) \ |
114 V(InstanceOf) \ | 113 V(InstanceOf) \ |
115 V(InstanceOfKnownGlobal) \ | 114 V(InstanceOfKnownGlobal) \ |
116 V(InstanceSize) \ | 115 V(InstanceSize) \ |
117 V(InstructionGap) \ | 116 V(InstructionGap) \ |
118 V(Integer32ToDouble) \ | 117 V(Integer32ToDouble) \ |
119 V(Integer32ToSmi) \ | 118 V(Integer32ToSmi) \ |
120 V(InvokeFunction) \ | 119 V(InvokeFunction) \ |
121 V(IsConstructCallAndBranch) \ | 120 V(IsConstructCallAndBranch) \ |
| 121 V(IsNumberAndBranch) \ |
122 V(IsObjectAndBranch) \ | 122 V(IsObjectAndBranch) \ |
123 V(IsStringAndBranch) \ | 123 V(IsStringAndBranch) \ |
124 V(IsSmiAndBranch) \ | 124 V(IsSmiAndBranch) \ |
125 V(IsUndetectableAndBranch) \ | 125 V(IsUndetectableAndBranch) \ |
126 V(Label) \ | 126 V(Label) \ |
127 V(LazyBailout) \ | 127 V(LazyBailout) \ |
128 V(LoadContextSlot) \ | 128 V(LoadContextSlot) \ |
129 V(LoadExternalArrayPointer) \ | 129 V(LoadExternalArrayPointer) \ |
130 V(LoadFunctionPrototype) \ | 130 V(LoadFunctionPrototype) \ |
131 V(LoadGlobalCell) \ | 131 V(LoadGlobalCell) \ |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 LOperand* left() { return inputs_[0]; } | 1101 LOperand* left() { return inputs_[0]; } |
1102 LOperand* right() { return inputs_[1]; } | 1102 LOperand* right() { return inputs_[1]; } |
1103 | 1103 |
1104 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1104 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1105 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1105 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1106 | 1106 |
1107 Token::Value op() const { return hydrogen()->token(); } | 1107 Token::Value op() const { return hydrogen()->token(); } |
1108 }; | 1108 }; |
1109 | 1109 |
1110 | 1110 |
1111 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 1111 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
1112 public: | 1112 public: |
1113 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 1113 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
1114 inputs_[0] = left; | 1114 inputs_[0] = left; |
1115 inputs_[1] = right; | 1115 inputs_[1] = right; |
1116 } | 1116 } |
1117 | 1117 |
1118 LOperand* left() { return inputs_[0]; } | 1118 LOperand* left() { return inputs_[0]; } |
1119 LOperand* right() { return inputs_[1]; } | 1119 LOperand* right() { return inputs_[1]; } |
1120 | 1120 |
1121 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 1121 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
1122 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 1122 "compare-numeric-and-branch") |
| 1123 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
1123 | 1124 |
1124 Token::Value op() const { return hydrogen()->token(); } | 1125 Token::Value op() const { return hydrogen()->token(); } |
1125 bool is_double() const { | 1126 bool is_double() const { |
1126 return hydrogen()->representation().IsDouble(); | 1127 return hydrogen()->representation().IsDouble(); |
1127 } | 1128 } |
1128 | 1129 |
1129 virtual void PrintDataTo(StringStream* stream); | 1130 virtual void PrintDataTo(StringStream* stream); |
1130 }; | 1131 }; |
1131 | 1132 |
1132 | 1133 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 } | 1498 } |
1498 | 1499 |
1499 LOperand* temp1() { return temps_[0]; } | 1500 LOperand* temp1() { return temps_[0]; } |
1500 LOperand* temp2() { return temps_[1]; } | 1501 LOperand* temp2() { return temps_[1]; } |
1501 | 1502 |
1502 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | 1503 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, |
1503 "is-construct-call-and-branch") | 1504 "is-construct-call-and-branch") |
1504 }; | 1505 }; |
1505 | 1506 |
1506 | 1507 |
| 1508 class LIsNumberAndBranch: public LControlInstruction<1, 0> { |
| 1509 public: |
| 1510 explicit LIsNumberAndBranch(LOperand* value) { |
| 1511 inputs_[0] = value; |
| 1512 } |
| 1513 |
| 1514 LOperand* value() { return inputs_[0]; } |
| 1515 |
| 1516 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 1517 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 1518 }; |
| 1519 |
| 1520 |
1507 class LIsObjectAndBranch: public LControlInstruction<1, 2> { | 1521 class LIsObjectAndBranch: public LControlInstruction<1, 2> { |
1508 public: | 1522 public: |
1509 LIsObjectAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { | 1523 LIsObjectAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1510 inputs_[0] = value; | 1524 inputs_[0] = value; |
1511 temps_[0] = temp1; | 1525 temps_[0] = temp1; |
1512 temps_[1] = temp2; | 1526 temps_[1] = temp2; |
1513 } | 1527 } |
1514 | 1528 |
1515 LOperand* value() { return inputs_[0]; } | 1529 LOperand* value() { return inputs_[0]; } |
1516 LOperand* temp1() { return temps_[0]; } | 1530 LOperand* temp1() { return temps_[0]; } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 inputs_[0] = object; | 1623 inputs_[0] = object; |
1610 } | 1624 } |
1611 | 1625 |
1612 LOperand* object() { return inputs_[0]; } | 1626 LOperand* object() { return inputs_[0]; } |
1613 | 1627 |
1614 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic") | 1628 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field-polymorphic") |
1615 DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic) | 1629 DECLARE_HYDROGEN_ACCESSOR(LoadNamedFieldPolymorphic) |
1616 }; | 1630 }; |
1617 | 1631 |
1618 | 1632 |
1619 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { | |
1620 public: | |
1621 explicit LFixedArrayBaseLength(LOperand* value) { | |
1622 inputs_[0] = value; | |
1623 } | |
1624 | |
1625 LOperand* value() { return inputs_[0]; } | |
1626 | |
1627 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, "fixed-array-base-length") | |
1628 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) | |
1629 }; | |
1630 | |
1631 | |
1632 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { | 1633 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { |
1633 public: | 1634 public: |
1634 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | 1635 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") |
1635 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | 1636 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) |
1636 }; | 1637 }; |
1637 | 1638 |
1638 | 1639 |
1639 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> { | 1640 class LLoadExternalArrayPointer: public LTemplateInstruction<1, 1, 0> { |
1640 public: | 1641 public: |
1641 explicit LLoadExternalArrayPointer(LOperand* object) { | 1642 explicit LLoadExternalArrayPointer(LOperand* object) { |
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2898 | 2899 |
2899 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2900 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2900 }; | 2901 }; |
2901 | 2902 |
2902 #undef DECLARE_HYDROGEN_ACCESSOR | 2903 #undef DECLARE_HYDROGEN_ACCESSOR |
2903 #undef DECLARE_CONCRETE_INSTRUCTION | 2904 #undef DECLARE_CONCRETE_INSTRUCTION |
2904 | 2905 |
2905 } } // namespace v8::internal | 2906 } } // namespace v8::internal |
2906 | 2907 |
2907 #endif // V8_A64_LITHIUM_A64_H_ | 2908 #endif // V8_A64_LITHIUM_A64_H_ |
OLD | NEW |