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

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

Issue 1235313002: [turbofan] Change RawMachineAssembler to take a CallDescriptor instead of a MachineSignature. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/instruction-selector-tester.h
diff --git a/test/cctest/compiler/instruction-selector-tester.h b/test/cctest/compiler/instruction-selector-tester.h
index 3a28b2e5dfaf0553f859618bce082c360eb707bc..6b094b1c1da8a3094d55daec6f452624513620a3 100644
--- a/test/cctest/compiler/instruction-selector-tester.h
+++ b/test/cctest/compiler/instruction-selector-tester.h
@@ -27,20 +27,23 @@ class InstructionSelectorTester : public HandleAndZoneScope,
enum Mode { kTargetMode, kInternalMode };
static const int kParameterCount = 3;
- static MachineType* BuildParameterArray(Zone* zone) {
- MachineType* array = zone->NewArray<MachineType>(kParameterCount);
+ static CallDescriptor* BuildCallDescriptor(Zone* zone) {
+ MachineType* parameter_array = zone->NewArray<MachineType>(kParameterCount);
for (int i = 0; i < kParameterCount; ++i) {
array[i] = kMachInt32;
}
- return array;
+ return Linkage::GetSimplifiedCDescriptor(
+ graph->zone(),
+ new (zone) MachineCallDescriptorBuilder(kMachInt32, kParameterCount,
+ parameter_array));
}
InstructionSelectorTester()
: RawMachineAssembler(
new (main_zone()) Graph(main_zone()),
- new (main_zone()) MachineCallDescriptorBuilder(
- kMachInt32, kParameterCount, BuildParameterArray(main_zone())),
- kMachPtr) {}
+ BuildCallDescriptor(main_zone()),
+ kMachPtr,
+ machine_sig)) {}
Michael Starzinger 2015/07/21 11:46:23 There seems to be a syntax error here. Also this e
rmcilroy 2015/07/21 15:16:55 Done.
void SelectInstructions(CpuFeature feature) {
SelectInstructions(InstructionSelector::Features(feature));
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698