Status: Accepted
Owner: da...@chromium.org
Labels: Type-Bug Priority-Medium
New issue 2673 by vego...@chromium.org: Profiler way of marking function
for recompilation is not good for mixin class pattern
http://code.google.com/p/v8/issues/detail?id=2673
In the code below V8 will never optimize function length because it marks
individual closure instances that are never used again:
function Point(x, y) {
this.x = x;
this.y = y;
this.length = function () { return Math.sqrt(this.x * this.x + this.y *
this.y); };
}
for (var i = 0; i < 10000; i++) {
new Point(0.0, 0.0).length();
}
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.