* Modify simulator and ARM code generator to avoid swi
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 9 Jun 2009 09:26:53 +0000 (09:26 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 9 Jun 2009 09:26:53 +0000 (09:26 +0000)
commit6b2a49ff8326ac011b6e05bb7594ee9fd4344ee2
treee85cd94a760d00e92006e60377a95e8e0dcceed5
parent4a96feeef3ebf9ff1d4c0f33530be5cd896111a1
* Modify simulator and ARM code generator to avoid swi
instructions.  The intention is that the snapshots generated
by the simulator should be usable on the hardware.  Instead of
swi instructions we generate a branch to a swi instruction that
is not part of the snapshot.  The call/jump is patched up in
the same way as other external references when the snapshot
is deserialized.  This only works for EABI targets: on old ABI
targets we still emit some instructions not supported by the
simulator (fp coprocessor instructions).
Review URL: http://codereview.chromium.org/119036

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2127 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/codegen-arm.cc
src/arm/constants-arm.h
src/arm/cpu-arm.cc
src/arm/disasm-arm.cc
src/arm/macro-assembler-arm.cc
src/arm/simulator-arm.cc
src/arm/simulator-arm.h
src/assembler.cc
src/assembler.h
src/serialize.cc
src/v8.cc