Fix gc mole test failure.
authormvstanton@chromium.org <mvstanton@chromium.org>
Mon, 20 Oct 2014 17:32:06 +0000 (17:32 +0000)
committermvstanton@chromium.org <mvstanton@chromium.org>
Mon, 20 Oct 2014 17:32:06 +0000 (17:32 +0000)
TBR=ulan@chromium.org

Review URL: https://codereview.chromium.org/651683003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24745 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-feedback-vector.cc

index 7e4fec8dce45f2999ddd73dba196ca57d3478882..517d19f535bc0c61260a57b65adcca401ed8d1b2 100644 (file)
@@ -71,7 +71,8 @@ TEST(VectorSlotClearing) {
   // Fill with information
   vector->Set(FeedbackVectorSlot(0), Smi::FromInt(1));
   vector->Set(FeedbackVectorSlot(1), *factory->fixed_array_map());
-  vector->Set(FeedbackVectorSlot(2), *factory->NewAllocationSite());
+  Handle<AllocationSite> site = factory->NewAllocationSite();
+  vector->Set(FeedbackVectorSlot(2), *site);
 
   vector->ClearSlots(NULL);