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

Side by Side Diff: test/cctest/compiler/instruction-selector-tester.h

Issue 515173002: Add MachineSignature, which is an encapsulation of the machine types for parameters and return valu… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/cctest/compiler/test-run-machops.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_CCTEST_COMPILER_INSTRUCTION_SELECTOR_TEST_H_ 5 #ifndef V8_CCTEST_COMPILER_INSTRUCTION_SELECTOR_TEST_H_
6 #define V8_CCTEST_COMPILER_INSTRUCTION_SELECTOR_TEST_H_ 6 #define V8_CCTEST_COMPILER_INSTRUCTION_SELECTOR_TEST_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 10
(...skipping 22 matching lines...) Expand all
33 array[i] = kMachInt32; 33 array[i] = kMachInt32;
34 } 34 }
35 return array; 35 return array;
36 } 36 }
37 37
38 InstructionSelectorTester() 38 InstructionSelectorTester()
39 : RawMachineAssembler( 39 : RawMachineAssembler(
40 new (main_zone()) Graph(main_zone()), 40 new (main_zone()) Graph(main_zone()),
41 new (main_zone()) MachineCallDescriptorBuilder( 41 new (main_zone()) MachineCallDescriptorBuilder(
42 kMachInt32, kParameterCount, BuildParameterArray(main_zone())), 42 kMachInt32, kParameterCount, BuildParameterArray(main_zone())),
43 MachineOperatorBuilder::pointer_rep()) {} 43 kMachPtr) {}
44 44
45 void SelectInstructions(CpuFeature feature) { 45 void SelectInstructions(CpuFeature feature) {
46 SelectInstructions(InstructionSelector::Features(feature)); 46 SelectInstructions(InstructionSelector::Features(feature));
47 } 47 }
48 48
49 void SelectInstructions(CpuFeature feature1, CpuFeature feature2) { 49 void SelectInstructions(CpuFeature feature1, CpuFeature feature2) {
50 SelectInstructions(InstructionSelector::Features(feature1, feature2)); 50 SelectInstructions(InstructionSelector::Features(feature1, feature2));
51 } 51 }
52 52
53 void SelectInstructions(Mode mode = kTargetMode) { 53 void SelectInstructions(Mode mode = kTargetMode) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 CHECK_EQ(InstructionOperand::UNALLOCATED, val->kind()); 118 CHECK_EQ(InstructionOperand::UNALLOCATED, val->kind());
119 CHECK_EQ(UnallocatedOperand::cast(exp)->virtual_register(), 119 CHECK_EQ(UnallocatedOperand::cast(exp)->virtual_register(),
120 UnallocatedOperand::cast(val)->virtual_register()); 120 UnallocatedOperand::cast(val)->virtual_register());
121 } 121 }
122 122
123 } // namespace compiler 123 } // namespace compiler
124 } // namespace internal 124 } // namespace internal
125 } // namespace v8 125 } // namespace v8
126 126
127 #endif // V8_CCTEST_COMPILER_INSTRUCTION_SELECTOR_TEST_H_ 127 #endif // V8_CCTEST_COMPILER_INSTRUCTION_SELECTOR_TEST_H_
OLDNEW
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698