Revision: 21087
Author:   [email protected]
Date:     Wed Apr 30 12:33:16 2014 UTC
Log:      Fix gcmole warning in EnsureSlotContainsAllocationSite().

[email protected]

Review URL: https://codereview.chromium.org/268443002
http://code.google.com/p/v8/source/detail?r=21087

Modified:
 /branches/bleeding_edge/src/full-codegen.cc

=======================================
--- /branches/bleeding_edge/src/full-codegen.cc Wed Apr 30 10:51:01 2014 UTC
+++ /branches/bleeding_edge/src/full-codegen.cc Wed Apr 30 12:33:16 2014 UTC
@@ -364,7 +364,9 @@
 void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) {
   Handle<FixedArray> vector = FeedbackVector();
   if (!vector->get(slot)->IsAllocationSite()) {
-    vector->set(slot, *isolate()->factory()->NewAllocationSite());
+    Handle<AllocationSite> allocation_site =
+        isolate()->factory()->NewAllocationSite();
+    vector->set(slot, *allocation_site);
   }
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to