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
This commit is contained in:
mvstanton@chromium.org 2014-04-30 12:33:16 +00:00
parent 88144ee17f
commit d46e3a77a0

View File

@ -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);
}
}