Add native binding for isDexOptNeededInternal.

Dalvik has no profiler, so we can safely ignore the
"defer" argument.

Keeps dalvik functional on master.

Change-Id: I2ace9a215e7ff471294927aa870e55cf7c0327b1
Merge "Add native binding for isDexOptNeededInternal."
Transform incorrect invokevirtual ops to invokedirect.

bug: 12370565

Change-Id: I75de311912d3e620f95fbac712e799e64622e4ab
Merge "Transform incorrect invokevirtual ops to invokedirect."
Remove dx/tests/120-disable-extend-ops

Support for the target-api flag was removed in 2011.

Change-Id: Id50c53f759d4e3a59f550dbeb6e733b68df58dd3
Merge "Remove dx/tests/120-disable-extend-ops"
Script is using function(), which is bash specific.

Change-Id: I925d42d10e471fa25ca3e924b1db1db6911b5641
Changed dvmDexCacheStatus to check for odex file first.

This prevents the generation of a new dexfile when an odex file already
exists when switching between Art and Dalvik.

(cherry picked from commit 36e356c96640775f0a3f167bd2426ea0f0093b8b)

Change-Id: Ieafdca8453f70c96edb787b5a3a3ac7c7aeea021
Merge "Changed dvmDexCacheStatus to check for odex file first."
Merge "Script is using function(), which is bash specific."
dalvik: let 32-bit dalvik build on multilib targets

Set LOCAL_32_BIT_ONLY for all target modules
Use LOCAL_LDFLAGS_x86 instead of ifeq ($(TARGET_ARCH),x86)
Set dvm_arch to TARGET_2ND_ARCH instead of TARGET_ARCH on 64-bit
targets

This will allow "make checkbuild" to succeed on 64-bit platforms.

Change-Id: Idd51dda26b54855c0c8640f8fcfbf4274baf8845
Merge "dalvik: let 32-bit dalvik build on multilib targets"
dalvik: fix mips build

Fix typo in rule for libdvm_sv.  LOCAL_MODULE_UNSUPPORTED_ARCH
should be LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH.

Change-Id: Iada67cc93560938d2a82a320cb88b7560e7db1b4
Merge "dalvik: fix mips build"
Remove Zygote.fork

Currently unused. Note that ART does not have a native
definition of this function.

Change-Id: If75830ca231db7a597dfe726fb0968828fca9593
Merge "Remove Zygote.fork"
Move zygote initialization code to the framework.

The framework class com.android.internal.os.ZygoteInit
will call back to the runtime before / after the fork, so
that it can perform runtime specific bringup / teardown.

Change-Id: I9730e12da8b22f03397658b1bddc7fd73f4fbc7d
Dalvik script: Use PWD for android-data and cleanup after running.

Change-Id: I0c8940c77184a40c4c20c7c369f1a8a36624ccb6
Merge "Move zygote initialization code to the framework."
Fix debugging on dalvik.

u4* args is a pointer to a flat array of 4 byte values,
so the "debugFlags" arg of postForkChild(long, int debugFlags)
is at args[2], not args[1].

bug: 13926783

Change-Id: Icd3bbf9dd249cdd70e085acdd4dd7daa415cd698