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

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: 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
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::ArchDefaultForTurbo(), InstructionOperand()};
277 for (auto& op : pm.reference_operands_) { 277 for (auto& op : pm.reference_operands_) {
278 if (!first) { 278 if (!first) {
279 os << ";"; 279 os << ";";
280 } else { 280 } else {
281 first = false; 281 first = false;
282 } 282 }
283 poi.op_ = op; 283 poi.op_ = op;
284 os << poi; 284 os << poi;
285 } 285 }
286 return os << "}"; 286 return os << "}";
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 os << " B" << succ.ToInt(); 876 os << " B" << succ.ToInt();
877 } 877 }
878 os << "\n"; 878 os << "\n";
879 } 879 }
880 return os; 880 return os;
881 } 881 }
882 882
883 } // namespace compiler 883 } // namespace compiler
884 } // namespace internal 884 } // namespace internal
885 } // namespace v8 885 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698