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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 case kArmI32x4Shl: | 137 case kArmI32x4Shl: |
138 case kArmI32x4ShrS: | 138 case kArmI32x4ShrS: |
139 case kArmI32x4Add: | 139 case kArmI32x4Add: |
140 case kArmI32x4AddHoriz: | 140 case kArmI32x4AddHoriz: |
141 case kArmI32x4Sub: | 141 case kArmI32x4Sub: |
142 case kArmI32x4Mul: | 142 case kArmI32x4Mul: |
143 case kArmI32x4MinS: | 143 case kArmI32x4MinS: |
144 case kArmI32x4MaxS: | 144 case kArmI32x4MaxS: |
145 case kArmI32x4Eq: | 145 case kArmI32x4Eq: |
146 case kArmI32x4Ne: | 146 case kArmI32x4Ne: |
147 case kArmI32x4LtS: | 147 case kArmI32x4GtS: |
148 case kArmI32x4LeS: | 148 case kArmI32x4GeS: |
149 case kArmI32x4UConvertF32x4: | 149 case kArmI32x4UConvertF32x4: |
150 case kArmI32x4UConvertI16x8Low: | 150 case kArmI32x4UConvertI16x8Low: |
151 case kArmI32x4UConvertI16x8High: | 151 case kArmI32x4UConvertI16x8High: |
152 case kArmI32x4ShrU: | 152 case kArmI32x4ShrU: |
153 case kArmI32x4MinU: | 153 case kArmI32x4MinU: |
154 case kArmI32x4MaxU: | 154 case kArmI32x4MaxU: |
155 case kArmI32x4LtU: | 155 case kArmI32x4GtU: |
156 case kArmI32x4LeU: | 156 case kArmI32x4GeU: |
157 case kArmI16x8Splat: | 157 case kArmI16x8Splat: |
158 case kArmI16x8ExtractLane: | 158 case kArmI16x8ExtractLane: |
159 case kArmI16x8ReplaceLane: | 159 case kArmI16x8ReplaceLane: |
160 case kArmI16x8SConvertI8x16Low: | 160 case kArmI16x8SConvertI8x16Low: |
161 case kArmI16x8SConvertI8x16High: | 161 case kArmI16x8SConvertI8x16High: |
162 case kArmI16x8Neg: | 162 case kArmI16x8Neg: |
163 case kArmI16x8Shl: | 163 case kArmI16x8Shl: |
164 case kArmI16x8ShrS: | 164 case kArmI16x8ShrS: |
165 case kArmI16x8SConvertI32x4: | 165 case kArmI16x8SConvertI32x4: |
166 case kArmI16x8Add: | 166 case kArmI16x8Add: |
167 case kArmI16x8AddSaturateS: | 167 case kArmI16x8AddSaturateS: |
168 case kArmI16x8AddHoriz: | 168 case kArmI16x8AddHoriz: |
169 case kArmI16x8Sub: | 169 case kArmI16x8Sub: |
170 case kArmI16x8SubSaturateS: | 170 case kArmI16x8SubSaturateS: |
171 case kArmI16x8Mul: | 171 case kArmI16x8Mul: |
172 case kArmI16x8MinS: | 172 case kArmI16x8MinS: |
173 case kArmI16x8MaxS: | 173 case kArmI16x8MaxS: |
174 case kArmI16x8Eq: | 174 case kArmI16x8Eq: |
175 case kArmI16x8Ne: | 175 case kArmI16x8Ne: |
176 case kArmI16x8LtS: | 176 case kArmI16x8GtS: |
177 case kArmI16x8LeS: | 177 case kArmI16x8GeS: |
178 case kArmI16x8UConvertI8x16Low: | 178 case kArmI16x8UConvertI8x16Low: |
179 case kArmI16x8UConvertI8x16High: | 179 case kArmI16x8UConvertI8x16High: |
180 case kArmI16x8ShrU: | 180 case kArmI16x8ShrU: |
181 case kArmI16x8UConvertI32x4: | 181 case kArmI16x8UConvertI32x4: |
182 case kArmI16x8AddSaturateU: | 182 case kArmI16x8AddSaturateU: |
183 case kArmI16x8SubSaturateU: | 183 case kArmI16x8SubSaturateU: |
184 case kArmI16x8MinU: | 184 case kArmI16x8MinU: |
185 case kArmI16x8MaxU: | 185 case kArmI16x8MaxU: |
186 case kArmI16x8LtU: | 186 case kArmI16x8GtU: |
187 case kArmI16x8LeU: | 187 case kArmI16x8GeU: |
188 case kArmI8x16Splat: | 188 case kArmI8x16Splat: |
189 case kArmI8x16ExtractLane: | 189 case kArmI8x16ExtractLane: |
190 case kArmI8x16ReplaceLane: | 190 case kArmI8x16ReplaceLane: |
191 case kArmI8x16Neg: | 191 case kArmI8x16Neg: |
192 case kArmI8x16Shl: | 192 case kArmI8x16Shl: |
193 case kArmI8x16ShrS: | 193 case kArmI8x16ShrS: |
194 case kArmI8x16SConvertI16x8: | 194 case kArmI8x16SConvertI16x8: |
195 case kArmI8x16Add: | 195 case kArmI8x16Add: |
196 case kArmI8x16AddSaturateS: | 196 case kArmI8x16AddSaturateS: |
197 case kArmI8x16Sub: | 197 case kArmI8x16Sub: |
198 case kArmI8x16SubSaturateS: | 198 case kArmI8x16SubSaturateS: |
199 case kArmI8x16Mul: | 199 case kArmI8x16Mul: |
200 case kArmI8x16MinS: | 200 case kArmI8x16MinS: |
201 case kArmI8x16MaxS: | 201 case kArmI8x16MaxS: |
202 case kArmI8x16Eq: | 202 case kArmI8x16Eq: |
203 case kArmI8x16Ne: | 203 case kArmI8x16Ne: |
204 case kArmI8x16LtS: | 204 case kArmI8x16GtS: |
205 case kArmI8x16LeS: | 205 case kArmI8x16GeS: |
206 case kArmI8x16UConvertI16x8: | 206 case kArmI8x16UConvertI16x8: |
207 case kArmI8x16AddSaturateU: | 207 case kArmI8x16AddSaturateU: |
208 case kArmI8x16SubSaturateU: | 208 case kArmI8x16SubSaturateU: |
209 case kArmI8x16ShrU: | 209 case kArmI8x16ShrU: |
210 case kArmI8x16MinU: | 210 case kArmI8x16MinU: |
211 case kArmI8x16MaxU: | 211 case kArmI8x16MaxU: |
212 case kArmI8x16LtU: | 212 case kArmI8x16GtU: |
213 case kArmI8x16LeU: | 213 case kArmI8x16GeU: |
214 case kArmS128Zero: | 214 case kArmS128Zero: |
215 case kArmS128And: | 215 case kArmS128And: |
216 case kArmS128Or: | 216 case kArmS128Or: |
217 case kArmS128Xor: | 217 case kArmS128Xor: |
218 case kArmS128Not: | 218 case kArmS128Not: |
219 case kArmS128Select: | 219 case kArmS128Select: |
220 case kArmS32x4ZipLeft: | 220 case kArmS32x4ZipLeft: |
221 case kArmS32x4ZipRight: | 221 case kArmS32x4ZipRight: |
222 case kArmS32x4UnzipLeft: | 222 case kArmS32x4UnzipLeft: |
223 case kArmS32x4UnzipRight: | 223 case kArmS32x4UnzipRight: |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 288 |
289 | 289 |
290 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 290 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
291 // TODO(all): Add instruction cost modeling. | 291 // TODO(all): Add instruction cost modeling. |
292 return 1; | 292 return 1; |
293 } | 293 } |
294 | 294 |
295 } // namespace compiler | 295 } // namespace compiler |
296 } // namespace internal | 296 } // namespace internal |
297 } // namespace v8 | 297 } // namespace v8 |
OLD | NEW |