From: bmeurer@chromium.org Date: Thu, 31 Jul 2014 10:24:44 +0000 (+0000) Subject: Fix cctest/test-run-machops/RunLoadImmIndex X-Git-Tag: upstream/4.7.83~7933 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=546e8a62878c9a58f4c0203f657fc9445432cca1;p=platform%2Fupstream%2Fv8.git Fix cctest/test-run-machops/RunLoadImmIndex TBR=svenpanne@chromium.org Review URL: https://codereview.chromium.org/436533002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22746 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc index a4f9156..9d94715 100644 --- a/test/cctest/compiler/test-run-machops.cc +++ b/test/cctest/compiler/test-run-machops.cc @@ -2492,7 +2492,7 @@ TEST(RunDeadInt32Binops) { } -template +template static void RunLoadImmIndex(MachineRepresentation rep) { const int kNumElems = 3; CType buffer[kNumElems]; @@ -2506,12 +2506,12 @@ static void RunLoadImmIndex(MachineRepresentation rep) { // Test with various large and small offsets. for (int offset = -1; offset <= 200000; offset *= -5) { for (int i = 0; i < kNumElems; i++) { - RawMachineAssemblerTester m; + RawMachineAssemblerTester m; Node* base = m.PointerConstant(buffer - offset); Node* index = m.Int32Constant((offset + i) * sizeof(buffer[0])); m.Return(m.Load(rep, base, index)); - CHECK_EQ(buffer[i], m.Call()); + CHECK_EQ(static_cast(buffer[i]), m.Call()); printf("XXX\n"); } } @@ -2519,10 +2519,10 @@ static void RunLoadImmIndex(MachineRepresentation rep) { TEST(RunLoadImmIndex) { - RunLoadImmIndex(kMachineWord8); - RunLoadImmIndex(kMachineWord16); - RunLoadImmIndex(kMachineWord32); - RunLoadImmIndex(kMachineTagged); + RunLoadImmIndex(kMachineWord8); + RunLoadImmIndex(kMachineWord16); + RunLoadImmIndex(kMachineWord32); + RunLoadImmIndex(kMachineTagged); // TODO(titzer): test kMachineFloat64 loads // TODO(titzer): test various indexing modes.