| OLD | NEW |
| 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 Loading... |
| 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 const RegisterConfiguration* config(); | 161 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 Loading... |
| 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_ |
| OLD | NEW |