OSDN Git Service

[JIT] Fix volatile test
authorbuzbee <buzbee@google.com>
Thu, 7 Apr 2011 22:22:06 +0000 (15:22 -0700)
committerbuzbee <buzbee@google.com>
Fri, 8 Apr 2011 21:32:00 +0000 (14:32 -0700)
commit11fb99d598ebe640719743a0d3bd7ed091e5be03
tree346a8b20c664cd0e58eb9ec26c72702a4e3a184e
parent9688de1ebc68f4f865a827709298390a72dff698
[JIT] Fix volatile test

On SMP systems, Dalvik opcodes referencing volatile fields will be
rewritten to their _VOLATILE variant.  On non-SMP systems, though,
this rewriting is not done.  The JIT, however, needs to know about
volatility for all systems in order to avoid performing unsafe
optimizations.  This change fixes the JIT's volatility test to be
either _VOLATILE opcode or the volatile flag in the field access bits
depending on SMP type.

Change-Id: If485875c5abbf0147c3ef4b6d557faa89ed85426
vm/compiler/codegen/arm/CodegenDriver.c