summaryrefslogtreecommitdiffstats
path: root/tools/art
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2011-09-03 12:25:21 -0700
committerBrian Carlstrom <bdc@google.com>2011-09-06 15:28:47 -0700
commit69b15fb098162f19a4c20e6dccdcead04d9c77f0 (patch)
tree84fdfc26f560fb618b652a0aff98347f875a2653 /tools/art
parent109bd6a38d0cd7c4b7797a9f2db8324c797d1368 (diff)
downloadart-69b15fb098162f19a4c20e6dccdcead04d9c77f0.tar.gz
art-69b15fb098162f19a4c20e6dccdcead04d9c77f0.tar.bz2
art-69b15fb098162f19a4c20e6dccdcead04d9c77f0.zip
Working dex2oat and oatexec
adb shell dex2oatd --dex-file=/system/framework/core.jar --image=/system/framework/boot.oat --base=0x50000000 "'--method=Ljava/lang/System;logI(Ljava/lang/String;)V'" "'--method=Ljava/lang/System;log(CLjava/lang/String;Ljava/lang/Throwable;)V'" adb shell dex2oatd --boot-dex-file=/system/framework/core.jar --boot=/system/framework/boot.oat --dex-file=/system/framework/art-test-dex-HelloWorld.jar --image=/system/framework/art-test-dex-HelloWorld.oat adb shell oatexecd -Xbootclasspath:/system/framework/core.jar -Xbootimage:/system/framework/boot.oat -classpath /system/framework/art-test-dex-HelloWorld.jar -Ximage:/system/framework/art-test-dex-HelloWorld.oat HelloWorld 09-05 17:58:18.912 2385 2385 I System : Hello, world! Change-Id: I53e534068584f0c3a837313e4d517a0e4a7154fc
Diffstat (limited to 'tools/art')
-rwxr-xr-xtools/art6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/art b/tools/art
index 67bbad0fe..2bafb0f54 100755
--- a/tools/art
+++ b/tools/art
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-aexec=aexec
+oatexec=oatexec
invoke_with=
while true; do
@@ -23,7 +23,7 @@ while true; do
invoke_with="$1"
shift
elif [ "$1" = "-d" ]; then
- aexec="aexecd"
+ oatexec="oatexecd"
shift
elif expr "$1" : "--" >/dev/null 2>&1; then
echo "unknown option: $1" 1>&2
@@ -37,7 +37,7 @@ mkdir -p /tmp/android-data/art-cache
ANDROID_DATA=/tmp/android-data \
ANDROID_ROOT=$ANDROID_BUILD_TOP/out/host/linux-x86 \
LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/out/host/linux-x86/lib \
-$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$aexec \
+$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$oatexec \
-Xbootclasspath\
:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-hostdex.jar\
:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-junit-hostdex.jar\