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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \ | 121 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \ |
122 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \ | 122 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \ |
123 V(Int32LessThan, Operator::kNoProperties, 2, 0, 1) \ | 123 V(Int32LessThan, Operator::kNoProperties, 2, 0, 1) \ |
124 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 124 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
125 V(Uint32Div, Operator::kNoProperties, 2, 1, 1) \ | 125 V(Uint32Div, Operator::kNoProperties, 2, 1, 1) \ |
126 V(Uint32LessThan, Operator::kNoProperties, 2, 0, 1) \ | 126 V(Uint32LessThan, Operator::kNoProperties, 2, 0, 1) \ |
127 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 127 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
128 V(Uint32Mod, Operator::kNoProperties, 2, 1, 1) \ | 128 V(Uint32Mod, Operator::kNoProperties, 2, 1, 1) \ |
129 V(Uint32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 129 V(Uint32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
130 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 130 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 131 V(Int64AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \ |
| 132 0, 2) \ |
131 V(Int64Sub, Operator::kNoProperties, 2, 0, 1) \ | 133 V(Int64Sub, Operator::kNoProperties, 2, 0, 1) \ |
| 134 V(Int64SubWithOverflow, Operator::kNoProperties, 2, 0, 2) \ |
132 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 135 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
133 V(Int64Div, Operator::kNoProperties, 2, 1, 1) \ | 136 V(Int64Div, Operator::kNoProperties, 2, 1, 1) \ |
134 V(Int64Mod, Operator::kNoProperties, 2, 1, 1) \ | 137 V(Int64Mod, Operator::kNoProperties, 2, 1, 1) \ |
135 V(Int64LessThan, Operator::kNoProperties, 2, 0, 1) \ | 138 V(Int64LessThan, Operator::kNoProperties, 2, 0, 1) \ |
136 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 139 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
137 V(Uint64Div, Operator::kNoProperties, 2, 1, 1) \ | 140 V(Uint64Div, Operator::kNoProperties, 2, 1, 1) \ |
138 V(Uint64Mod, Operator::kNoProperties, 2, 1, 1) \ | 141 V(Uint64Mod, Operator::kNoProperties, 2, 1, 1) \ |
139 V(Uint64LessThan, Operator::kNoProperties, 2, 0, 1) \ | 142 V(Uint64LessThan, Operator::kNoProperties, 2, 0, 1) \ |
140 V(Uint64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 143 V(Uint64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
141 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 144 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 case MachineRepresentation::kNone: | 431 case MachineRepresentation::kNone: |
429 break; | 432 break; |
430 } | 433 } |
431 UNREACHABLE(); | 434 UNREACHABLE(); |
432 return nullptr; | 435 return nullptr; |
433 } | 436 } |
434 | 437 |
435 } // namespace compiler | 438 } // namespace compiler |
436 } // namespace internal | 439 } // namespace internal |
437 } // namespace v8 | 440 } // namespace v8 |
OLD | NEW |