Add DEXPREOPT support for ART

Change-Id: I24d0d7b2a23a769f5d69bd4dc14be22e1475b759

Conflicts:
	core/base_rules.mk
	core/dex_preopt.mk
	core/java_library.mk
	core/prebuilt.mk
Make libart the default runtime

Change-Id: I4394f2bdef6f1be36f0f17f3b42d3e62bc2245ef
Change LIBART_IMG_TARGET_BASE_ADDRESS to 0x70000000

Required for getting ART with valgrind on device working since
valgrind maps things in the 0x60000000 address range.

Bug: 13323732

Change-Id: I05efdbf3fe5acd1418e1d4ced5844154fb4c5d37
build: PRODUCT_DEX_PREOPT_IMAGE_IN_DATA

(cherry-picked from commit cd337c71ee65b17529a67af34d4c0b2824a4f175)

Change-Id: I6d8ab3b3cf52f6a6b15f1c8e8d00cdf59042436b
Remove host-prefix command line argument to dex2oat.

Change-Id: If4a962976d1e8a283d6b682112a1b12d328d8dbb
Fix embedded build

1) Disable dexpreopt if DALVIK_VM_LIB isn't set up by the product.
2) DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES is moved to config.mk,
for it's only decided by target arch.
3) Move Java module input from embedded.mk to base.mk.

Change-Id: Ife70b0cd8cee2e5c92f356c808affa56f494b49a

Conflicts:
	core/config.mk
cortex-a7 supports div

(cherry picked from commit cece45d22652ca0d8a57a6cb03c5ca2a915a9a07)

Change-Id: I9975171ef2c2cd3a9481fa0896473fec684095f3
Use debug versions of dex2oat explicitly.

Change-Id: Ie7c238908a5739af752a08fec1a04914026a8f96
Place ISA in ART boot image name.

Depends upon:
https://android-review.googlesource.com/#/c/94096/2

Change-Id: I79bec60a17ea7cf9214e56f8035d4a1b80b0eeb6
Add WITH_ART

(cherry picked from commit 6b7a0d2f1ff90d24e3ade9ccf82a084f5f999c1f)

Change-Id: If6e208f9fc859f31da2cd71fdc1ddbe1fc1ed7aa
build: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: Ie73a3f2b6655d0ae3e3a905a1c64747343c525a0
Move to dalvik.vm.lib.2 to force default to libart

Bug: 14298175

(cherry picked from commit 7e127ebe0bf8753fcbeeac6140916d512322e308)

Change-Id: I0a94e01f46fcc074d8c8fd1e5558fb764ab47361
Rework the generation of host java libraries.

We currently have two types of host libraries, those
meant for the host VM (Sun, OpenJDK etc.) and those meant
for a host dalvik build. The former need to be compiled
against the host standard libraries and the latter need
to be compiled against libcore. This change introduces
two new build rules to complement the existing the existing
host rules.

BUILD_HOST_DALVIK_JAVA_LIBRARY : Build a java library for
a host build of dalvik. Bootclasspath will be set to a host
build of libcore.
BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY : Build a static java
library for a host build of dalvik. Bootclasspath will be set
to a host build of libcore.

This change also removes support for the LOCAL_BUILD_HOST_DEX
flag, which is now unnecessary.

bug: 8992787

(cherry picked from commit 0dd273a3f68364045c0e8bdcc10a4ecd3c07b745)

Change-Id: I3569fff8eaa4d26d55fcc317bd98471f55d74c14

Conflicts:
	core/host_java_library.mk
Remove dependencies on runtime_libdvm and libdvm.so in general

Bug: 14298175

(cherry picked from commit bf8a374a92e327efed95892fe67e6917a89c6c2b)

Change-Id: I183d1ff078a54c422305d8798ea200855265ebb6
Remove some uses of the deprecated WITH_HOST_DALVIK.

Bug: 13751317.
Change-Id: I4beb81089b4ad7dac4d87571509389d1dae22bf3
Remove the redundant DISABLE_DEXPREOPT

To disable dexpreopt, use just:
WITH_DEXPREOPT=false

Change-Id: I5804f3774f8ec50eb16c5336776dbce0c28b16d9

Conflicts:
	target/board/generic_x86_64/BoardConfig.mk