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/generic-node-inl.h" | 6 #include "src/compiler/generic-node-inl.h" |
7 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 return os << constant.ToInt64() << "l"; | 325 return os << constant.ToInt64() << "l"; |
326 case Constant::kFloat32: | 326 case Constant::kFloat32: |
327 return os << constant.ToFloat32() << "f"; | 327 return os << constant.ToFloat32() << "f"; |
328 case Constant::kFloat64: | 328 case Constant::kFloat64: |
329 return os << constant.ToFloat64(); | 329 return os << constant.ToFloat64(); |
330 case Constant::kExternalReference: | 330 case Constant::kExternalReference: |
331 return os << static_cast<const void*>( | 331 return os << static_cast<const void*>( |
332 constant.ToExternalReference().address()); | 332 constant.ToExternalReference().address()); |
333 case Constant::kHeapObject: | 333 case Constant::kHeapObject: |
334 return os << Brief(*constant.ToHeapObject()); | 334 return os << Brief(*constant.ToHeapObject()); |
| 335 case Constant::kRpoNumber: |
| 336 return os << "RPO" << constant.ToRpoNumber().ToInt(); |
335 } | 337 } |
336 UNREACHABLE(); | 338 UNREACHABLE(); |
337 return os; | 339 return os; |
338 } | 340 } |
339 | 341 |
340 | 342 |
341 InstructionBlock::InstructionBlock(Zone* zone, BasicBlock::Id id, | 343 InstructionBlock::InstructionBlock(Zone* zone, BasicBlock::Id id, |
342 BasicBlock::RpoNumber ao_number, | 344 BasicBlock::RpoNumber ao_number, |
343 BasicBlock::RpoNumber rpo_number, | 345 BasicBlock::RpoNumber rpo_number, |
344 BasicBlock::RpoNumber loop_header, | 346 BasicBlock::RpoNumber loop_header, |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 os << " B" << succ_block->id(); | 672 os << " B" << succ_block->id(); |
671 } | 673 } |
672 os << "\n"; | 674 os << "\n"; |
673 } | 675 } |
674 return os; | 676 return os; |
675 } | 677 } |
676 | 678 |
677 } // namespace compiler | 679 } // namespace compiler |
678 } // namespace internal | 680 } // namespace internal |
679 } // namespace v8 | 681 } // namespace v8 |
OLD | NEW |