Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 5c4855f96cc8a3b8d7097a7b37208a244d0f36e1..0d668c8b94b4307ef2457f836227ba8bd67ee587 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -5242,7 +5242,7 @@ Handle<WeakCell> AddRetainedMap(Isolate* isolate, Heap* heap) { |
CompileRun("(function () { return {x : 10}; })();"); |
Handle<JSObject> proto = |
v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(result)); |
- map->set_prototype(*proto); |
+ Map::SetPrototype(map, proto); |
heap->AddRetainedMap(map); |
return inner_scope.CloseAndEscape(Map::WeakCellForMap(map)); |
} |