Index: test/cctest/test-assembler-arm64.cc |
diff --git a/test/cctest/test-assembler-arm64.cc b/test/cctest/test-assembler-arm64.cc |
index 74ab84626ba3291735cfd14063af3fad1daf069f..2e3ffeec7e306dda56f737dc40bf5cfe374359dc 100644 |
--- a/test/cctest/test-assembler-arm64.cc |
+++ b/test/cctest/test-assembler-arm64.cc |
@@ -10239,75 +10239,6 @@ TEST(printf_no_preserve) { |
} |
-// This is a V8-specific test. |
-static void CopyFieldsHelper(CPURegList temps) { |
- static const uint64_t kLiteralBase = 0x0100001000100101UL; |
- static const uint64_t src[] = {kLiteralBase * 1, |
- kLiteralBase * 2, |
- kLiteralBase * 3, |
- kLiteralBase * 4, |
- kLiteralBase * 5, |
- kLiteralBase * 6, |
- kLiteralBase * 7, |
- kLiteralBase * 8, |
- kLiteralBase * 9, |
- kLiteralBase * 10, |
- kLiteralBase * 11}; |
- static const uint64_t src_tagged = |
- reinterpret_cast<uint64_t>(src) + kHeapObjectTag; |
- |
- static const unsigned kTestCount = sizeof(src) / sizeof(src[0]) + 1; |
- uint64_t* dst[kTestCount]; |
- uint64_t dst_tagged[kTestCount]; |
- |
- // The first test will be to copy 0 fields. The destination (and source) |
- // should not be accessed in any way. |
- dst[0] = NULL; |
- dst_tagged[0] = kHeapObjectTag; |
- |
- // Allocate memory for each other test. Each test <n> will have <n> fields. |
- // This is intended to exercise as many paths in CopyFields as possible. |
- for (unsigned i = 1; i < kTestCount; i++) { |
- dst[i] = new uint64_t[i]; |
- memset(dst[i], 0, i * sizeof(kLiteralBase)); |
- dst_tagged[i] = reinterpret_cast<uint64_t>(dst[i]) + kHeapObjectTag; |
- } |
- |
- SETUP(); |
- START(); |
- |
- __ Mov(x0, dst_tagged[0]); |
- __ Mov(x1, 0); |
- __ CopyFields(x0, x1, temps, 0); |
- for (unsigned i = 1; i < kTestCount; i++) { |
- __ Mov(x0, dst_tagged[i]); |
- __ Mov(x1, src_tagged); |
- __ CopyFields(x0, x1, temps, i); |
- } |
- |
- END(); |
- RUN(); |
- TEARDOWN(); |
- |
- for (unsigned i = 1; i < kTestCount; i++) { |
- for (unsigned j = 0; j < i; j++) { |
- CHECK(src[j] == dst[i][j]); |
- } |
- delete [] dst[i]; |
- } |
-} |
- |
- |
-// This is a V8-specific test. |
-TEST(copyfields) { |
- INIT_V8(); |
- CopyFieldsHelper(CPURegList(x10)); |
- CopyFieldsHelper(CPURegList(x10, x11)); |
- CopyFieldsHelper(CPURegList(x10, x11, x12)); |
- CopyFieldsHelper(CPURegList(x10, x11, x12, x13)); |
-} |
- |
- |
TEST(blr_lr) { |
// A simple test to check that the simulator correcty handle "blr lr". |
INIT_V8(); |