OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 V(CheckInstanceType) \ | 72 V(CheckInstanceType) \ |
73 V(CheckNonSmi) \ | 73 V(CheckNonSmi) \ |
74 V(CheckMap) \ | 74 V(CheckMap) \ |
75 V(CheckPrototypeMaps) \ | 75 V(CheckPrototypeMaps) \ |
76 V(CheckSmi) \ | 76 V(CheckSmi) \ |
77 V(ClampDToUint8) \ | 77 V(ClampDToUint8) \ |
78 V(ClampIToUint8) \ | 78 V(ClampIToUint8) \ |
79 V(ClampTToUint8) \ | 79 V(ClampTToUint8) \ |
80 V(ClassOfTest) \ | 80 V(ClassOfTest) \ |
81 V(ClassOfTestAndBranch) \ | 81 V(ClassOfTestAndBranch) \ |
| 82 V(CmpConstantEq) \ |
| 83 V(CmpConstantEqAndBranch) \ |
82 V(CmpID) \ | 84 V(CmpID) \ |
83 V(CmpIDAndBranch) \ | 85 V(CmpIDAndBranch) \ |
84 V(CmpJSObjectEq) \ | 86 V(CmpJSObjectEq) \ |
85 V(CmpJSObjectEqAndBranch) \ | 87 V(CmpJSObjectEqAndBranch) \ |
86 V(CmpMapAndBranch) \ | 88 V(CmpMapAndBranch) \ |
87 V(CmpSymbolEq) \ | 89 V(CmpSymbolEq) \ |
88 V(CmpSymbolEqAndBranch) \ | 90 V(CmpSymbolEqAndBranch) \ |
89 V(CmpT) \ | 91 V(CmpT) \ |
90 V(ConstantD) \ | 92 V(ConstantD) \ |
91 V(ConstantI) \ | 93 V(ConstantI) \ |
92 V(ConstantT) \ | 94 V(ConstantT) \ |
93 V(Context) \ | 95 V(Context) \ |
94 V(DeleteProperty) \ | 96 V(DeleteProperty) \ |
95 V(Deoptimize) \ | 97 V(Deoptimize) \ |
96 V(DivI) \ | 98 V(DivI) \ |
97 V(DoubleToI) \ | 99 V(DoubleToI) \ |
| 100 V(ElementsKind) \ |
98 V(ExternalArrayLength) \ | 101 V(ExternalArrayLength) \ |
99 V(FixedArrayLength) \ | 102 V(FixedArrayLength) \ |
100 V(FunctionLiteral) \ | 103 V(FunctionLiteral) \ |
101 V(GetCachedArrayIndex) \ | 104 V(GetCachedArrayIndex) \ |
102 V(GlobalObject) \ | 105 V(GlobalObject) \ |
103 V(GlobalReceiver) \ | 106 V(GlobalReceiver) \ |
104 V(Goto) \ | 107 V(Goto) \ |
105 V(HasCachedArrayIndex) \ | 108 V(HasCachedArrayIndex) \ |
106 V(HasCachedArrayIndexAndBranch) \ | 109 V(HasCachedArrayIndexAndBranch) \ |
107 V(HasInstanceType) \ | 110 V(HasInstanceType) \ |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 public: | 675 public: |
673 LCmpSymbolEqAndBranch(LOperand* left, LOperand* right) { | 676 LCmpSymbolEqAndBranch(LOperand* left, LOperand* right) { |
674 inputs_[0] = left; | 677 inputs_[0] = left; |
675 inputs_[1] = right; | 678 inputs_[1] = right; |
676 } | 679 } |
677 | 680 |
678 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEqAndBranch, "cmp-symbol-eq-and-branch") | 681 DECLARE_CONCRETE_INSTRUCTION(CmpSymbolEqAndBranch, "cmp-symbol-eq-and-branch") |
679 }; | 682 }; |
680 | 683 |
681 | 684 |
| 685 class LCmpConstantEq: public LTemplateInstruction<1, 1, 0> { |
| 686 public: |
| 687 explicit LCmpConstantEq(LOperand* left) { |
| 688 inputs_[0] = left; |
| 689 } |
| 690 |
| 691 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEq, "cmp-constant-eq") |
| 692 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEq) |
| 693 }; |
| 694 |
| 695 |
| 696 class LCmpConstantEqAndBranch: public LControlInstruction<1, 0> { |
| 697 public: |
| 698 explicit LCmpConstantEqAndBranch(LOperand* left) { |
| 699 inputs_[0] = left; |
| 700 } |
| 701 |
| 702 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 703 "cmp-constant-eq-and-branch") |
| 704 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEq) |
| 705 }; |
| 706 |
| 707 |
682 class LIsNull: public LTemplateInstruction<1, 1, 0> { | 708 class LIsNull: public LTemplateInstruction<1, 1, 0> { |
683 public: | 709 public: |
684 explicit LIsNull(LOperand* value) { | 710 explicit LIsNull(LOperand* value) { |
685 inputs_[0] = value; | 711 inputs_[0] = value; |
686 } | 712 } |
687 | 713 |
688 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null") | 714 DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null") |
689 DECLARE_HYDROGEN_ACCESSOR(IsNull) | 715 DECLARE_HYDROGEN_ACCESSOR(IsNull) |
690 | 716 |
691 bool is_strict() const { return hydrogen()->is_strict(); } | 717 bool is_strict() const { return hydrogen()->is_strict(); } |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 public: | 1081 public: |
1056 explicit LFixedArrayLength(LOperand* value) { | 1082 explicit LFixedArrayLength(LOperand* value) { |
1057 inputs_[0] = value; | 1083 inputs_[0] = value; |
1058 } | 1084 } |
1059 | 1085 |
1060 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") | 1086 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") |
1061 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) | 1087 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) |
1062 }; | 1088 }; |
1063 | 1089 |
1064 | 1090 |
| 1091 class LElementsKind: public LTemplateInstruction<1, 1, 0> { |
| 1092 public: |
| 1093 explicit LElementsKind(LOperand* value) { |
| 1094 inputs_[0] = value; |
| 1095 } |
| 1096 |
| 1097 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") |
| 1098 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) |
| 1099 }; |
| 1100 |
| 1101 |
1065 class LValueOf: public LTemplateInstruction<1, 1, 1> { | 1102 class LValueOf: public LTemplateInstruction<1, 1, 1> { |
1066 public: | 1103 public: |
1067 LValueOf(LOperand* value, LOperand* temp) { | 1104 LValueOf(LOperand* value, LOperand* temp) { |
1068 inputs_[0] = value; | 1105 inputs_[0] = value; |
1069 temps_[0] = temp; | 1106 temps_[0] = temp; |
1070 } | 1107 } |
1071 | 1108 |
1072 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | 1109 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") |
1073 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | 1110 DECLARE_HYDROGEN_ACCESSOR(ValueOf) |
1074 }; | 1111 }; |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2289 | 2326 |
2290 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2327 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2291 }; | 2328 }; |
2292 | 2329 |
2293 #undef DECLARE_HYDROGEN_ACCESSOR | 2330 #undef DECLARE_HYDROGEN_ACCESSOR |
2294 #undef DECLARE_CONCRETE_INSTRUCTION | 2331 #undef DECLARE_CONCRETE_INSTRUCTION |
2295 | 2332 |
2296 } } // namespace v8::internal | 2333 } } // namespace v8::internal |
2297 | 2334 |
2298 #endif // V8_ARM_LITHIUM_ARM_H_ | 2335 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |