Fix construction of simple objects with setters on prototype
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Feb 2010 06:28:33 +0000 (06:28 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Feb 2010 06:28:33 +0000 (06:28 +0000)
commit1c2b2ac9c687a6f08208c06e683df047c5a52a3e
treed868f618235d0c5d19f3bfe8c6612471bdd876ba
parentad9ea637bed075af7bb1824464a538ed9c3ae37d
Fix construction of simple objects with setters on prototype

Simple objects which are constructed without calling the actual constructor function did not take setters defined on prototype chain of the new object into account.

Constructing objects this way is now not done if there are setters involved on the prototype chain of the new object.

This only fixes the case where the setter is found when the first object from a constructor is created. If the prototype chain is changed new objects will on take any change to setters into account.

TEST=test/mjsunit/setter-on-constructor-prototype.js
Review URL: http://codereview.chromium.org/606062

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3879 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/objects.cc
src/objects.h
src/runtime.cc
test/mjsunit/setter-on-constructor-prototype.js [new file with mode: 0644]