| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index c9482d69eed049bcd851a63d0af66258ae6f022f..45cb39c07e3c581e18847339d409a3515a1a6f28 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -235,24 +235,26 @@ TEST(MarkCompactCollector) {
|
|
|
| // TODO(1600): compaction of map space is temporary removed from GC.
|
| #if 0
|
| -static Handle<Map> CreateMap() {
|
| - return FACTORY->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
|
| +static Handle<Map> CreateMap(Isolate* isolate) {
|
| + return isolate->factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
|
| }
|
|
|
|
|
| TEST(MapCompact) {
|
| FLAG_max_map_space_pages = 16;
|
| CcTest::InitializeVM();
|
| + Isolate* isolate = Isolate::Current();
|
| + Factory* factory = isolate->factory();
|
|
|
| {
|
| v8::HandleScope sc;
|
| // keep allocating maps while pointers are still encodable and thus
|
| // mark compact is permitted.
|
| - Handle<JSObject> root = FACTORY->NewJSObjectFromMap(CreateMap());
|
| + Handle<JSObject> root = factory->NewJSObjectFromMap(CreateMap());
|
| do {
|
| Handle<Map> map = CreateMap();
|
| map->set_prototype(*root);
|
| - root = FACTORY->NewJSObjectFromMap(map);
|
| + root = factory->NewJSObjectFromMap(map);
|
| } while (HEAP->map_space()->MapPointersEncodable());
|
| }
|
| // Now, as we don't have any handles to just allocated maps, we should
|
|
|