Chromium Code Reviews| 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)); |