Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/graph.h" | 6 #include "src/compiler/graph.h" |
| 7 #include "src/compiler/instruction.h" | 7 #include "src/compiler/instruction.h" |
| 8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
| 9 #include "src/compiler/state-values-utils.h" | 9 #include "src/compiler/state-values-utils.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 namespace compiler { | 13 namespace compiler { |
| 14 | 14 |
| 15 const auto GetRegConfig = RegisterConfiguration::Turbofan; | 15 const RegisterConfiguration* (*GetRegConfig)() = |
| 16 RegisterConfiguration::Turbofan; | |
|
ivica.bogosavljevic
2016/10/19 14:30:40
Needed to fix the type in order to use it from the
| |
| 16 | 17 |
| 17 FlagsCondition CommuteFlagsCondition(FlagsCondition condition) { | 18 FlagsCondition CommuteFlagsCondition(FlagsCondition condition) { |
| 18 switch (condition) { | 19 switch (condition) { |
| 19 case kSignedLessThan: | 20 case kSignedLessThan: |
| 20 return kSignedGreaterThan; | 21 return kSignedGreaterThan; |
| 21 case kSignedGreaterThanOrEqual: | 22 case kSignedGreaterThanOrEqual: |
| 22 return kSignedLessThanOrEqual; | 23 return kSignedLessThanOrEqual; |
| 23 case kSignedLessThanOrEqual: | 24 case kSignedLessThanOrEqual: |
| 24 return kSignedGreaterThanOrEqual; | 25 return kSignedGreaterThanOrEqual; |
| 25 case kSignedGreaterThan: | 26 case kSignedGreaterThan: |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1038 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 1039 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
| 1039 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); | 1040 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); |
| 1040 os << printable_block; | 1041 os << printable_block; |
| 1041 } | 1042 } |
| 1042 return os; | 1043 return os; |
| 1043 } | 1044 } |
| 1044 | 1045 |
| 1045 } // namespace compiler | 1046 } // namespace compiler |
| 1046 } // namespace internal | 1047 } // namespace internal |
| 1047 } // namespace v8 | 1048 } // namespace v8 |
| OLD | NEW |