OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_COMPILER_OPCODES_H_ | 5 #ifndef V8_COMPILER_OPCODES_H_ |
6 #define V8_COMPILER_OPCODES_H_ | 6 #define V8_COMPILER_OPCODES_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Opcodes for VirtuaMachine-level operators. | 172 // Opcodes for VirtuaMachine-level operators. |
173 #define SIMPLIFIED_CHANGE_OP_LIST(V) \ | 173 #define SIMPLIFIED_CHANGE_OP_LIST(V) \ |
174 V(ChangeTaggedSignedToInt32) \ | 174 V(ChangeTaggedSignedToInt32) \ |
175 V(ChangeTaggedToInt32) \ | 175 V(ChangeTaggedToInt32) \ |
176 V(ChangeTaggedToUint32) \ | 176 V(ChangeTaggedToUint32) \ |
177 V(ChangeTaggedToFloat64) \ | 177 V(ChangeTaggedToFloat64) \ |
178 V(ChangeInt31ToTaggedSigned) \ | 178 V(ChangeInt31ToTaggedSigned) \ |
179 V(ChangeInt32ToTagged) \ | 179 V(ChangeInt32ToTagged) \ |
180 V(ChangeUint32ToTagged) \ | 180 V(ChangeUint32ToTagged) \ |
181 V(ChangeFloat64ToTagged) \ | 181 V(ChangeFloat64ToTagged) \ |
| 182 V(ChangeFloat64ToTaggedPointer) \ |
182 V(ChangeTaggedToBit) \ | 183 V(ChangeTaggedToBit) \ |
183 V(ChangeBitToTagged) \ | 184 V(ChangeBitToTagged) \ |
184 V(TruncateTaggedToWord32) \ | 185 V(TruncateTaggedToWord32) \ |
185 V(TruncateTaggedToFloat64) \ | 186 V(TruncateTaggedToFloat64) \ |
186 V(TruncateTaggedToBit) | 187 V(TruncateTaggedToBit) |
187 | 188 |
188 #define SIMPLIFIED_CHECKED_OP_LIST(V) \ | 189 #define SIMPLIFIED_CHECKED_OP_LIST(V) \ |
189 V(CheckedInt32Add) \ | 190 V(CheckedInt32Add) \ |
190 V(CheckedInt32Sub) \ | 191 V(CheckedInt32Sub) \ |
191 V(CheckedInt32Div) \ | 192 V(CheckedInt32Div) \ |
192 V(CheckedInt32Mod) \ | 193 V(CheckedInt32Mod) \ |
193 V(CheckedUint32Div) \ | 194 V(CheckedUint32Div) \ |
194 V(CheckedUint32Mod) \ | 195 V(CheckedUint32Mod) \ |
195 V(CheckedInt32Mul) \ | 196 V(CheckedInt32Mul) \ |
196 V(CheckedInt32ToTaggedSigned) \ | 197 V(CheckedInt32ToTaggedSigned) \ |
197 V(CheckedUint32ToInt32) \ | 198 V(CheckedUint32ToInt32) \ |
198 V(CheckedUint32ToTaggedSigned) \ | 199 V(CheckedUint32ToTaggedSigned) \ |
199 V(CheckedFloat64ToInt32) \ | 200 V(CheckedFloat64ToInt32) \ |
200 V(CheckedTaggedSignedToInt32) \ | 201 V(CheckedTaggedSignedToInt32) \ |
201 V(CheckedTaggedToInt32) \ | 202 V(CheckedTaggedToInt32) \ |
202 V(CheckedTruncateTaggedToWord32) \ | 203 V(CheckedTruncateTaggedToWord32) \ |
203 V(CheckedTaggedToFloat64) \ | 204 V(CheckedTaggedToFloat64) \ |
204 V(CheckedTaggedToTaggedSigned) | 205 V(CheckedTaggedToTaggedSigned) \ |
| 206 V(CheckedTaggedToTaggedPointer) |
205 | 207 |
206 #define SIMPLIFIED_COMPARE_BINOP_LIST(V) \ | 208 #define SIMPLIFIED_COMPARE_BINOP_LIST(V) \ |
207 V(NumberEqual) \ | 209 V(NumberEqual) \ |
208 V(NumberLessThan) \ | 210 V(NumberLessThan) \ |
209 V(NumberLessThanOrEqual) \ | 211 V(NumberLessThanOrEqual) \ |
210 V(SpeculativeNumberEqual) \ | 212 V(SpeculativeNumberEqual) \ |
211 V(SpeculativeNumberLessThan) \ | 213 V(SpeculativeNumberLessThan) \ |
212 V(SpeculativeNumberLessThanOrEqual) \ | 214 V(SpeculativeNumberLessThanOrEqual) \ |
213 V(ReferenceEqual) \ | 215 V(ReferenceEqual) \ |
214 V(StringEqual) \ | 216 V(StringEqual) \ |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 } | 788 } |
787 }; | 789 }; |
788 | 790 |
789 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); | 791 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
790 | 792 |
791 } // namespace compiler | 793 } // namespace compiler |
792 } // namespace internal | 794 } // namespace internal |
793 } // namespace v8 | 795 } // namespace v8 |
794 | 796 |
795 #endif // V8_COMPILER_OPCODES_H_ | 797 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |