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

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

Issue 2030143002: Add FloatRegister names to RegisterConfiguration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix non-ARM ports. 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/register-configuration.cc ('k') | no next file » | 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/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
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_, num_double_registers_, allocatable_codes, 70 num_double_registers_, num_double_registers_, allocatable_codes,
71 allocatable_double_codes, general_register_names_, 71 allocatable_double_codes, general_register_names_,
72 double_register_names_, // float register names
72 double_register_names_)); 73 double_register_names_));
73 } 74 }
74 return config_.get(); 75 return config_.get();
75 } 76 }
76 77
77 78
78 InstructionSequence* InstructionSequenceTest::sequence() { 79 InstructionSequence* InstructionSequenceTest::sequence() {
79 if (sequence_ == nullptr) { 80 if (sequence_ == nullptr) {
80 sequence_ = new (zone()) 81 sequence_ = new (zone())
81 InstructionSequence(isolate(), zone(), &instruction_blocks_); 82 InstructionSequence(isolate(), zone(), &instruction_blocks_);
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 502
502 503
503 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { 504 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) {
504 sequence()->AddInstruction(instruction); 505 sequence()->AddInstruction(instruction);
505 return instruction; 506 return instruction;
506 } 507 }
507 508
508 } // namespace compiler 509 } // namespace compiler
509 } // namespace internal 510 } // namespace internal
510 } // namespace v8 511 } // namespace v8
OLDNEW
« no previous file with comments | « src/register-configuration.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698