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_MACHINE_OPERATOR_H_ | 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ |
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ | 6 #define V8_COMPILER_MACHINE_OPERATOR_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/machine-type.h" | 9 #include "src/compiler/machine-type.h" |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 Flags supportedOperators = kNoFlags); | 89 Flags supportedOperators = kNoFlags); |
90 | 90 |
91 const Operator* Word32And(); | 91 const Operator* Word32And(); |
92 const Operator* Word32Or(); | 92 const Operator* Word32Or(); |
93 const Operator* Word32Xor(); | 93 const Operator* Word32Xor(); |
94 const Operator* Word32Shl(); | 94 const Operator* Word32Shl(); |
95 const Operator* Word32Shr(); | 95 const Operator* Word32Shr(); |
96 const Operator* Word32Sar(); | 96 const Operator* Word32Sar(); |
97 const Operator* Word32Ror(); | 97 const Operator* Word32Ror(); |
98 const Operator* Word32Equal(); | 98 const Operator* Word32Equal(); |
| 99 const Operator* Word32Clz(); |
99 bool Word32ShiftIsSafe() const { return flags_ & kWord32ShiftIsSafe; } | 100 bool Word32ShiftIsSafe() const { return flags_ & kWord32ShiftIsSafe; } |
100 | 101 |
101 const Operator* Word64And(); | 102 const Operator* Word64And(); |
102 const Operator* Word64Or(); | 103 const Operator* Word64Or(); |
103 const Operator* Word64Xor(); | 104 const Operator* Word64Xor(); |
104 const Operator* Word64Shl(); | 105 const Operator* Word64Shl(); |
105 const Operator* Word64Shr(); | 106 const Operator* Word64Shr(); |
106 const Operator* Word64Sar(); | 107 const Operator* Word64Sar(); |
107 const Operator* Word64Ror(); | 108 const Operator* Word64Ror(); |
108 const Operator* Word64Equal(); | 109 const Operator* Word64Equal(); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 }; | 247 }; |
247 | 248 |
248 | 249 |
249 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 250 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
250 | 251 |
251 } // namespace compiler | 252 } // namespace compiler |
252 } // namespace internal | 253 } // namespace internal |
253 } // namespace v8 | 254 } // namespace v8 |
254 | 255 |
255 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 256 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
OLD | NEW |