commit | 1c0f3f099cf6420af16a9ab29f3bdf6721ac78a3 | [log] [tgz] |
---|---|---|
author | Eric Holk <eholk@google.com> | Fri Nov 09 13:48:59 2018 -0800 |
committer | Eric Holk <eholk@google.com> | Thu Nov 15 17:44:03 2018 +0000 |
tree | fdbb0b490b40357607fc5673633c221669286a12 | |
parent | 2583def750214a34b674d128bc1763f742015dba [diff] |
[view_compiler] cleanup: Use format-specific bytecode encoding functions This change corrals most of the bit shifting and ORing needed to encode Dex instructions into EncodeXXX functions that follow the naming scheme at https://source.android.com/devices/tech/dalvik/instruction-formats. Overall, it makes the code easier to follow and probably even less error prone because we only have to make the format right in one place. Bug: 111895153 Change-Id: I902ec3c8bca6b5dc4ad900503af7aef58d4bbf5f