Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 901e10721d3a02bf5f48d638b2e06ab519ae6835..60537241149780f84c5a0f7596427c34fbc5cb26 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1852,7 +1852,7 @@ HValue* HGraphBuilder::BuildRegExpConstructResult(HValue* length, |
HValue* index, |
HValue* input) { |
NoObservableSideEffectsScope scope(this); |
- HConstant* max_length = Add<HConstant>(JSObject::kInitialMaxFastElementArray); |
+ HConstant* max_length = Add<HConstant>(JSArray::kInitialMaxFastElementArray); |
Add<HBoundsCheck>(length, max_length); |
// Generate size calculation code here in order to make it dominate |
@@ -2658,7 +2658,7 @@ HValue* HGraphBuilder::BuildAllocateArrayFromLength( |
HValue* constant_zero = graph()->GetConstant0(); |
HConstant* max_alloc_length = |
- Add<HConstant>(JSObject::kInitialMaxFastElementArray); |
+ Add<HConstant>(JSArray::kInitialMaxFastElementArray); |
HInstruction* checked_length = Add<HBoundsCheck>(length_argument, |
max_alloc_length); |
IfBuilder if_builder(this); |
@@ -3128,10 +3128,10 @@ HValue* HGraphBuilder::BuildCloneShallowArrayNonEmpty(HValue* boilerplate, |
// This function implicitly relies on the fact that the |
// FastCloneShallowArrayStub is called only for literals shorter than |
- // JSObject::kInitialMaxFastElementArray. |
+ // JSArray::kInitialMaxFastElementArray. |
// Can't add HBoundsCheck here because otherwise the stub will eager a frame. |
HConstant* size_upper_bound = EstablishElementsAllocationSize( |
- kind, JSObject::kInitialMaxFastElementArray); |
+ kind, JSArray::kInitialMaxFastElementArray); |
elements->set_size_upper_bound(size_upper_bound); |
Add<HStoreNamedField>(result, HObjectAccess::ForElementsPointer(), elements); |