diff options
author | 2015-09-21 23:07:57 +0000 | |
---|---|---|
committer | 2015-09-21 23:07:57 +0000 | |
commit | beb5d85bec2f2e001fa89a79c0dfccbc9290986c (patch) | |
tree | b4bdbac4e4362b435fe4ec5af17af366a450d441 | |
parent | 87fc96b505d4872181b7582bc658b655d2b6f426 (diff) | |
parent | 8a159fdc17d478b2a3e49705045e51ab19842a34 (diff) |
Merge "ART: Use JIT image for JIT run tests"
-rw-r--r-- | build/Android.oat.mk | 12 | ||||
-rw-r--r-- | test/Android.run-test.mk | 7 | ||||
-rwxr-xr-x | test/run-test | 2 |
3 files changed, 14 insertions, 7 deletions
diff --git a/build/Android.oat.mk b/build/Android.oat.mk index 3a3cb990ca..6e17ed38d6 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 439e42331c..29e015f534 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 73c92d4322..828939d247 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" |