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

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

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 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/graph-visualizer.cc ('k') | src/compiler/pipeline.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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698