aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/CodegenFactory.cpp
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2011-03-11 12:58:05 -0800
committerDan Bornstein <danfuzz@android.com>2011-03-11 16:30:30 -0800
commita9c49df6714b3a37b7a7d0522932e622be2b35ac (patch)
treeec5a1abdb2e5253099ec97d81ae47de32d6e5d9b /vm/compiler/codegen/CodegenFactory.cpp
parentc3bdf1cc467ef4ac876b697ed1bcfe3e420f0ae2 (diff)
Clean up how primitive types are handled.
The PrimitiveType enum got "promoted" to libdex, and I added a few helper functions there. I also quashed the idea that there is some sort of canonical ordering of the enumerated values. In the vm (per se), I made PrimitiveType uses where it had assumed an ordering instead switch(). This mostly made things much simpler. I also split out the array of type classes in Globals.h into individual ClassObject*s. This mostly made things simpler, but the gc got a tiny bit of extra cruft because of it. Finally, I made it so that the type classes get created explicitly during vm startup, instead of happening implicitly the first time they're accessed. This both simplified the code and, in particular, made it so that the type classes didn't have to be declared volatile. There are still a couple of related items that could stand to be cleaned up, but I think what's here is enough for one patch. Change-Id: Id14a6dfdb200abce9f30911c330ba32d9c2a4c3f
Diffstat (limited to 'vm/compiler/codegen/CodegenFactory.cpp')
0 files changed, 0 insertions, 0 deletions