| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 7ee6081026b7c58a786a3e3a5985a69259b1f787..ccae7982ddbd10c634f79bed59c31c08ae133569 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -1766,15 +1766,13 @@ HInstruction* HGraphBuilder::BuildGetArrayFunction(HValue* context) {
|
| HGraphBuilder::JSArrayBuilder::JSArrayBuilder(HGraphBuilder* builder,
|
| ElementsKind kind,
|
| HValue* allocation_site_payload,
|
| - AllocationSiteMode mode) :
|
| + bool disable_allocation_sites) :
|
| builder_(builder),
|
| kind_(kind),
|
| allocation_site_payload_(allocation_site_payload) {
|
| - if (mode == DONT_TRACK_ALLOCATION_SITE) {
|
| - mode_ = mode;
|
| - } else {
|
| - mode_ = AllocationSiteInfo::GetMode(kind);
|
| - }
|
| + mode_ = disable_allocation_sites
|
| + ? DONT_TRACK_ALLOCATION_SITE
|
| + : AllocationSiteInfo::GetMode(kind);
|
| }
|
|
|
|
|
|
|