Reviewers: Mads Ager,

Description:
Preserve constant function transition when adding the same function.

This should help in cases like:
function Constructor() {
  this.foo = constFunction;
  this.bar = "baz";
}

for (...) {
  o = new Constructor();
  // Constant call IC will work.
  o.foo();
  // Inlined property load will see the same map.
  use(o.bar);
}

This change also fixes a latent bug in custom call IC-s for strings
exposed by string-charcodeat.js.

Please review this at http://codereview.chromium.org/3160006/show

Affected files:
  M src/ia32/stub-cache-ia32.cc
  M src/objects-inl.h
  M src/objects.h
  M src/objects.cc
  M src/property.h


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to