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

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

Issue 1018853003: [turbofan] add non fixed slot constraint to register allocator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months 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.cc » ('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/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 15 matching lines...) Expand all
26 case UnallocatedOperand::NONE: 26 case UnallocatedOperand::NONE:
27 return os; 27 return os;
28 case UnallocatedOperand::FIXED_REGISTER: 28 case UnallocatedOperand::FIXED_REGISTER:
29 return os << "(=" << conf->general_register_name( 29 return os << "(=" << conf->general_register_name(
30 unalloc->fixed_register_index()) << ")"; 30 unalloc->fixed_register_index()) << ")";
31 case UnallocatedOperand::FIXED_DOUBLE_REGISTER: 31 case UnallocatedOperand::FIXED_DOUBLE_REGISTER:
32 return os << "(=" << conf->double_register_name( 32 return os << "(=" << conf->double_register_name(
33 unalloc->fixed_register_index()) << ")"; 33 unalloc->fixed_register_index()) << ")";
34 case UnallocatedOperand::MUST_HAVE_REGISTER: 34 case UnallocatedOperand::MUST_HAVE_REGISTER:
35 return os << "(R)"; 35 return os << "(R)";
36 case UnallocatedOperand::MUST_HAVE_SLOT:
37 return os << "(S)";
36 case UnallocatedOperand::SAME_AS_FIRST_INPUT: 38 case UnallocatedOperand::SAME_AS_FIRST_INPUT:
37 return os << "(1)"; 39 return os << "(1)";
38 case UnallocatedOperand::ANY: 40 case UnallocatedOperand::ANY:
39 return os << "(-)"; 41 return os << "(-)";
40 } 42 }
41 } 43 }
42 case InstructionOperand::CONSTANT: 44 case InstructionOperand::CONSTANT:
43 return os << "[constant:" << op.index() << "]"; 45 return os << "[constant:" << op.index() << "]";
44 case InstructionOperand::IMMEDIATE: 46 case InstructionOperand::IMMEDIATE:
45 return os << "[immediate:" << op.index() << "]"; 47 return os << "[immediate:" << op.index() << "]";
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 os << " B" << succ.ToInt(); 732 os << " B" << succ.ToInt();
731 } 733 }
732 os << "\n"; 734 os << "\n";
733 } 735 }
734 return os; 736 return os;
735 } 737 }
736 738
737 } // namespace compiler 739 } // namespace compiler
738 } // namespace internal 740 } // namespace internal
739 } // namespace v8 741 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698