ART: Use JIT image for JIT run tests
Don't use interpreter image anymore. That was a stop-gap measure.
Change-Id: If4b43bc20026b1ed89e59690fe35771746e354e6
diff --git a/build/Android.oat.mk b/build/Android.oat.mk
index 3a3cb99..6e17ed3 100644
--- a/build/Android.oat.mk
+++ b/build/Android.oat.mk
@@ -74,6 +74,10 @@
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,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,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 @@
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,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,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 439e423..29e015f 100644
--- a/test/Android.run-test.mk
+++ b/test/Android.run-test.mk
@@ -752,12 +752,7 @@
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 73c92d4..828939d 100755
--- a/test/run-test
+++ b/test/run-test
@@ -252,7 +252,7 @@
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"