Status: Accepted
Owner: mikhail.naganov
CC: [email protected], [email protected], [email protected]
Labels: Type-Bug Priority-Medium
New issue 1818 by mikhail.naganov: Heap profiler doesn't show properties
getters in fast properties case
http://code.google.com/p/v8/issues/detail?id=1818
Consider this fragment of code:
var x = {};
x.__defineGetter__("y", function Y() { return 42; });
var xBig = {};
for (var i = 0; i < 1000; ++i) {
xBig.__defineGetter__("y" + i, function Y() { return 42; });
}
For the "x" object, no property named "y" is reported in heap snapshot, as
opposed to "xBig", for which all the properties are reported.
The difference is that "x" has fast properties. We skip callbacks when
building references graph.
Thanks to Sven and Kevin for pointing this out!
Attachments:
gettersetter.html 266 bytes
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev