Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 1961e403ce113ad50b59b082f53b27ad68992bf5..6ce43623fafd205daae550a0d8c9e8e1a69f1f84 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8307,7 +8307,7 @@ void HOptimizedGraphBuilder::BuildEmitDeepCopy( |
int* data_offset, |
AllocationSiteMode mode) { |
bool create_allocation_site_info = mode == TRACK_ALLOCATION_SITE && |
- boilerplate_object->map()->CanTrackAllocationSite(); |
+ AllocationSite::CanTrack(boilerplate_object->map()->instance_type()); |
// If using allocation sites, then the payload on the site should already |
// be filled in as a valid (boilerplate) array. |
@@ -8363,7 +8363,7 @@ void HOptimizedGraphBuilder::BuildEmitDeepCopy( |
// Create allocation site info. |
if (mode == TRACK_ALLOCATION_SITE && |
- boilerplate_object->map()->CanTrackAllocationSite()) { |
+ AllocationSite::CanTrack(boilerplate_object->map()->instance_type())) { |
elements_offset += AllocationMemento::kSize; |
*offset += AllocationMemento::kSize; |
BuildCreateAllocationMemento(target, JSArray::kSize, allocation_site); |