Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 900e07ecdf9fa68a32540fc76be401d0b064a343..ef00703da7551eb0d76c61da21d6759dca4156e0 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -2592,6 +2592,8 @@ void HGraphBuilder::BuildCreateAllocationMemento( |
AllocationSite::kMementoCreateCountOffset)); |
memento_create_count = AddUncasted<HAdd>( |
memento_create_count, graph()->GetConstant1()); |
+ // This smi value is reset to zero after every gc, overflow isn't a problem. |
Hannes Payer (out of office)
2013/12/04 10:32:33
"isn't a problem since the counter is bounded by t
|
+ memento_create_count->ClearFlag(HValue::kCanOverflow); |
HStoreNamedField* store = Add<HStoreNamedField>( |
allocation_site, HObjectAccess::ForAllocationSiteOffset( |
AllocationSite::kMementoCreateCountOffset), memento_create_count); |