Prevent inline constructor generation when duplicate properties are present in the...
authorkaznacheev@chromium.org <kaznacheev@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 16 Sep 2010 10:55:37 +0000 (10:55 +0000)
committerkaznacheev@chromium.org <kaznacheev@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 16 Sep 2010 10:55:37 +0000 (10:55 +0000)
commiteef3bd7c04cb5fcbd621fb9766261636e030a80c
tree18d3aa012c6b4c84115bed319558d97feb46fa40
parente91a352d025474db95f618382381984bb9bad1d7
Prevent inline constructor generation when duplicate properties are present in the constructor.

Currenly the constructor like this:
function f() {
  this.a = 0;
  this.a = 1;
  this.a = 2;
}
creates a map with duplicate desciptors which is bad in many ways.

Review URL: http://codereview.chromium.org/3434004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5476 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap.cc
src/objects.cc
src/objects.h
test/mjsunit/this-property-assignment.js [new file with mode: 0644]