Added support for array literals to the toplevel compiler. They are
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 22 Oct 2009 10:07:45 +0000 (10:07 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 22 Oct 2009 10:07:45 +0000 (10:07 +0000)
commitfbc0eaa13d95846ee4af24b242d8c75920079a9a
tree9a91eb907068e80114fc81636c10b8fea4ab4fb2
parentee9d2d6ceeacd70efe323665d9e43eac2599cf4a
Added support for array literals to the toplevel compiler.  They are
currently compiled the same as with the optimizing compiler: they are
cloned from a boilerplate object and the boilerplate objects are
lazily constructed.

Also changed argument pushing on ARM to use stm (store multiple),
which required changing the order of arguments to the runtime
functions DeclareGlobals and NewClosure.  They were only used from
generated code.

Finally, changed the toplevel code generator so that stack pops to
discard a temporary became addition to the stack pointer on ia32 and
x64.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3110 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/codegen-arm.cc
src/arm/fast-codegen-arm.cc
src/compiler.cc
src/fast-codegen.cc
src/ia32/codegen-ia32.cc
src/ia32/fast-codegen-ia32.cc
src/runtime.cc
src/x64/codegen-x64.cc
src/x64/fast-codegen-x64.cc
test/mjsunit/compiler/literals.js