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 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
8 #include "src/base/utils/random-number-generator.h" | 8 #include "src/base/utils/random-number-generator.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 } | 237 } |
238 | 238 |
239 | 239 |
240 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { | 240 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { |
241 switch (instr->arch_opcode()) { | 241 switch (instr->arch_opcode()) { |
242 case kArchNop: | 242 case kArchNop: |
243 case kArchFramePointer: | 243 case kArchFramePointer: |
244 case kArchParentFramePointer: | 244 case kArchParentFramePointer: |
245 case kArchTruncateDoubleToI: | 245 case kArchTruncateDoubleToI: |
246 case kArchStackSlot: | 246 case kArchStackSlot: |
247 case kArchDebugBreak: | |
248 case kArchComment: | 247 case kArchComment: |
249 case kIeee754Float64Acos: | 248 case kIeee754Float64Acos: |
250 case kIeee754Float64Acosh: | 249 case kIeee754Float64Acosh: |
251 case kIeee754Float64Asin: | 250 case kIeee754Float64Asin: |
252 case kIeee754Float64Asinh: | 251 case kIeee754Float64Asinh: |
253 case kIeee754Float64Atan: | 252 case kIeee754Float64Atan: |
254 case kIeee754Float64Atanh: | 253 case kIeee754Float64Atanh: |
255 case kIeee754Float64Atan2: | 254 case kIeee754Float64Atan2: |
256 case kIeee754Float64Cbrt: | 255 case kIeee754Float64Cbrt: |
257 case kIeee754Float64Cos: | 256 case kIeee754Float64Cos: |
(...skipping 27 matching lines...) Expand all Loading... |
285 case kArchTailCallCodeObject: | 284 case kArchTailCallCodeObject: |
286 case kArchTailCallJSFunctionFromJSFunction: | 285 case kArchTailCallJSFunctionFromJSFunction: |
287 case kArchTailCallAddress: | 286 case kArchTailCallAddress: |
288 return kHasSideEffect | kIsBlockTerminator; | 287 return kHasSideEffect | kIsBlockTerminator; |
289 | 288 |
290 case kArchDeoptimize: | 289 case kArchDeoptimize: |
291 case kArchJmp: | 290 case kArchJmp: |
292 case kArchLookupSwitch: | 291 case kArchLookupSwitch: |
293 case kArchTableSwitch: | 292 case kArchTableSwitch: |
294 case kArchRet: | 293 case kArchRet: |
| 294 case kArchDebugBreak: |
295 case kArchThrowTerminator: | 295 case kArchThrowTerminator: |
296 return kIsBlockTerminator; | 296 return kIsBlockTerminator; |
297 | 297 |
298 case kCheckedLoadInt8: | 298 case kCheckedLoadInt8: |
299 case kCheckedLoadUint8: | 299 case kCheckedLoadUint8: |
300 case kCheckedLoadInt16: | 300 case kCheckedLoadInt16: |
301 case kCheckedLoadUint16: | 301 case kCheckedLoadUint16: |
302 case kCheckedLoadWord32: | 302 case kCheckedLoadWord32: |
303 case kCheckedLoadWord64: | 303 case kCheckedLoadWord64: |
304 case kCheckedLoadFloat32: | 304 case kCheckedLoadFloat32: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 } | 390 } |
391 } | 391 } |
392 | 392 |
393 node->set_total_latency(max_latency + node->latency()); | 393 node->set_total_latency(max_latency + node->latency()); |
394 } | 394 } |
395 } | 395 } |
396 | 396 |
397 } // namespace compiler | 397 } // namespace compiler |
398 } // namespace internal | 398 } // namespace internal |
399 } // namespace v8 | 399 } // namespace v8 |
OLD | NEW |