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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 CHECK(instruction_blocks_.empty()); | 60 CHECK(instruction_blocks_.empty()); |
61 num_general_registers_ = num_general_registers; | 61 num_general_registers_ = num_general_registers; |
62 num_double_registers_ = num_double_registers; | 62 num_double_registers_ = num_double_registers; |
63 } | 63 } |
64 | 64 |
65 | 65 |
66 RegisterConfiguration* InstructionSequenceTest::config() { | 66 RegisterConfiguration* InstructionSequenceTest::config() { |
67 if (config_.is_empty()) { | 67 if (config_.is_empty()) { |
68 config_.Reset(new RegisterConfiguration( | 68 config_.Reset(new RegisterConfiguration( |
69 num_general_registers_, num_double_registers_, num_general_registers_, | 69 num_general_registers_, num_double_registers_, num_general_registers_, |
70 num_double_registers_, RegisterConfiguration::OVERLAP, | 70 num_double_registers_, allocatable_codes, allocatable_double_codes, |
71 allocatable_codes, allocatable_double_codes, general_register_names_, | 71 kSimpleFPAliasing ? RegisterConfiguration::OVERLAP |
| 72 : RegisterConfiguration::COMBINE, |
| 73 general_register_names_, |
72 double_register_names_, // float register names | 74 double_register_names_, // float register names |
73 double_register_names_)); | 75 double_register_names_)); |
74 } | 76 } |
75 return config_.get(); | 77 return config_.get(); |
76 } | 78 } |
77 | 79 |
78 | 80 |
79 InstructionSequence* InstructionSequenceTest::sequence() { | 81 InstructionSequence* InstructionSequenceTest::sequence() { |
80 if (sequence_ == nullptr) { | 82 if (sequence_ == nullptr) { |
81 sequence_ = new (zone()) | 83 sequence_ = new (zone()) |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 | 504 |
503 | 505 |
504 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { | 506 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { |
505 sequence()->AddInstruction(instruction); | 507 sequence()->AddInstruction(instruction); |
506 return instruction; | 508 return instruction; |
507 } | 509 } |
508 | 510 |
509 } // namespace compiler | 511 } // namespace compiler |
510 } // namespace internal | 512 } // namespace internal |
511 } // namespace v8 | 513 } // namespace v8 |
OLD | NEW |