| 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 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 cycle++; | 167 cycle++; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 | 171 |
| 172 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { | 172 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { |
| 173 switch (instr->arch_opcode()) { | 173 switch (instr->arch_opcode()) { |
| 174 case kArchNop: | 174 case kArchNop: |
| 175 case kArchStackPointer: | 175 case kArchStackPointer: |
| 176 case kArchFramePointer: | 176 case kArchFramePointer: |
| 177 case kArchParentFramePointer: |
| 177 case kArchTruncateDoubleToI: | 178 case kArchTruncateDoubleToI: |
| 178 case kArchStackSlot: | 179 case kArchStackSlot: |
| 179 return kNoOpcodeFlags; | 180 return kNoOpcodeFlags; |
| 180 | 181 |
| 181 case kArchPrepareCallCFunction: | 182 case kArchPrepareCallCFunction: |
| 182 case kArchPrepareTailCall: | 183 case kArchPrepareTailCall: |
| 183 case kArchCallCFunction: | 184 case kArchCallCFunction: |
| 184 case kArchCallCodeObject: | 185 case kArchCallCodeObject: |
| 185 case kArchCallJSFunction: | 186 case kArchCallJSFunction: |
| 186 case kArchLazyBailout: | 187 case kArchLazyBailout: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 273 } |
| 273 } | 274 } |
| 274 | 275 |
| 275 node->set_total_latency(max_latency + node->latency()); | 276 node->set_total_latency(max_latency + node->latency()); |
| 276 } | 277 } |
| 277 } | 278 } |
| 278 | 279 |
| 279 } // namespace compiler | 280 } // namespace compiler |
| 280 } // namespace internal | 281 } // namespace internal |
| 281 } // namespace v8 | 282 } // namespace v8 |
| OLD | NEW |