Slow ART.

Run ART with the interpreter for all but boot.oat code.

Change-Id: I1654ecff6769a6c754f713be7580717d5ce07dc1
diff --git a/build/Android.common.mk b/build/Android.common.mk
index 43755b4..55dd7ef 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -14,6 +14,12 @@
 # limitations under the License.
 #
 
+ART_SLOW_MODE := false
+ifneq ($(wildcard art/SLOW_ART),)
+$(info Enabling ART_SLOW_MODE because of existence of art/SLOW_ART)
+ART_SLOW_MODE := true
+endif
+
 ART_USE_PORTABLE_COMPILER := false
 ifneq ($(wildcard art/USE_PORTABLE_COMPILER),)
 $(info Enabling ART_USE_PORTABLE_COMPILER because of existence of art/USE_PORTABLE_COMPILER)
@@ -54,6 +60,10 @@
 	-Wthread-safety \
 	-fstrict-aliasing
 
+ifeq ($(ART_SLOW_MODE),true)
+  art_cflags += -DART_SLOW_MODE=1
+endif
+
 # TODO: enable -std=gnu++0x for auto support when on Ubuntu 12.04 LTS (Precise Pangolin)
 # On 10.04 LTS (Lucid Lynx), it can cause dependencies on GLIBCXX_3.4.14 version symbols.