OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/instruction-scheduler.h" | 5 #include "src/compiler/instruction-scheduler.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace compiler { | 9 namespace compiler { |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 case kArmFloat32Min: | 108 case kArmFloat32Min: |
109 case kArmFloat64Min: | 109 case kArmFloat64Min: |
110 case kArmFloat64SilenceNaN: | 110 case kArmFloat64SilenceNaN: |
111 case kArmFloat32x4Splat: | 111 case kArmFloat32x4Splat: |
112 case kArmFloat32x4ExtractLane: | 112 case kArmFloat32x4ExtractLane: |
113 case kArmFloat32x4ReplaceLane: | 113 case kArmFloat32x4ReplaceLane: |
114 case kArmFloat32x4FromInt32x4: | 114 case kArmFloat32x4FromInt32x4: |
115 case kArmFloat32x4FromUint32x4: | 115 case kArmFloat32x4FromUint32x4: |
116 case kArmFloat32x4Abs: | 116 case kArmFloat32x4Abs: |
117 case kArmFloat32x4Neg: | 117 case kArmFloat32x4Neg: |
| 118 case kArmFloat32x4RecipApprox: |
| 119 case kArmFloat32x4RecipSqrtApprox: |
118 case kArmFloat32x4Add: | 120 case kArmFloat32x4Add: |
119 case kArmFloat32x4Sub: | 121 case kArmFloat32x4Sub: |
| 122 case kArmFloat32x4Mul: |
| 123 case kArmFloat32x4Min: |
| 124 case kArmFloat32x4Max: |
| 125 case kArmFloat32x4RecipRefine: |
| 126 case kArmFloat32x4RecipSqrtRefine: |
120 case kArmFloat32x4Equal: | 127 case kArmFloat32x4Equal: |
121 case kArmFloat32x4NotEqual: | 128 case kArmFloat32x4NotEqual: |
| 129 case kArmFloat32x4LessThan: |
| 130 case kArmFloat32x4LessThanOrEqual: |
122 case kArmInt32x4Splat: | 131 case kArmInt32x4Splat: |
123 case kArmInt32x4ExtractLane: | 132 case kArmInt32x4ExtractLane: |
124 case kArmInt32x4ReplaceLane: | 133 case kArmInt32x4ReplaceLane: |
125 case kArmInt32x4FromFloat32x4: | 134 case kArmInt32x4FromFloat32x4: |
126 case kArmUint32x4FromFloat32x4: | 135 case kArmUint32x4FromFloat32x4: |
127 case kArmInt32x4Neg: | 136 case kArmInt32x4Neg: |
128 case kArmInt32x4ShiftLeftByScalar: | 137 case kArmInt32x4ShiftLeftByScalar: |
129 case kArmInt32x4ShiftRightByScalar: | 138 case kArmInt32x4ShiftRightByScalar: |
130 case kArmInt32x4Add: | 139 case kArmInt32x4Add: |
131 case kArmInt32x4Sub: | 140 case kArmInt32x4Sub: |
132 case kArmInt32x4Mul: | 141 case kArmInt32x4Mul: |
133 case kArmInt32x4Min: | 142 case kArmInt32x4Min: |
134 case kArmInt32x4Max: | 143 case kArmInt32x4Max: |
135 case kArmInt32x4Equal: | 144 case kArmInt32x4Equal: |
136 case kArmInt32x4NotEqual: | 145 case kArmInt32x4NotEqual: |
137 case kArmInt32x4GreaterThan: | 146 case kArmInt32x4LessThan: |
138 case kArmInt32x4GreaterThanOrEqual: | 147 case kArmInt32x4LessThanOrEqual: |
139 case kArmUint32x4ShiftRightByScalar: | 148 case kArmUint32x4ShiftRightByScalar: |
140 case kArmUint32x4Min: | 149 case kArmUint32x4Min: |
141 case kArmUint32x4Max: | 150 case kArmUint32x4Max: |
142 case kArmUint32x4GreaterThan: | 151 case kArmUint32x4LessThan: |
143 case kArmUint32x4GreaterThanOrEqual: | 152 case kArmUint32x4LessThanOrEqual: |
144 case kArmInt16x8Splat: | 153 case kArmInt16x8Splat: |
145 case kArmInt16x8ExtractLane: | 154 case kArmInt16x8ExtractLane: |
146 case kArmInt16x8ReplaceLane: | 155 case kArmInt16x8ReplaceLane: |
147 case kArmInt16x8Neg: | 156 case kArmInt16x8Neg: |
148 case kArmInt16x8ShiftLeftByScalar: | 157 case kArmInt16x8ShiftLeftByScalar: |
149 case kArmInt16x8ShiftRightByScalar: | 158 case kArmInt16x8ShiftRightByScalar: |
150 case kArmInt16x8Add: | 159 case kArmInt16x8Add: |
151 case kArmInt16x8AddSaturate: | 160 case kArmInt16x8AddSaturate: |
152 case kArmInt16x8Sub: | 161 case kArmInt16x8Sub: |
153 case kArmInt16x8SubSaturate: | 162 case kArmInt16x8SubSaturate: |
154 case kArmInt16x8Mul: | 163 case kArmInt16x8Mul: |
155 case kArmInt16x8Min: | 164 case kArmInt16x8Min: |
156 case kArmInt16x8Max: | 165 case kArmInt16x8Max: |
157 case kArmInt16x8Equal: | 166 case kArmInt16x8Equal: |
158 case kArmInt16x8NotEqual: | 167 case kArmInt16x8NotEqual: |
159 case kArmInt16x8GreaterThan: | 168 case kArmInt16x8LessThan: |
160 case kArmInt16x8GreaterThanOrEqual: | 169 case kArmInt16x8LessThanOrEqual: |
161 case kArmUint16x8ShiftRightByScalar: | 170 case kArmUint16x8ShiftRightByScalar: |
162 case kArmUint16x8AddSaturate: | 171 case kArmUint16x8AddSaturate: |
163 case kArmUint16x8SubSaturate: | 172 case kArmUint16x8SubSaturate: |
164 case kArmUint16x8Min: | 173 case kArmUint16x8Min: |
165 case kArmUint16x8Max: | 174 case kArmUint16x8Max: |
166 case kArmUint16x8GreaterThan: | 175 case kArmUint16x8LessThan: |
167 case kArmUint16x8GreaterThanOrEqual: | 176 case kArmUint16x8LessThanOrEqual: |
168 case kArmInt8x16Splat: | 177 case kArmInt8x16Splat: |
169 case kArmInt8x16ExtractLane: | 178 case kArmInt8x16ExtractLane: |
170 case kArmInt8x16ReplaceLane: | 179 case kArmInt8x16ReplaceLane: |
171 case kArmInt8x16Neg: | 180 case kArmInt8x16Neg: |
172 case kArmInt8x16ShiftLeftByScalar: | 181 case kArmInt8x16ShiftLeftByScalar: |
173 case kArmInt8x16ShiftRightByScalar: | 182 case kArmInt8x16ShiftRightByScalar: |
174 case kArmInt8x16Add: | 183 case kArmInt8x16Add: |
175 case kArmInt8x16AddSaturate: | 184 case kArmInt8x16AddSaturate: |
176 case kArmInt8x16Sub: | 185 case kArmInt8x16Sub: |
177 case kArmInt8x16SubSaturate: | 186 case kArmInt8x16SubSaturate: |
178 case kArmInt8x16Mul: | 187 case kArmInt8x16Mul: |
179 case kArmInt8x16Min: | 188 case kArmInt8x16Min: |
180 case kArmInt8x16Max: | 189 case kArmInt8x16Max: |
181 case kArmInt8x16Equal: | 190 case kArmInt8x16Equal: |
182 case kArmInt8x16NotEqual: | 191 case kArmInt8x16NotEqual: |
183 case kArmInt8x16GreaterThan: | 192 case kArmInt8x16LessThan: |
184 case kArmInt8x16GreaterThanOrEqual: | 193 case kArmInt8x16LessThanOrEqual: |
185 case kArmUint8x16ShiftRightByScalar: | 194 case kArmUint8x16ShiftRightByScalar: |
186 case kArmUint8x16AddSaturate: | 195 case kArmUint8x16AddSaturate: |
187 case kArmUint8x16SubSaturate: | 196 case kArmUint8x16SubSaturate: |
188 case kArmUint8x16Min: | 197 case kArmUint8x16Min: |
189 case kArmUint8x16Max: | 198 case kArmUint8x16Max: |
190 case kArmUint8x16GreaterThan: | 199 case kArmUint8x16LessThan: |
191 case kArmUint8x16GreaterThanOrEqual: | 200 case kArmUint8x16LessThanOrEqual: |
192 case kArmSimd128Zero: | 201 case kArmSimd128Zero: |
193 case kArmSimd128And: | 202 case kArmSimd128And: |
194 case kArmSimd128Or: | 203 case kArmSimd128Or: |
195 case kArmSimd128Xor: | 204 case kArmSimd128Xor: |
196 case kArmSimd128Not: | 205 case kArmSimd128Not: |
197 case kArmSimd128Select: | 206 case kArmSimd128Select: |
198 case kArmSimd1x4AnyTrue: | 207 case kArmSimd1x4AnyTrue: |
199 case kArmSimd1x4AllTrue: | 208 case kArmSimd1x4AllTrue: |
200 case kArmSimd1x8AnyTrue: | 209 case kArmSimd1x8AnyTrue: |
201 case kArmSimd1x8AllTrue: | 210 case kArmSimd1x8AllTrue: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 243 |
235 | 244 |
236 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 245 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
237 // TODO(all): Add instruction cost modeling. | 246 // TODO(all): Add instruction cost modeling. |
238 return 1; | 247 return 1; |
239 } | 248 } |
240 | 249 |
241 } // namespace compiler | 250 } // namespace compiler |
242 } // namespace internal | 251 } // namespace internal |
243 } // namespace v8 | 252 } // namespace v8 |
OLD | NEW |