Fix gcmole warning in EnsureSlotContainsAllocationSite().

R=yangguo@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21087 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 88144ee1
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment