From 8a159fdc17d478b2a3e49705045e51ab19842a34 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 21 Sep 2015 15:14:38 -0700 Subject: [PATCH] ART: Use JIT image for JIT run tests Don't use interpreter image anymore. That was a stop-gap measure. Change-Id: If4b43bc20026b1ed89e59690fe35771746e354e6 --- build/Android.oat.mk | 12 ++++++++++++ test/Android.run-test.mk | 7 +------ test/run-test | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/build/Android.oat.mk b/build/Android.oat.mk index 3a3cb990c..6e17ed38d 100644 --- a/build/Android.oat.mk +++ b/build/Android.oat.mk @@ -74,6 +74,10 @@ define create-core-oat-host-rules core_compile_options += --compiler-filter=verify-at-runtime --runtime-arg -Xverify:softfail core_infix := -interp-ac endif + ifeq ($(1),jit) + core_compile_options += --compiler-filter=verify-at-runtime + core_infix := -jit + endif ifeq ($(1),default) # Default has no infix, no compile options. endif @@ -154,6 +158,7 @@ $(eval $(call create-core-oat-host-rule-combination,default,,)) $(eval $(call create-core-oat-host-rule-combination,optimizing,,)) $(eval $(call create-core-oat-host-rule-combination,interpreter,,)) $(eval $(call create-core-oat-host-rule-combination,interp-ac,,)) +$(eval $(call create-core-oat-host-rule-combination,jit,,)) valgrindHOST_CORE_IMG_OUTS := valgrindHOST_CORE_OAT_OUTS := @@ -161,6 +166,7 @@ $(eval $(call create-core-oat-host-rule-combination,default,valgrind,32)) $(eval $(call create-core-oat-host-rule-combination,optimizing,valgrind,32)) $(eval $(call create-core-oat-host-rule-combination,interpreter,valgrind,32)) $(eval $(call create-core-oat-host-rule-combination,interp-ac,valgrind,32)) +$(eval $(call create-core-oat-host-rule-combination,jit,valgrind,32)) valgrind-test-art-host-dex2oat-host: $(valgrindHOST_CORE_IMG_OUTS) @@ -194,6 +200,10 @@ define create-core-oat-target-rules core_compile_options += --compiler-filter=verify-at-runtime --runtime-arg -Xverify:softfail core_infix := -interp-ac endif + ifeq ($(1),jit) + core_compile_options += --compiler-filter=verify-at-runtime + core_infix := -jit + endif ifeq ($(1),default) # Default has no infix, no compile options. endif @@ -279,6 +289,7 @@ $(eval $(call create-core-oat-target-rule-combination,default,,)) $(eval $(call create-core-oat-target-rule-combination,optimizing,,)) $(eval $(call create-core-oat-target-rule-combination,interpreter,,)) $(eval $(call create-core-oat-target-rule-combination,interp-ac,,)) +$(eval $(call create-core-oat-target-rule-combination,jit,,)) valgrindTARGET_CORE_IMG_OUTS := valgrindTARGET_CORE_OAT_OUTS := @@ -286,6 +297,7 @@ $(eval $(call create-core-oat-target-rule-combination,default,valgrind,32)) $(eval $(call create-core-oat-target-rule-combination,optimizing,valgrind,32)) $(eval $(call create-core-oat-target-rule-combination,interpreter,valgrind,32)) $(eval $(call create-core-oat-target-rule-combination,interp-ac,valgrind,32)) +$(eval $(call create-core-oat-target-rule-combination,jit,valgrind,32)) valgrind-test-art-host-dex2oat-target: $(valgrindTARGET_CORE_IMG_OUTS) diff --git a/test/Android.run-test.mk b/test/Android.run-test.mk index 439e42331..29e015f53 100644 --- a/test/Android.run-test.mk +++ b/test/Android.run-test.mk @@ -752,12 +752,7 @@ define define-test-art-run-test endif endif endif - ifeq ($(4),jit) - # Use interpreter image for JIT. - image_suffix := interpreter - else - image_suffix := $(4) - endif + image_suffix := $(4) ifeq ($(9),no-image) test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_IMAGE_RULES run_test_options += --no-image diff --git a/test/run-test b/test/run-test index 73c92d432..828939d24 100755 --- a/test/run-test +++ b/test/run-test @@ -252,7 +252,7 @@ while true; do shift elif [ "x$1" = "x--jit" ]; then run_args="${run_args} --jit" - image_suffix="-interpreter" + image_suffix="-jit" shift elif [ "x$1" = "x--optimizing" ]; then run_args="${run_args} -Xcompiler-option --compiler-backend=Optimizing" -- 2.11.0