Avoid allocation of temporary zone lists when inserting representation changes.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 8 Mar 2011 15:08:36 +0000 (15:08 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 8 Mar 2011 15:08:36 +0000 (15:08 +0000)
commit4d2c3ee82de039e575a0b0c7a7f96e0bed40ad94
treefd5cc3f042454d3c3d4caa05c83575e551fd1d57
parent5a768f076929428a3e90217a92d54960b167cefb
Avoid allocation of temporary zone lists when inserting representation changes.

Instead of allocating fresh temporary lists for every instruction, reuse
the same instance and reset it between instructions.

This reduces the amount of zone memory used for inserting the HChange
instructions roughly by half.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7094 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen.cc
src/hydrogen.h