| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 215 } |
| 216 | 216 |
| 217 | 217 |
| 218 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { | 218 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { |
| 219 switch (instr->arch_opcode()) { | 219 switch (instr->arch_opcode()) { |
| 220 case kArchNop: | 220 case kArchNop: |
| 221 case kArchFramePointer: | 221 case kArchFramePointer: |
| 222 case kArchParentFramePointer: | 222 case kArchParentFramePointer: |
| 223 case kArchTruncateDoubleToI: | 223 case kArchTruncateDoubleToI: |
| 224 case kArchStackSlot: | 224 case kArchStackSlot: |
| 225 case kArchDebugBreak: |
| 225 return kNoOpcodeFlags; | 226 return kNoOpcodeFlags; |
| 226 | 227 |
| 227 case kArchStackPointer: | 228 case kArchStackPointer: |
| 228 // ArchStackPointer instruction loads the current stack pointer value and | 229 // ArchStackPointer instruction loads the current stack pointer value and |
| 229 // must not be reordered with instruction with side effects. | 230 // must not be reordered with instruction with side effects. |
| 230 return kIsLoadOperation; | 231 return kIsLoadOperation; |
| 231 | 232 |
| 232 case kArchPrepareCallCFunction: | 233 case kArchPrepareCallCFunction: |
| 233 case kArchPrepareTailCall: | 234 case kArchPrepareTailCall: |
| 234 case kArchCallCFunction: | 235 case kArchCallCFunction: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 } | 338 } |
| 338 } | 339 } |
| 339 | 340 |
| 340 node->set_total_latency(max_latency + node->latency()); | 341 node->set_total_latency(max_latency + node->latency()); |
| 341 } | 342 } |
| 342 } | 343 } |
| 343 | 344 |
| 344 } // namespace compiler | 345 } // namespace compiler |
| 345 } // namespace internal | 346 } // namespace internal |
| 346 } // namespace v8 | 347 } // namespace v8 |
| OLD | NEW |