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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 V(Int32LessThan, Operator::kNoProperties, 2, 0, 1) \ | 94 V(Int32LessThan, Operator::kNoProperties, 2, 0, 1) \ |
95 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 95 V(Int32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
96 V(Uint32Div, Operator::kNoProperties, 2, 1, 1) \ | 96 V(Uint32Div, Operator::kNoProperties, 2, 1, 1) \ |
97 V(Uint32LessThan, Operator::kNoProperties, 2, 0, 1) \ | 97 V(Uint32LessThan, Operator::kNoProperties, 2, 0, 1) \ |
98 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 98 V(Uint32LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
99 V(Uint32Mod, Operator::kNoProperties, 2, 1, 1) \ | 99 V(Uint32Mod, Operator::kNoProperties, 2, 1, 1) \ |
100 V(Uint32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 100 V(Uint32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
101 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 101 V(Int64Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
102 V(Int64Sub, Operator::kNoProperties, 2, 0, 1) \ | 102 V(Int64Sub, Operator::kNoProperties, 2, 0, 1) \ |
103 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 103 V(Int64Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
104 V(Int64Div, Operator::kNoProperties, 2, 0, 1) \ | 104 V(Int64Div, Operator::kNoProperties, 2, 1, 1) \ |
105 V(Int64Mod, Operator::kNoProperties, 2, 0, 1) \ | 105 V(Int64Mod, Operator::kNoProperties, 2, 1, 1) \ |
106 V(Int64LessThan, Operator::kNoProperties, 2, 0, 1) \ | 106 V(Int64LessThan, Operator::kNoProperties, 2, 0, 1) \ |
107 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 107 V(Int64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
108 V(Uint64Div, Operator::kNoProperties, 2, 0, 1) \ | 108 V(Uint64Div, Operator::kNoProperties, 2, 1, 1) \ |
| 109 V(Uint64Mod, Operator::kNoProperties, 2, 1, 1) \ |
109 V(Uint64LessThan, Operator::kNoProperties, 2, 0, 1) \ | 110 V(Uint64LessThan, Operator::kNoProperties, 2, 0, 1) \ |
110 V(Uint64Mod, Operator::kNoProperties, 2, 0, 1) \ | 111 V(Uint64LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
111 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 112 V(ChangeFloat32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
112 V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ | 113 V(ChangeFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ |
113 V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 0, 1) \ | 114 V(ChangeFloat64ToUint32, Operator::kNoProperties, 1, 0, 1) \ |
114 V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 115 V(ChangeInt32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
115 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 0, 1) \ | 116 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 0, 1) \ |
116 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ | 117 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ |
117 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 0, 1) \ | 118 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 0, 1) \ |
118 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ | 119 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ |
119 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ | 120 V(TruncateFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ |
120 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 0, 1) \ | 121 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 0, 1) \ |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 340 } |
340 // Uncached. | 341 // Uncached. |
341 return new (zone_) Operator1<CheckedStoreRepresentation>( | 342 return new (zone_) Operator1<CheckedStoreRepresentation>( |
342 IrOpcode::kCheckedStore, Operator::kNoRead | Operator::kNoThrow, | 343 IrOpcode::kCheckedStore, Operator::kNoRead | Operator::kNoThrow, |
343 "CheckedStore", 4, 1, 1, 0, 1, 0, rep); | 344 "CheckedStore", 4, 1, 1, 0, 1, 0, rep); |
344 } | 345 } |
345 | 346 |
346 } // namespace compiler | 347 } // namespace compiler |
347 } // namespace internal | 348 } // namespace internal |
348 } // namespace v8 | 349 } // namespace v8 |
OLD | NEW |