diff options
Diffstat (limited to 'deps/v8/test/cctest/test-constantpool.cc')
-rw-r--r-- | deps/v8/test/cctest/test-constantpool.cc | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/deps/v8/test/cctest/test-constantpool.cc b/deps/v8/test/cctest/test-constantpool.cc index 3d063ac770d..c9f5bcfc187 100644 --- a/deps/v8/test/cctest/test-constantpool.cc +++ b/deps/v8/test/cctest/test-constantpool.cc @@ -25,7 +25,7 @@ const int kReach = 1 << kReachBits; TEST(ConstantPoolPointers) { ConstantPoolBuilder builder(kReachBits, kReachBits); - const int kRegularCount = kReach / kPointerSize; + const int kRegularCount = kReach / kSystemPointerSize; ConstantPoolEntry::Access access; int pos = 0; intptr_t value = 0; @@ -67,8 +67,9 @@ TEST(ConstantPoolDoubles) { TEST(ConstantPoolMixedTypes) { ConstantPoolBuilder builder(kReachBits, kReachBits); - const int kRegularCount = (((kReach / (kDoubleSize + kPointerSize)) * 2) + - ((kPointerSize < kDoubleSize) ? 1 : 0)); + const int kRegularCount = + (((kReach / (kDoubleSize + kSystemPointerSize)) * 2) + + ((kSystemPointerSize < kDoubleSize) ? 1 : 0)); ConstantPoolEntry::Type type = kPtrType; ConstantPoolEntry::Access access; int pos = 0; @@ -103,11 +104,11 @@ TEST(ConstantPoolMixedReach) { const int ptrReach = 1 << ptrReachBits; const int dblReachBits = kReachBits; const int dblReach = kReach; - const int dblRegularCount = - Min(dblReach / kDoubleSize, ptrReach / (kDoubleSize + kPointerSize)); + const int dblRegularCount = Min( + dblReach / kDoubleSize, ptrReach / (kDoubleSize + kSystemPointerSize)); const int ptrRegularCount = - ((ptrReach - (dblRegularCount * (kDoubleSize + kPointerSize))) / - kPointerSize) + + ((ptrReach - (dblRegularCount * (kDoubleSize + kSystemPointerSize))) / + kSystemPointerSize) + dblRegularCount; ConstantPoolBuilder builder(ptrReachBits, dblReachBits); ConstantPoolEntry::Access access; @@ -152,8 +153,9 @@ TEST(ConstantPoolMixedReach) { TEST(ConstantPoolSharing) { ConstantPoolBuilder builder(kReachBits, kReachBits); - const int kRegularCount = (((kReach / (kDoubleSize + kPointerSize)) * 2) + - ((kPointerSize < kDoubleSize) ? 1 : 0)); + const int kRegularCount = + (((kReach / (kDoubleSize + kSystemPointerSize)) * 2) + + ((kSystemPointerSize < kDoubleSize) ? 1 : 0)); ConstantPoolEntry::Access access; CHECK(builder.IsEmpty()); @@ -201,8 +203,9 @@ TEST(ConstantPoolSharing) { TEST(ConstantPoolNoSharing) { ConstantPoolBuilder builder(kReachBits, kReachBits); - const int kRegularCount = (((kReach / (kDoubleSize + kPointerSize)) * 2) + - ((kPointerSize < kDoubleSize) ? 1 : 0)); + const int kRegularCount = + (((kReach / (kDoubleSize + kSystemPointerSize)) * 2) + + ((kSystemPointerSize < kDoubleSize) ? 1 : 0)); ConstantPoolEntry::Access access; CHECK(builder.IsEmpty()); |