| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \ | 214 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \ |
| 215 V(Float32RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ | 215 V(Float32RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ |
| 216 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ | 216 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ |
| 217 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ | 217 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ |
| 218 V(Float32RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \ | 218 V(Float32RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \ |
| 219 V(Float64RoundTiesEven, Operator::kNoProperties, 1, 0, 1) | 219 V(Float64RoundTiesEven, Operator::kNoProperties, 1, 0, 1) |
| 220 | 220 |
| 221 #define MACHINE_TYPE_LIST(V) \ | 221 #define MACHINE_TYPE_LIST(V) \ |
| 222 V(Float32) \ | 222 V(Float32) \ |
| 223 V(Float64) \ | 223 V(Float64) \ |
| 224 V(Simd128) \ |
| 224 V(Int8) \ | 225 V(Int8) \ |
| 225 V(Uint8) \ | 226 V(Uint8) \ |
| 226 V(Int16) \ | 227 V(Int16) \ |
| 227 V(Uint16) \ | 228 V(Uint16) \ |
| 228 V(Int32) \ | 229 V(Int32) \ |
| 229 V(Uint32) \ | 230 V(Uint32) \ |
| 230 V(Int64) \ | 231 V(Int64) \ |
| 231 V(Uint64) \ | 232 V(Uint64) \ |
| 232 V(Pointer) \ | 233 V(Pointer) \ |
| 233 V(AnyTagged) | 234 V(AnyTagged) |
| 234 | 235 |
| 235 | |
| 236 #define MACHINE_REPRESENTATION_LIST(V) \ | 236 #define MACHINE_REPRESENTATION_LIST(V) \ |
| 237 V(kFloat32) \ | 237 V(kFloat32) \ |
| 238 V(kFloat64) \ | 238 V(kFloat64) \ |
| 239 V(kSimd128) \ |
| 239 V(kWord8) \ | 240 V(kWord8) \ |
| 240 V(kWord16) \ | 241 V(kWord16) \ |
| 241 V(kWord32) \ | 242 V(kWord32) \ |
| 242 V(kWord64) \ | 243 V(kWord64) \ |
| 243 V(kTagged) | 244 V(kTagged) |
| 244 | 245 |
| 245 | |
| 246 struct MachineOperatorGlobalCache { | 246 struct MachineOperatorGlobalCache { |
| 247 #define PURE(Name, properties, value_input_count, control_input_count, \ | 247 #define PURE(Name, properties, value_input_count, control_input_count, \ |
| 248 output_count) \ | 248 output_count) \ |
| 249 struct Name##Operator final : public Operator { \ | 249 struct Name##Operator final : public Operator { \ |
| 250 Name##Operator() \ | 250 Name##Operator() \ |
| 251 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \ | 251 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \ |
| 252 value_input_count, 0, control_input_count, output_count, 0, \ | 252 value_input_count, 0, control_input_count, output_count, 0, \ |
| 253 0) {} \ | 253 0) {} \ |
| 254 }; \ | 254 }; \ |
| 255 Name##Operator k##Name; | 255 Name##Operator k##Name; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 case MachineRepresentation::kNone: | 463 case MachineRepresentation::kNone: |
| 464 break; | 464 break; |
| 465 } | 465 } |
| 466 UNREACHABLE(); | 466 UNREACHABLE(); |
| 467 return nullptr; | 467 return nullptr; |
| 468 } | 468 } |
| 469 | 469 |
| 470 } // namespace compiler | 470 } // namespace compiler |
| 471 } // namespace internal | 471 } // namespace internal |
| 472 } // namespace v8 | 472 } // namespace v8 |
| OLD | NEW |