OSDN Git Service

Print the JIT codegen type in the VM configuration list.
authorBen Cheng <bccheng@google.com>
Thu, 23 Sep 2010 08:23:14 +0000 (01:23 -0700)
committerBen Cheng <bccheng@google.com>
Fri, 24 Sep 2010 03:12:48 +0000 (20:12 -0700)
Example:
Configured with: debugger profiler hprof jit(armv7-a-neon) show_exception=1

So that the CPU capability on JIT-enabled devices can be exposed.

(cherry-picked from dalvik-dev)

Change-Id: I887201e7023ca94cd9c3d690f03b7b042175e6ed

vm/Dvm.mk
vm/Init.c

index 85fc598..0867ffa 100644 (file)
--- a/vm/Dvm.mk
+++ b/vm/Dvm.mk
@@ -27,6 +27,7 @@
 LOCAL_CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2 -fno-align-jumps
 #LOCAL_CFLAGS += -DUSE_INDIRECT_REF
 LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter
+LOCAL_CFLAGS += -DARCH_VARIANT=\"$(dvm_arch_variant)\"
 
 #
 # Optional features.  These may impact the size or performance of the VM.
index 72f6218..24513f3 100644 (file)
--- a/vm/Init.c
+++ b/vm/Init.c
@@ -182,7 +182,7 @@ static void dvmUsage(const char* progName)
         " profile_field_access"
 #endif
 #if defined(WITH_JIT)
-        " jit"
+        " jit(" ARCH_VARIANT ")"
 #endif
 #if defined(WITH_SELF_VERIFICATION)
         " self_verification"