v8/test
mvstanton@chromium.org c1e19bfc35 Bugfix: The general array constructor stub did not handle the case
properly when it is called with a function pointer in the type cell,
instead assuming that an AllocationSite object should be present. The
case where this can happen is if the cell is uninitialized, then the
first constructor call made is to the Array function of a different
context. In that case, we'll store the function pointer in the cell,
and then go ahead and call the array constructor stub too. The bug is
fixed by checking for the AllocationSite object map. If not found, the
constructor stub goes forward with a default ElementsKind, just as in
several other cases.

A test in allocation-site-info.js was beefed up to make sure the state
chain described above is traversed.

BUG=
R=hpayer@chromium.org, hpayer@google.com

Review URL: https://codereview.chromium.org/18277006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15555 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-07-08 14:41:54 +00:00
..
cctest Collect garbage at the beginning of cctest/test-cpu-profiler/FunctionCallSample 2013-07-08 11:26:15 +00:00
message Migrate blink tests that are not relevant to blink into a new V8 test suite called 'blink'. 2013-06-26 14:23:30 +00:00
mjsunit Bugfix: The general array constructor stub did not handle the case 2013-07-08 14:41:54 +00:00
mozilla Remove SCons related files 2013-04-18 11:01:14 +00:00
preparser Remove SCons related files 2013-04-18 11:01:14 +00:00
test262 Fix bogus arguments length check in StringLocaleCompare. 2013-05-10 13:50:10 +00:00
webkit Remove irrelevant parser test that has SVN issues. 2013-07-01 08:11:30 +00:00