| 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 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Do not record arguments as pointers. | 265 // Do not record arguments as pointers. |
| 266 if (op.IsStackSlot() && StackSlotOperand::cast(op).index() < 0) return; | 266 if (op.IsStackSlot() && StackSlotOperand::cast(op).index() < 0) return; |
| 267 DCHECK(!op.IsDoubleRegister() && !op.IsDoubleStackSlot()); | 267 DCHECK(!op.IsDoubleRegister() && !op.IsDoubleStackSlot()); |
| 268 reference_operands_.push_back(op); | 268 reference_operands_.push_back(op); |
| 269 } | 269 } |
| 270 | 270 |
| 271 | 271 |
| 272 std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm) { | 272 std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm) { |
| 273 os << "{"; | 273 os << "{"; |
| 274 bool first = true; | 274 bool first = true; |
| 275 PrintableInstructionOperand poi = {RegisterConfiguration::ArchDefault(), | 275 PrintableInstructionOperand poi = { |
| 276 InstructionOperand()}; | 276 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN), |
| 277 InstructionOperand()}; |
| 277 for (auto& op : pm.reference_operands_) { | 278 for (auto& op : pm.reference_operands_) { |
| 278 if (!first) { | 279 if (!first) { |
| 279 os << ";"; | 280 os << ";"; |
| 280 } else { | 281 } else { |
| 281 first = false; | 282 first = false; |
| 282 } | 283 } |
| 283 poi.op_ = op; | 284 poi.op_ = op; |
| 284 os << poi; | 285 os << poi; |
| 285 } | 286 } |
| 286 return os << "}"; | 287 return os << "}"; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 os << " B" << succ.ToInt(); | 877 os << " B" << succ.ToInt(); |
| 877 } | 878 } |
| 878 os << "\n"; | 879 os << "\n"; |
| 879 } | 880 } |
| 880 return os; | 881 return os; |
| 881 } | 882 } |
| 882 | 883 |
| 883 } // namespace compiler | 884 } // namespace compiler |
| 884 } // namespace internal | 885 } // namespace internal |
| 885 } // namespace v8 | 886 } // namespace v8 |
| OLD | NEW |