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

Unified Diff: test/cctest/compiler/codegen-tester.cc

Issue 1513383003: [turbofan] Store nodes use only MachineRepresentation, not MachineType. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: please mips64 Created 5 years 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/cctest/compiler/test-changes-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/codegen-tester.cc
diff --git a/test/cctest/compiler/codegen-tester.cc b/test/cctest/compiler/codegen-tester.cc
index 8e1ec0bfbb492683f032e2a0f9e14ee7f14aca54..fc0956fb5041be0c7a21da2a65a5eabbfa7d9bd9 100644
--- a/test/cctest/compiler/codegen-tester.cc
+++ b/test/cctest/compiler/codegen-tester.cc
@@ -632,8 +632,9 @@ TEST(RunBufferedRawMachineAssemblerTesterTester) {
{
BufferedRawMachineAssemblerTester<void> m;
int64_t result;
- m.Store(MachineTypeForC<int64_t>(), m.PointerConstant(&result),
- m.Int64Constant(0x12500000000), kNoWriteBarrier);
+ m.Store(MachineTypeForC<int64_t>().representation(),
+ m.PointerConstant(&result), m.Int64Constant(0x12500000000),
+ kNoWriteBarrier);
m.Return(m.Int32Constant(0));
m.Call();
CHECK_EQ(0x12500000000, result);
@@ -641,8 +642,8 @@ TEST(RunBufferedRawMachineAssemblerTesterTester) {
{
BufferedRawMachineAssemblerTester<void> m(MachineType::Float64());
double result;
- m.Store(MachineTypeForC<double>(), m.PointerConstant(&result),
- m.Parameter(0), kNoWriteBarrier);
+ m.Store(MachineTypeForC<double>().representation(),
+ m.PointerConstant(&result), m.Parameter(0), kNoWriteBarrier);
m.Return(m.Int32Constant(0));
FOR_FLOAT64_INPUTS(i) {
m.Call(*i);
@@ -653,7 +654,8 @@ TEST(RunBufferedRawMachineAssemblerTesterTester) {
BufferedRawMachineAssemblerTester<void> m(MachineType::Int64(),
MachineType::Int64());
int64_t result;
- m.Store(MachineTypeForC<int64_t>(), m.PointerConstant(&result),
+ m.Store(MachineTypeForC<int64_t>().representation(),
+ m.PointerConstant(&result),
m.Int64Add(m.Parameter(0), m.Parameter(1)), kNoWriteBarrier);
m.Return(m.Int32Constant(0));
FOR_INT64_INPUTS(i) {
@@ -671,7 +673,7 @@ TEST(RunBufferedRawMachineAssemblerTesterTester) {
MachineType::Int64(), MachineType::Int64(), MachineType::Int64());
int64_t result;
m.Store(
- MachineTypeForC<int64_t>(), m.PointerConstant(&result),
+ MachineTypeForC<int64_t>().representation(), m.PointerConstant(&result),
m.Int64Add(m.Int64Add(m.Parameter(0), m.Parameter(1)), m.Parameter(2)),
kNoWriteBarrier);
m.Return(m.Int32Constant(0));
@@ -693,7 +695,8 @@ TEST(RunBufferedRawMachineAssemblerTesterTester) {
MachineType::Int64(), MachineType::Int64(), MachineType::Int64(),
MachineType::Int64());
int64_t result;
- m.Store(MachineTypeForC<int64_t>(), m.PointerConstant(&result),
+ m.Store(MachineTypeForC<int64_t>().representation(),
+ m.PointerConstant(&result),
m.Int64Add(m.Int64Add(m.Int64Add(m.Parameter(0), m.Parameter(1)),
m.Parameter(2)),
m.Parameter(3)),
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/cctest/compiler/test-changes-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698