v8/test
mvstanton@chromium.org cec8548d0e Correct handling of arrays with callbacks in the prototype chain.
Our generic KeyedStoreIC doesn't handle the case when a callback is
set on array elements in the prototype chain of the object, nor do
we recognize that we need to avoid the monomorphic case if these
callbacks exist.

This CL addresses the issue by looking for dictionary elements in
the prototype chain on IC misses and crankshaft element store
instructions. When found, the generic IC is used. The generic IC is
changed to go to the runtime in this case too.

In general, keyed loads are immune from this problem because they
won't return the hole: discovery of the hole goes to the runtime where
the callback will be found in the prototype chain. Double array loads
in crankshaft can return the hole but only if the prototype chain is
unaltered (we will catch such alterations).

Includes the following patch as well (already reviewed by bmeurer):
Performance regression found in test regress-2185-2.js. The problem was
that the bailout method for TransitionAndStoreStub was not performing
the appropriate transition.

(Review URL for the ElementsTransitionAndStoreIC_Miss change:
https://codereview.chromium.org/26911007)

R=danno@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17525 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-11-06 15:45:43 +00:00
..
benchmarks Make it possible to run a test only in the standard variant. 2013-10-17 13:09:28 +00:00
cctest [Object.observe] rename intrinsic change record types for consitency. 2013-11-06 12:14:24 +00:00
intl Original review https://codereview.chromium.org/25855005. 2013-10-11 17:54:31 +00:00
message Make the message test suite run without slow asserts. 2013-10-24 17:27:58 +00:00
mjsunit Correct handling of arrays with callbacks in the prototype chain. 2013-11-06 15:45:43 +00:00
mozilla Migrate to new test status file syntax 2013-09-24 12:08:33 +00:00
preparser Make it possible to run a test only in the standard variant. 2013-10-17 13:09:28 +00:00
test262 Migrate to new test status file syntax 2013-09-24 12:08:33 +00:00
webkit Migrate to new test status file syntax 2013-09-24 12:08:33 +00:00