OSDN Git Service

Get rid of the copies of the opcode table pointers.
authorDan Bornstein <danfuzz@android.com>
Fri, 19 Nov 2010 20:36:19 +0000 (12:36 -0800)
committerDan Bornstein <danfuzz@android.com>
Fri, 19 Nov 2010 20:36:19 +0000 (12:36 -0800)
commit41e286c0623dcb4efc6243c94ba14e7febed4b25
tree0913ea0ac7a342fceb9ee5d60c5ff26af8381850
parent1bf27827da214984d84febe187899969457bfb31
Get rid of the copies of the opcode table pointers.

This inclduded fixing all the accessor functions to refer to the
global ones defined in InstrUtils.[ch] instead of taking separate
"table pointer" arguments.

This did end up adding a few more truly global references to some of
the code paths, particularly when performing dex optimization, so I
went ahead and measured the time to do a cold first-boot both before
and after the change (on real hardware). The times were identical (to
one-second granularity), so I'm reasonably comfortable making this
change.

Change-Id: I604d9f7882bad4245bb11371218d13b06c3a5375
12 files changed:
dexdump/DexDump.c
libdex/InstrUtils.c
libdex/InstrUtils.h
vm/Globals.h
vm/analysis/CodeVerify.c
vm/analysis/DexVerify.c
vm/compiler/Frontend.c
vm/compiler/InlineTransformation.c
vm/compiler/Loop.c
vm/compiler/codegen/arm/CodegenDriver.c
vm/compiler/codegen/arm/Thumb2/Gen.c
vm/interp/Jit.c