Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: test/cctest/test-heap.cc

Issue 18089024: Handlify JSObject::SetPrototype method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/objects.cc ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index e9b23ed514ad3637d8d6903cb82ff285465c98e5..be1098cc4c3877b8c3734a4ba4da99bea9c8509a 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -1972,10 +1972,10 @@ TEST(PrototypeTransitionClearing) {
CHECK(!space->LastPage()->Contains(
map->GetPrototypeTransitions()->address()));
CHECK(space->LastPage()->Contains(prototype->address()));
- baseObject->SetPrototype(*prototype, false)->ToObjectChecked();
- CHECK(map->GetPrototypeTransition(*prototype)->IsMap());
+ JSObject::SetPrototype(baseObject, prototype, false);
+ CHECK(Map::GetPrototypeTransition(map, prototype)->IsMap());
HEAP->CollectAllGarbage(Heap::kNoGCFlags);
- CHECK(map->GetPrototypeTransition(*prototype)->IsMap());
+ CHECK(Map::GetPrototypeTransition(map, prototype)->IsMap());
}
« src/objects.cc ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698