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

Side by Side Diff: test/unittests/compiler/instruction-sequence-unittest.h

Issue 2433093002: MIPS: Fix bad RegisterConfiguration usage in InstructionSequence unit tests. (Closed)
Patch Set: Rebase to master Created 4 years, 1 month 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.cc ('k') | test/unittests/compiler/instruction-sequence-unittest.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 #ifndef V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_ 5 #ifndef V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_
6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_ 6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/compiler/instruction.h" 10 #include "src/compiler/instruction.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static BlockCompletion Last() { 151 static BlockCompletion Last() {
152 BlockCompletion completion = {kBlockEnd, TestOperand(), kNoValue, kNoValue}; 152 BlockCompletion completion = {kBlockEnd, TestOperand(), kNoValue, kNoValue};
153 return completion; 153 return completion;
154 } 154 }
155 155
156 InstructionSequenceTest(); 156 InstructionSequenceTest();
157 157
158 void SetNumRegs(int num_general_registers, int num_double_registers); 158 void SetNumRegs(int num_general_registers, int num_double_registers);
159 int GetNumRegs(MachineRepresentation rep); 159 int GetNumRegs(MachineRepresentation rep);
160 int GetAllocatableCode(int index, MachineRepresentation rep = kNoRep); 160 int GetAllocatableCode(int index, MachineRepresentation rep = kNoRep);
161 RegisterConfiguration* config(); 161 const RegisterConfiguration* config();
162 InstructionSequence* sequence(); 162 InstructionSequence* sequence();
163 163
164 void StartLoop(int loop_blocks); 164 void StartLoop(int loop_blocks);
165 void EndLoop(); 165 void EndLoop();
166 void StartBlock(bool deferred = false); 166 void StartBlock(bool deferred = false);
167 Instruction* EndBlock(BlockCompletion completion = FallThrough()); 167 Instruction* EndBlock(BlockCompletion completion = FallThrough());
168 168
169 TestOperand Imm(int32_t imm = 0); 169 TestOperand Imm(int32_t imm = 0);
170 VReg Define(TestOperand output_op); 170 VReg Define(TestOperand output_op);
171 VReg Parameter(TestOperand output_op = Reg()) { return Define(output_op); } 171 VReg Parameter(TestOperand output_op = Reg()) { return Define(output_op); }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 bool block_returns_; 287 bool block_returns_;
288 288
289 DISALLOW_COPY_AND_ASSIGN(InstructionSequenceTest); 289 DISALLOW_COPY_AND_ASSIGN(InstructionSequenceTest);
290 }; 290 };
291 291
292 } // namespace compiler 292 } // namespace compiler
293 } // namespace internal 293 } // namespace internal
294 } // namespace v8 294 } // namespace v8
295 295
296 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_ 296 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | test/unittests/compiler/instruction-sequence-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698