Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/compiler/instruction.cc

Issue 758073002: [turbofan] Use special constant type for RPO block number operands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698