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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 111 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
112 V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ | 112 V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ |
113 V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 0, 1) \ | 113 V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 0, 1) \ |
114 V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 114 V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
115 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 0, 1) \ | 115 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 0, 1) \ |
116 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 116 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
117 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 0, 1) \ | 117 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 0, 1) \ |
118 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ | 118 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ |
119 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ | 119 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ |
120 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 0, 1) \ | 120 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 0, 1) \ |
| 121 V(Float32Add, Operator::kCommutative, 2, 0, 1) \ |
| 122 V(Float32Sub, Operator::kNoProperties, 2, 0, 1) \ |
| 123 V(Float32Mul, Operator::kCommutative, 2, 0, 1) \ |
| 124 V(Float32Div, Operator::kNoProperties, 2, 0, 1) \ |
| 125 V(Float32Sqrt, Operator::kNoProperties, 1, 0, 1) \ |
121 V(Float64Add, Operator::kCommutative, 2, 0, 1) \ | 126 V(Float64Add, Operator::kCommutative, 2, 0, 1) \ |
122 V(Float64Sub, Operator::kNoProperties, 2, 0, 1) \ | 127 V(Float64Sub, Operator::kNoProperties, 2, 0, 1) \ |
123 V(Float64Mul, Operator::kCommutative, 2, 0, 1) \ | 128 V(Float64Mul, Operator::kCommutative, 2, 0, 1) \ |
124 V(Float64Div, Operator::kNoProperties, 2, 0, 1) \ | 129 V(Float64Div, Operator::kNoProperties, 2, 0, 1) \ |
125 V(Float64Mod, Operator::kNoProperties, 2, 0, 1) \ | 130 V(Float64Mod, Operator::kNoProperties, 2, 0, 1) \ |
126 V(Float64Sqrt, Operator::kNoProperties, 1, 0, 1) \ | 131 V(Float64Sqrt, Operator::kNoProperties, 1, 0, 1) \ |
127 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \ | 132 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \ |
128 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ | 133 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ |
129 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ | 134 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ |
| 135 V(Float32Equal, Operator::kCommutative, 2, 0, 1) \ |
| 136 V(Float32LessThan, Operator::kNoProperties, 2, 0, 1) \ |
| 137 V(Float32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
130 V(Float64Equal, Operator::kCommutative, 2, 0, 1) \ | 138 V(Float64Equal, Operator::kCommutative, 2, 0, 1) \ |
131 V(Float64LessThan, Operator::kNoProperties, 2, 0, 1) \ | 139 V(Float64LessThan, Operator::kNoProperties, 2, 0, 1) \ |
132 V(Float64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 140 V(Float64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
133 V(Float64ExtractLowWord32, Operator::kNoProperties, 1, 0, 1) \ | 141 V(Float64ExtractLowWord32, Operator::kNoProperties, 1, 0, 1) \ |
134 V(Float64ExtractHighWord32, Operator::kNoProperties, 1, 0, 1) \ | 142 V(Float64ExtractHighWord32, Operator::kNoProperties, 1, 0, 1) \ |
135 V(Float64InsertLowWord32, Operator::kNoProperties, 2, 0, 1) \ | 143 V(Float64InsertLowWord32, Operator::kNoProperties, 2, 0, 1) \ |
136 V(Float64InsertHighWord32, Operator::kNoProperties, 2, 0, 1) \ | 144 V(Float64InsertHighWord32, Operator::kNoProperties, 2, 0, 1) \ |
| 145 V(Float32Max, Operator::kNoProperties, 2, 0, 1) \ |
| 146 V(Float32Min, Operator::kNoProperties, 2, 0, 1) \ |
137 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \ | 147 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \ |
138 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \ | 148 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \ |
139 V(LoadStackPointer, Operator::kNoProperties, 0, 0, 1) | 149 V(LoadStackPointer, Operator::kNoProperties, 0, 0, 1) |
140 | 150 |
141 | 151 |
142 #define MACHINE_TYPE_LIST(V) \ | 152 #define MACHINE_TYPE_LIST(V) \ |
143 V(MachFloat32) \ | 153 V(MachFloat32) \ |
144 V(MachFloat64) \ | 154 V(MachFloat64) \ |
145 V(MachInt8) \ | 155 V(MachInt8) \ |
146 V(MachUint8) \ | 156 V(MachUint8) \ |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 } | 326 } |
317 // Uncached. | 327 // Uncached. |
318 return new (zone_) Operator1<CheckedStoreRepresentation>( | 328 return new (zone_) Operator1<CheckedStoreRepresentation>( |
319 IrOpcode::kCheckedStore, Operator::kNoRead | Operator::kNoThrow, | 329 IrOpcode::kCheckedStore, Operator::kNoRead | Operator::kNoThrow, |
320 "CheckedStore", 4, 1, 1, 0, 1, 0, rep); | 330 "CheckedStore", 4, 1, 1, 0, 1, 0, rep); |
321 } | 331 } |
322 | 332 |
323 } // namespace compiler | 333 } // namespace compiler |
324 } // namespace internal | 334 } // namespace internal |
325 } // namespace v8 | 335 } // namespace v8 |
OLD | NEW |