| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 7016bf7ac2b135bfc444664b92d38af527198f2d..6b5ac6c77847883b0ec1242160e3541f81c84233 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -608,7 +608,7 @@ TEST(MakingExternalUnalignedOneByteString) {
|
| "slice('abcdefghijklmnopqrstuvwxyz');"));
|
|
|
| // Trigger GCs so that the newly allocated string moves to old gen.
|
| - SimulateFullSpace(CcTest::heap()->old_pointer_space());
|
| + SimulateFullSpace(CcTest::heap()->old_space());
|
| CcTest::heap()->CollectGarbage(i::NEW_SPACE); // in survivor space now
|
| CcTest::heap()->CollectGarbage(i::NEW_SPACE); // in old gen now
|
|
|
| @@ -733,11 +733,10 @@ THREADED_TEST(ScavengeExternalString) {
|
| i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
|
| CcTest::heap()->CollectGarbage(i::NEW_SPACE);
|
| in_new_space = CcTest::heap()->InNewSpace(*istring);
|
| - CHECK(in_new_space || CcTest::heap()->old_data_space()->Contains(*istring));
|
| + CHECK(in_new_space || CcTest::heap()->old_space()->Contains(*istring));
|
| CHECK_EQ(0, dispose_count);
|
| }
|
| - CcTest::heap()->CollectGarbage(
|
| - in_new_space ? i::NEW_SPACE : i::OLD_DATA_SPACE);
|
| + CcTest::heap()->CollectGarbage(in_new_space ? i::NEW_SPACE : i::OLD_SPACE);
|
| CHECK_EQ(1, dispose_count);
|
| }
|
|
|
| @@ -756,11 +755,10 @@ THREADED_TEST(ScavengeExternalOneByteString) {
|
| i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
|
| CcTest::heap()->CollectGarbage(i::NEW_SPACE);
|
| in_new_space = CcTest::heap()->InNewSpace(*istring);
|
| - CHECK(in_new_space || CcTest::heap()->old_data_space()->Contains(*istring));
|
| + CHECK(in_new_space || CcTest::heap()->old_space()->Contains(*istring));
|
| CHECK_EQ(0, dispose_count);
|
| }
|
| - CcTest::heap()->CollectGarbage(
|
| - in_new_space ? i::NEW_SPACE : i::OLD_DATA_SPACE);
|
| + CcTest::heap()->CollectGarbage(in_new_space ? i::NEW_SPACE : i::OLD_SPACE);
|
| CHECK_EQ(1, dispose_count);
|
| }
|
|
|
| @@ -15923,8 +15921,7 @@ TEST(ExternalizeOldSpaceTwoByteCons) {
|
| CompileRun("'Romeo Montague ' + 'Juliet Capulet'")->ToString(isolate);
|
| CHECK(v8::Utils::OpenHandle(*cons)->IsConsString());
|
| CcTest::heap()->CollectAllAvailableGarbage();
|
| - CHECK(CcTest::heap()->old_pointer_space()->Contains(
|
| - *v8::Utils::OpenHandle(*cons)));
|
| + CHECK(CcTest::heap()->old_space()->Contains(*v8::Utils::OpenHandle(*cons)));
|
|
|
| TestResource* resource = new TestResource(
|
| AsciiToTwoByteString("Romeo Montague Juliet Capulet"));
|
| @@ -15946,8 +15943,7 @@ TEST(ExternalizeOldSpaceOneByteCons) {
|
| CompileRun("'Romeo Montague ' + 'Juliet Capulet'")->ToString(isolate);
|
| CHECK(v8::Utils::OpenHandle(*cons)->IsConsString());
|
| CcTest::heap()->CollectAllAvailableGarbage();
|
| - CHECK(CcTest::heap()->old_pointer_space()->Contains(
|
| - *v8::Utils::OpenHandle(*cons)));
|
| + CHECK(CcTest::heap()->old_space()->Contains(*v8::Utils::OpenHandle(*cons)));
|
|
|
| TestOneByteResource* resource =
|
| new TestOneByteResource(i::StrDup("Romeo Montague Juliet Capulet"));
|
|
|