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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 1) \ | 105 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 1) \ |
106 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 1) \ | 106 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 1) \ |
107 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 1) \ | 107 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 1) \ |
108 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 1) \ | 108 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 1) \ |
109 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 1) \ | 109 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 1) \ |
110 V(Float64Add, Operator::kCommutative, 2, 1) \ | 110 V(Float64Add, Operator::kCommutative, 2, 1) \ |
111 V(Float64Sub, Operator::kNoProperties, 2, 1) \ | 111 V(Float64Sub, Operator::kNoProperties, 2, 1) \ |
112 V(Float64Mul, Operator::kCommutative, 2, 1) \ | 112 V(Float64Mul, Operator::kCommutative, 2, 1) \ |
113 V(Float64Div, Operator::kNoProperties, 2, 1) \ | 113 V(Float64Div, Operator::kNoProperties, 2, 1) \ |
114 V(Float64Mod, Operator::kNoProperties, 2, 1) \ | 114 V(Float64Mod, Operator::kNoProperties, 2, 1) \ |
| 115 V(Float64Sqrt, Operator::kNoProperties, 1, 1) \ |
115 V(Float64Equal, Operator::kCommutative, 2, 1) \ | 116 V(Float64Equal, Operator::kCommutative, 2, 1) \ |
116 V(Float64LessThan, Operator::kNoProperties, 2, 1) \ | 117 V(Float64LessThan, Operator::kNoProperties, 2, 1) \ |
117 V(Float64LessThanOrEqual, Operator::kNoProperties, 2, 1) | 118 V(Float64LessThanOrEqual, Operator::kNoProperties, 2, 1) |
118 | 119 |
119 | 120 |
120 #define MACHINE_TYPE_LIST(V) \ | 121 #define MACHINE_TYPE_LIST(V) \ |
121 V(MachFloat32) \ | 122 V(MachFloat32) \ |
122 V(MachFloat64) \ | 123 V(MachFloat64) \ |
123 V(MachInt8) \ | 124 V(MachInt8) \ |
124 V(MachUint8) \ | 125 V(MachUint8) \ |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 default: | 235 default: |
235 break; | 236 break; |
236 } | 237 } |
237 UNREACHABLE(); | 238 UNREACHABLE(); |
238 return NULL; | 239 return NULL; |
239 } | 240 } |
240 | 241 |
241 } // namespace compiler | 242 } // namespace compiler |
242 } // namespace internal | 243 } // namespace internal |
243 } // namespace v8 | 244 } // namespace v8 |
OLD | NEW |