Improve the allocation and initialization of locals on IA32 in the top-level compiler.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 13 Nov 2009 13:59:07 +0000 (13:59 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 13 Nov 2009 13:59:07 +0000 (13:59 +0000)
commit5820f951c1323145e6230d026ad7024c21ed6433
tree9130cafe5da1d17643e5ab8c585f67a8b6f8328f
parent2e3e770ab9fedb2d95eb2236c00dd16fba124387
Improve the allocation and initialization of locals on IA32 in the top-level compiler.

This optimization is already done on x64 and ARM.

Until now we used a push immediate for each local variable on IA32:

  push $undefined
  push $undefined
  ...

to initialize each local variable. This change does:

  mov eax, $undefined
  push eax
  push eax
  ...

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3304 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ia32/fast-codegen-ia32.cc