Reviewers: Yang,

Message:
Hi Yang, here is the gcmole warning, thx!

Description:
Fix gcmole warning in EnsureSlotContainsAllocationSite().

R=yang...@chromium.org

Please review this at https://codereview.chromium.org/268443002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+3, -1 lines):
  M src/full-codegen.cc


Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 81dc7b6d5b5e7a3c14c6fd3b9dfd5cd527bac307..2846d2ba14c37cae14a2732ab79d6bbaaae77735 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -364,7 +364,9 @@ unsigned FullCodeGenerator::EmitBackEdgeTable() {
 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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to