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