Fix assembler test to use path if it can't find tools.

This fixes build breakage.

Change-Id: I8074d47f1c1470cf886d517e9e68a6a6b4330485
Merge "Fix assembler test to use path if it can't find tools."
Remove unused variable in assembler test.

This is flagged as an error when building master, but not others...

Change-Id: Iaea5307b06d8e4fa1a9d1035905fc204eb98559a
Merge "Remove unused variable in assembler test."
Disable thumb assembler test to fix art build

Having difficulty getting this to run on the build server.
Disable until I can figure out how to do it.

Change-Id: I4f356fd1168b213b770426adc34bf62b8fb56b8f
Merge "Disable thumb assembler test to fix art build"
Add an optimization for removing redundant suspend tests in ART

This CL:
(1) eliminates redundant suspend checks (dominated by another check),

(2) removes the special treatment of the R4 register, which got
reset on every native call, possibly yielding long execution
sequences without any suspend checks, and

(3) fixes the absence of suspend checks in leaf methods.

(2) and (3) increase the frequency of suspend checks, which improves
the performance of GC and the accuracy of profile data.  To
compensate for the increased number of checks, we implemented an
optimization that leverages dominance information to remove
redundant suspend checks on back edges.  Based on the results of
running the Caffeine benchmark on Nexus 7, the patch performs
roughly 30% more useful suspend checks, spreading them much more
evenly along the execution trace, while incurring less than 1%
overhead.  For flexibility consideration, this CL defines two flags
to control the enabling of optimizations.  The original
implementation is the default.

Change-Id: I31e81a5b3c53030444dbe0434157274c9ab8640f
Signed-off-by: Wei Jin <wejin@google.com>
Merge "Add an optimization for removing redundant suspend tests in ART"
Merge "Fix crash in JDWP ReferenceType.SourceFile command"
Use ScopedArenaVector instead of std::vector in SSA transformation.

Change-Id: Ibf8471274f2d5e11fcc185044745434c3c82ed74
Clean up the sampling profiler

- rename variables/fields names to match the code style (use
_underscore_names_)
- extract common property parsing in utils.cc
- fail to load profile file if any line is malformed
- added ProfileFile to manage the profile data generate in the previous
runs (replaces ProfileHelper and nests ProfileData)

Bug: 12877748
Change-Id: Ie7bda30bfdeb7e78534c986615b0649eac12a97b
Merge "Clean up the sampling profiler"
Fixed and refactored profiler options handling

- extracted profiler options in a separate class
- switched from system property reading to command line arguments
- added profile based compilation options to CompilerOptions
- removed no longer used kProfile compilation filter
- optimize dex files only if the profiler is enabled
- clean up unused arguments

Bug: 12877748
Bug: 15275634
Change-Id: I37ff68e7694370950ce8db2360562e9058ecebb7
Merge "Fixed and refactored profiler options handling"
Merge "Use ScopedArenaVector instead of std::vector in SSA transformation."
Fix top K percentage computation when loading profile data.

Don't count boot and null methods when computing top K percentage for
sampled methods.

Bug: 15462067
Bug: 12877748
Change-Id: I11c2ea541066a15bc8a5ad323e21ccbfdf81c2c5
Merge "Fix top K percentage computation when loading profile data."
Change FieldHelper to use a handle.

Fixed compaction bugs related to FieldHelper::GetType in:
artSet32InstanceFromCode
SetFieldValueImpl
CheckReceiver
Field_set
interpreter::DoFieldPut
MethodVerifier::VerifyISGet
MethodVerifier::VerifyISPut
MethodVerifier::VerifyIGetQuick

Bug: 13077697

Change-Id: I7de9ded2893b5568d43e4daa86fd135bf5508b72
x86_64: Fix stubs after 4-byte method handler

It is 4 byte now and should be handled accordingly.

Change-Id: Ie373235f961eabfd33266bd89fbf8169a3714a03
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
Merge "x86_64: Fix stubs after 4-byte method handler"