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

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

Issue 2090993002: Fix '[tests] Don't test moves between different reps in test-gap-resolver.cc' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm. Created 4 years, 6 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/assembler.cc ('k') | src/ia32/assembler-ia32.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/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 #include "src/compiler/state-values-utils.h" 9 #include "src/compiler/state-values-utils.h"
10 10
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 DCHECK_IMPLIES(replacement == to_eliminate, replacement == nullptr); 243 DCHECK_IMPLIES(replacement == to_eliminate, replacement == nullptr);
244 if (replacement != nullptr) move->set_source(replacement->source()); 244 if (replacement != nullptr) move->set_source(replacement->source());
245 return to_eliminate; 245 return to_eliminate;
246 } 246 }
247 247
248 248
249 ExplicitOperand::ExplicitOperand(LocationKind kind, MachineRepresentation rep, 249 ExplicitOperand::ExplicitOperand(LocationKind kind, MachineRepresentation rep,
250 int index) 250 int index)
251 : LocationOperand(EXPLICIT, kind, rep, index) { 251 : LocationOperand(EXPLICIT, kind, rep, index) {
252 DCHECK_IMPLIES(kind == REGISTER && !IsFloatingPoint(rep), 252 DCHECK_IMPLIES(kind == REGISTER && !IsFloatingPoint(rep),
253 Register::from_code(index).IsAllocatable()); 253 Register::from_code(index).IsAllocatable(
254 DCHECK_IMPLIES(kind == REGISTER && (rep == MachineRepresentation::kFloat32), 254 RegisterConfiguration::TURBOFAN));
255 FloatRegister::from_code(index).IsAllocatable()); 255 DCHECK_IMPLIES(kind == REGISTER && rep == MachineRepresentation::kFloat32,
256 FloatRegister::from_code(index).IsAllocatable(
257 RegisterConfiguration::TURBOFAN));
256 DCHECK_IMPLIES(kind == REGISTER && (rep == MachineRepresentation::kFloat64), 258 DCHECK_IMPLIES(kind == REGISTER && (rep == MachineRepresentation::kFloat64),
257 DoubleRegister::from_code(index).IsAllocatable()); 259 DoubleRegister::from_code(index).IsAllocatable(
260 RegisterConfiguration::TURBOFAN));
258 } 261 }
259 262
260 Instruction::Instruction(InstructionCode opcode) 263 Instruction::Instruction(InstructionCode opcode)
261 : opcode_(opcode), 264 : opcode_(opcode),
262 bit_field_(OutputCountField::encode(0) | InputCountField::encode(0) | 265 bit_field_(OutputCountField::encode(0) | InputCountField::encode(0) |
263 TempCountField::encode(0) | IsCallField::encode(false)), 266 TempCountField::encode(0) | IsCallField::encode(false)),
264 reference_map_(nullptr), 267 reference_map_(nullptr),
265 block_(nullptr) { 268 block_(nullptr) {
266 parallel_moves_[0] = nullptr; 269 parallel_moves_[0] = nullptr;
267 parallel_moves_[1] = nullptr; 270 parallel_moves_[1] = nullptr;
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1035 }
1033 for (int i = 0; i < code.InstructionBlockCount(); i++) { 1036 for (int i = 0; i < code.InstructionBlockCount(); i++) {
1034 printable.sequence_->PrintBlock(printable.register_configuration_, i); 1037 printable.sequence_->PrintBlock(printable.register_configuration_, i);
1035 } 1038 }
1036 return os; 1039 return os;
1037 } 1040 }
1038 1041
1039 } // namespace compiler 1042 } // namespace compiler
1040 } // namespace internal 1043 } // namespace internal
1041 } // namespace v8 1044 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698