Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index a2c3422f4f4b4411c1226440e63551ab9645e0f5..5678ebd49661a2caa1d77d1baabf42d28d28bee7 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -1907,7 +1907,8 @@ class ArrayConstructorStubBase : public HydrogenCodeStub { |
// It only makes sense to override local allocation site behavior |
// if there is a difference between the global allocation site policy |
// for an ElementsKind and the desired usage of the stub. |
- ASSERT(override_mode != DISABLE_ALLOCATION_SITES || |
+ ASSERT(!(FLAG_track_allocation_sites && |
+ override_mode == DISABLE_ALLOCATION_SITES) || |
AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE); |
bit_field_ = ElementsKindBits::encode(kind) | |
AllocationSiteOverrideModeBits::encode(override_mode) | |