Allocate arguments object on-demand instead of at function entry.
authorkasperl@chromium.org <kasperl@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 24 Jun 2009 08:01:38 +0000 (08:01 +0000)
committerkasperl@chromium.org <kasperl@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 24 Jun 2009 08:01:38 +0000 (08:01 +0000)
commitf66ea38c0beacc049e4b897035d0b64f880f784c
tree9de78be517b23ebde88f3dfc18b0885239ae0696
parent69764a5d2aa03ac5596c6caf0d7f36140f42dedb
Allocate arguments object on-demand instead of at function entry.
This allows Function.prototype.apply to not allocate the objects
and copy the arguments directly from the stack.
Review URL: http://codereview.chromium.org/147075

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2256 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
14 files changed:
src/accessors.cc
src/ast.cc
src/ast.h
src/ia32/codegen-ia32.cc
src/ia32/codegen-ia32.h
src/parser.cc
src/runtime.js
src/scopes.cc
src/scopes.h
src/variables.cc
src/variables.h
src/x64/codegen-x64.cc
test/mjsunit/arguments-apply.js [new file with mode: 0644]
test/mjsunit/arguments-lazy.js [new file with mode: 0644]