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:
parent
88144ee17f
commit
d46e3a77a0
@ -364,7 +364,9 @@ unsigned FullCodeGenerator::EmitBackEdgeTable() {
|
|||||||
void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) {
|
void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) {
|
||||||
Handle<FixedArray> vector = FeedbackVector();
|
Handle<FixedArray> vector = FeedbackVector();
|
||||||
if (!vector->get(slot)->IsAllocationSite()) {
|
if (!vector->get(slot)->IsAllocationSite()) {
|
||||||
vector->set(slot, *isolate()->factory()->NewAllocationSite());
|
Handle<AllocationSite> allocation_site =
|
||||||
|
isolate()->factory()->NewAllocationSite();
|
||||||
|
vector->set(slot, *allocation_site);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user