PR144 (aligned patchers on x86_64)
authorStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 19 Jan 2011 10:20:43 +0000 (11:20 +0100)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 19 Jan 2011 10:20:43 +0000 (11:20 +0100)
commitc414f560a7e0b7636a780e6b933e91e441f80503
treed142a2484723a13a4c81975fc669a2193e4d4a1a
parentbfcfa2e191ac88ffae3b62a33464c30df608f3ff
PR144 (aligned patchers on x86_64)
* src/vm/jit/patcher-common.cpp,
src/vm/jit/patcher-common.h (patchref_t): Added
yet another field - patch_align.
* src/vm/jit/x86_64/codegen.c, src/vm/jit/x86_64/codegen.h:
Make all patched code instances aligned.
* src/vm/jit/x86_64/emit.c (emit_arbitrary_nop): Added.
* src/vm/jit/x86_64/emit.h: Likewise.
* src/vm/jit/x86_64/patcher.c: Adapted to new code layout,
verify alignment.
* tests/regression/bugzilla/PR144.java: Added new test case
exercising the new code paths.
* tests/regression/bugzilla/All.java: Likewise.
src/vm/jit/patcher-common.cpp
src/vm/jit/patcher-common.hpp
src/vm/jit/x86_64/codegen.c
src/vm/jit/x86_64/codegen.h
src/vm/jit/x86_64/emit.c
src/vm/jit/x86_64/emit.h
src/vm/jit/x86_64/patcher.c
tests/regression/bugzilla/All.java
tests/regression/bugzilla/PR144.java [new file with mode: 0644]