aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/LocalOptimizations.c
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2011-02-03 17:05:28 -0800
committerDan Bornstein <danfuzz@android.com>2011-02-03 17:55:25 -0800
commitd63837a6a16a19e3ae943cdfad52b6f6c8d04a22 (patch)
tree5a0d050da1a321d6abb3e99cf814c67cfec957dd /vm/compiler/codegen/arm/LocalOptimizations.c
parenta5a7c167cdd9e821573e04c0e15e7623e5ec58fb (diff)
Clean up targets and data payloads.
In particular: * Fix target calculation to be properly relative when encoding. * Add data payload variants of DecodedInstruction, and en/decode using them. * Remove the uninterpreted data member from the base DecodedInstruction. This change introduces the concept of an "address map" that is built up while reading or writing code, which is used when en/decoding switch data payload instructions, so that they can decode targets into absolute addresses and encode targets into relative addresses. The deal is that the relative addresses encoded in these payload instructions are relative to the address of the dependant switch instruction and not the address of the payload instruction. Change-Id: I43cb014f1af75a31bbf0b757e4854a9dc865eab7
Diffstat (limited to 'vm/compiler/codegen/arm/LocalOptimizations.c')
0 files changed, 0 insertions, 0 deletions