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

Unified Diff: test/compiler-unittests/instruction-selector-unittest.h

Issue 456333002: Move MachineRepresentation to machine-type.h and rename to MachineType in preparation for merging i… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/test-simplified-lowering.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/compiler-unittests/instruction-selector-unittest.h
diff --git a/test/compiler-unittests/instruction-selector-unittest.h b/test/compiler-unittests/instruction-selector-unittest.h
index f13b2d73643d741be5a8ba3f58bc6549b66ffab7..3a7b590757349f37f11ae5db2230ee2cba292da7 100644
--- a/test/compiler-unittests/instruction-selector-unittest.h
+++ b/test/compiler-unittests/instruction-selector-unittest.h
@@ -27,22 +27,18 @@ class InstructionSelectorTest : public CompilerTest {
class StreamBuilder V8_FINAL : public RawMachineAssembler {
public:
- StreamBuilder(InstructionSelectorTest* test,
- MachineRepresentation return_type)
+ StreamBuilder(InstructionSelectorTest* test, MachineType return_type)
: RawMachineAssembler(new (test->zone()) Graph(test->zone()),
CallDescriptorBuilder(test->zone(), return_type)),
test_(test) {}
- StreamBuilder(InstructionSelectorTest* test,
- MachineRepresentation return_type,
- MachineRepresentation parameter0_type)
+ StreamBuilder(InstructionSelectorTest* test, MachineType return_type,
+ MachineType parameter0_type)
: RawMachineAssembler(new (test->zone()) Graph(test->zone()),
CallDescriptorBuilder(test->zone(), return_type,
parameter0_type)),
test_(test) {}
- StreamBuilder(InstructionSelectorTest* test,
- MachineRepresentation return_type,
- MachineRepresentation parameter0_type,
- MachineRepresentation parameter1_type)
+ StreamBuilder(InstructionSelectorTest* test, MachineType return_type,
+ MachineType parameter0_type, MachineType parameter1_type)
: RawMachineAssembler(
new (test->zone()) Graph(test->zone()),
CallDescriptorBuilder(test->zone(), return_type, parameter0_type,
@@ -63,26 +59,22 @@ class InstructionSelectorTest : public CompilerTest {
private:
MachineCallDescriptorBuilder* CallDescriptorBuilder(
- Zone* zone, MachineRepresentation return_type) {
+ Zone* zone, MachineType return_type) {
return new (zone) MachineCallDescriptorBuilder(return_type, 0, NULL);
}
MachineCallDescriptorBuilder* CallDescriptorBuilder(
- Zone* zone, MachineRepresentation return_type,
- MachineRepresentation parameter0_type) {
- MachineRepresentation* parameter_types =
- zone->NewArray<MachineRepresentation>(1);
+ Zone* zone, MachineType return_type, MachineType parameter0_type) {
+ MachineType* parameter_types = zone->NewArray<MachineType>(1);
parameter_types[0] = parameter0_type;
return new (zone)
MachineCallDescriptorBuilder(return_type, 1, parameter_types);
}
MachineCallDescriptorBuilder* CallDescriptorBuilder(
- Zone* zone, MachineRepresentation return_type,
- MachineRepresentation parameter0_type,
- MachineRepresentation parameter1_type) {
- MachineRepresentation* parameter_types =
- zone->NewArray<MachineRepresentation>(2);
+ Zone* zone, MachineType return_type, MachineType parameter0_type,
+ MachineType parameter1_type) {
+ MachineType* parameter_types = zone->NewArray<MachineType>(2);
parameter_types[0] = parameter0_type;
parameter_types[1] = parameter1_type;
return new (zone)
« no previous file with comments | « test/cctest/compiler/test-simplified-lowering.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698