OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/compiler/machine-operator.h" | 5 #include "src/compiler/machine-operator.h" |
6 | 6 |
7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.h" |
8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 V(Word32Ror, Operator::kNoProperties, 2, 0, 1) \ | 92 V(Word32Ror, Operator::kNoProperties, 2, 0, 1) \ |
93 V(Word32Equal, Operator::kCommutative, 2, 0, 1) \ | 93 V(Word32Equal, Operator::kCommutative, 2, 0, 1) \ |
94 V(Word32Clz, Operator::kNoProperties, 1, 0, 1) \ | 94 V(Word32Clz, Operator::kNoProperties, 1, 0, 1) \ |
95 V(Word64And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 95 V(Word64And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
96 V(Word64Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 96 V(Word64Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
97 V(Word64Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 97 V(Word64Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
98 V(Word64Shl, Operator::kNoProperties, 2, 0, 1) \ | 98 V(Word64Shl, Operator::kNoProperties, 2, 0, 1) \ |
99 V(Word64Shr, Operator::kNoProperties, 2, 0, 1) \ | 99 V(Word64Shr, Operator::kNoProperties, 2, 0, 1) \ |
100 V(Word64Sar, Operator::kNoProperties, 2, 0, 1) \ | 100 V(Word64Sar, Operator::kNoProperties, 2, 0, 1) \ |
101 V(Word64Ror, Operator::kNoProperties, 2, 0, 1) \ | 101 V(Word64Ror, Operator::kNoProperties, 2, 0, 1) \ |
| 102 V(Word64Clz, Operator::kNoProperties, 1, 0, 1) \ |
102 V(Word64Equal, Operator::kCommutative, 2, 0, 1) \ | 103 V(Word64Equal, Operator::kCommutative, 2, 0, 1) \ |
103 V(Int32Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 104 V(Int32Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
104 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \ | 105 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \ |
105 0, 2) \ | 106 0, 2) \ |
106 V(Int32Sub, Operator::kNoProperties, 2, 0, 1) \ | 107 V(Int32Sub, Operator::kNoProperties, 2, 0, 1) \ |
107 V(Int32SubWithOverflow, Operator::kNoProperties, 2, 0, 2) \ | 108 V(Int32SubWithOverflow, Operator::kNoProperties, 2, 0, 2) \ |
108 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 109 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
109 V(Int32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 110 V(Int32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
110 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \ | 111 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \ |
111 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \ | 112 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \ |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 default: | 377 default: |
377 break; | 378 break; |
378 } | 379 } |
379 UNREACHABLE(); | 380 UNREACHABLE(); |
380 return nullptr; | 381 return nullptr; |
381 } | 382 } |
382 | 383 |
383 } // namespace compiler | 384 } // namespace compiler |
384 } // namespace internal | 385 } // namespace internal |
385 } // namespace v8 | 386 } // namespace v8 |
OLD | NEW |