size is truly huge. A test had to be modified slightly so as not to be too slow.
Review URL: http://codereview.chromium.org/40163
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1428
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
Object* obj = BUILTIN_ARG(1);
if (obj->IsSmi()) {
int len = Smi::cast(obj)->value();
- if (len >= 0 && len < JSObject::kMaxFastElementsLength) {
+ if (len >= 0 && len < JSObject::kInitialMaxFastElementArray) {
Object* obj = Heap::AllocateFixedArrayWithHoles(len);
if (obj->IsFailure()) return obj;
array->SetContent(FixedArray::cast(obj));
static const uint32_t kMaxGap = 1024;
static const int kMaxFastElementsLength = 5000;
+ static const int kInitialMaxFastElementArray = 100000;
static const int kMaxFastProperties = 8;
static const int kMaxInstanceSize = 255 * kPointerSize;
// When extending the backing storage for property values, we increase
var result = [ ];
result.push(17);
result.push(-31);
- result.push(Number.MAX_VALUE);
- result.push(new Array(5003));
+ result.push(new Array(100));
+ result.push(new Array(100003));
result.push(Number.MIN_VALUE);
result.push("whoops");
result.push("x");