Set maximum length of FixedArray in terms of elements instead an absolute number...
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 22 Nov 2011 16:02:26 +0000 (16:02 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 22 Nov 2011 16:02:26 +0000 (16:02 +0000)
commit23e948b8a7c5b63924f1fc47f5515aa542bd4f86
tree7d61bf6be42ee4b6631f4aca9c7ee3bfccb2099c
parentbe1a94b6265339118eb838262b7469cee244c409
Set maximum length of FixedArray in terms of elements instead an absolute number of bytes.

This sets the limit to 128M elements on all platforms. Before allocating a large array may
cause an OutOfMemory on x64 whereas it would not on ia32.

Also remove an unused constant from the FreeSpace class.

BUG=103103
Review URL: http://codereview.chromium.org/8637015

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10044 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects.h