| 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 #include "src/base/utils/random-number-generator.h" | 5 #include "src/base/utils/random-number-generator.h" |
| 6 #include "src/compiler/pipeline.h" | 6 #include "src/compiler/pipeline.h" |
| 7 #include "test/unittests/compiler/instruction-sequence-unittest.h" | 7 #include "test/unittests/compiler/instruction-sequence-unittest.h" |
| 8 #include "test/unittests/test-utils.h" | 8 #include "test/unittests/test-utils.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 num_general_registers_, num_double_registers_, num_double_registers_, | 62 num_general_registers_, num_double_registers_, num_double_registers_, |
| 63 general_register_names_, double_register_names_)); | 63 general_register_names_, double_register_names_)); |
| 64 } | 64 } |
| 65 return config_.get(); | 65 return config_.get(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 | 68 |
| 69 InstructionSequence* InstructionSequenceTest::sequence() { | 69 InstructionSequence* InstructionSequenceTest::sequence() { |
| 70 if (sequence_ == nullptr) { | 70 if (sequence_ == nullptr) { |
| 71 sequence_ = new (zone()) | 71 sequence_ = new (zone()) |
| 72 InstructionSequence(isolate(), zone(), &instruction_blocks_); | 72 InstructionSequence(isolate(), zone(), &instruction_blocks_, nullptr); |
| 73 } | 73 } |
| 74 return sequence_; | 74 return sequence_; |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 void InstructionSequenceTest::StartLoop(int loop_blocks) { | 78 void InstructionSequenceTest::StartLoop(int loop_blocks) { |
| 79 CHECK(current_block_ == nullptr); | 79 CHECK(current_block_ == nullptr); |
| 80 if (!loop_blocks_.empty()) { | 80 if (!loop_blocks_.empty()) { |
| 81 CHECK(!loop_blocks_.back().loop_header_.IsValid()); | 81 CHECK(!loop_blocks_.back().loop_header_.IsValid()); |
| 82 } | 82 } |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 492 |
| 493 | 493 |
| 494 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { | 494 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { |
| 495 sequence()->AddInstruction(instruction); | 495 sequence()->AddInstruction(instruction); |
| 496 return instruction; | 496 return instruction; |
| 497 } | 497 } |
| 498 | 498 |
| 499 } // namespace compiler | 499 } // namespace compiler |
| 500 } // namespace internal | 500 } // namespace internal |
| 501 } // namespace v8 | 501 } // namespace v8 |
| OLD | NEW |