commit | f67b6afce08a6b9b5daf7d4d69e132fda07bc78f | [log] [tgz] |
---|---|---|
author | Dan Bornstein <danfuzz@android.com> | Wed Feb 02 14:01:52 2011 -0800 |
committer | Dan Bornstein <danfuzz@android.com> | Wed Feb 02 14:10:56 2011 -0800 |
tree | c49803909b076d806bc89b268d7f768db60c1c59 | |
parent | fbb320e01b5e43a3d86740ef77961d2a9164c230 [diff] |
CodeReader visitor dispatch now uses OpcodeInfo. This gets rid of the per-opcode Instruction array and just does a simple switch. If it turns out that the switch has poor performance, we can push the visitor abstraction down into IndexType. The big change to OpcodeInfo is to make every Info instance always have a non-null IndexType, exactly so it could be reliably switch()ed on without having to do an explicit null check. Change-Id: Iee8289f8766ce41c5043eec7212b2133ec71e682