OSDN Git Service

android-x86/art.git
9 years agoam 00dec6a9: Merge "Make dexdump2 compile for 64bit devices."
Nicolas Geoffray [Tue, 7 Jul 2015 10:00:59 +0000 (10:00 +0000)]
am 00dec6a9: Merge "Make dexdump2 compile for 64bit devices."

* commit '00dec6a9506364806227f21f6a053176a6723fe9':
  Make dexdump2 compile for 64bit devices.

9 years agoam 399426d9: Merge "Added next condition check to branch instruction"
Roland Levillain [Tue, 7 Jul 2015 10:00:58 +0000 (10:00 +0000)]
am 399426d9: Merge "Added next condition check to branch instruction"

* commit '399426d95de2fd4f317527319a72f4abfa4cc0a0':
  Added next condition check to branch instruction

9 years agoam 4e869c81: Merge "Make oatdump work with .art files and code generated by Optimizing."
Roland Levillain [Tue, 7 Jul 2015 10:00:56 +0000 (10:00 +0000)]
am 4e869c81: Merge "Make oatdump work with .art files and code generated by Optimizing."

* commit '4e869c818c44f9e65c9807ff5df4cd5de155d260':
  Make oatdump work with .art files and code generated by Optimizing.

9 years agoMerge "Make dexdump2 compile for 64bit devices."
Nicolas Geoffray [Tue, 7 Jul 2015 09:13:48 +0000 (09:13 +0000)]
Merge "Make dexdump2 compile for 64bit devices."

9 years agoMake dexdump2 compile for 64bit devices.
Nicolas Geoffray [Tue, 7 Jul 2015 09:12:10 +0000 (10:12 +0100)]
Make dexdump2 compile for 64bit devices.

Change-Id: I4c990272b20062632d236671415cfb3dbb26c867

9 years agoMerge "Added next condition check to branch instruction"
Roland Levillain [Tue, 7 Jul 2015 09:09:06 +0000 (09:09 +0000)]
Merge "Added next condition check to branch instruction"

9 years agoMerge "Make oatdump work with .art files and code generated by Optimizing."
Roland Levillain [Tue, 7 Jul 2015 08:52:10 +0000 (08:52 +0000)]
Merge "Make oatdump work with .art files and code generated by Optimizing."

9 years agoam bb5965c8: Merge "Disable sanitization of dex2oat on device."
Evgenii Stepanov [Mon, 6 Jul 2015 23:38:43 +0000 (23:38 +0000)]
am bb5965c8: Merge "Disable sanitization of dex2oat on device."

* commit 'bb5965c8891c748a30120ff20e873bbfe2dbf5d5':
  Disable sanitization of dex2oat on device.

9 years agoMerge "Disable sanitization of dex2oat on device."
Evgenii Stepanov [Mon, 6 Jul 2015 23:20:48 +0000 (23:20 +0000)]
Merge "Disable sanitization of dex2oat on device."

9 years agoDisable sanitization of dex2oat on device.
Evgenii Stepanov [Mon, 6 Jul 2015 21:01:25 +0000 (14:01 -0700)]
Disable sanitization of dex2oat on device.

Bug: 22233158
Change-Id: I54990bb167a65275ed28e0cbbab56b936eb70ca4

9 years agoam 288b3001: Merge "List dependence of dexdump gtest on dexdump binary."
Aart Bik [Mon, 6 Jul 2015 22:44:38 +0000 (22:44 +0000)]
am 288b3001: Merge "List dependence of dexdump gtest on dexdump binary."

* commit '288b30015d136a81e5899439c398ca476e332006':
  List dependence of dexdump gtest on dexdump binary.

9 years agoMerge "List dependence of dexdump gtest on dexdump binary."
Aart Bik [Mon, 6 Jul 2015 22:24:11 +0000 (22:24 +0000)]
Merge "List dependence of dexdump gtest on dexdump binary."

9 years agoList dependence of dexdump gtest on dexdump binary.
Aart Bik [Mon, 6 Jul 2015 21:27:27 +0000 (14:27 -0700)]
List dependence of dexdump gtest on dexdump binary.

Change-Id: I1293009a370eff808b5e31cc89110eb9fe3ce32f

9 years agoam e7ea17b7: Merge "Migrated dexdump from Dalvik (libdex) into Art (libart)"
Aart Bik [Mon, 6 Jul 2015 20:40:43 +0000 (20:40 +0000)]
am e7ea17b7: Merge "Migrated dexdump from Dalvik (libdex) into Art (libart)"

* commit 'e7ea17b726ab415a0dc98c0a3901497bbcf3a4c3':
  Migrated dexdump from Dalvik (libdex) into Art (libart)

9 years agoMerge "Migrated dexdump from Dalvik (libdex) into Art (libart)"
Aart Bik [Mon, 6 Jul 2015 20:25:55 +0000 (20:25 +0000)]
Merge "Migrated dexdump from Dalvik (libdex) into Art (libart)"

9 years agoMigrated dexdump from Dalvik (libdex) into Art (libart)
Aart Bik [Wed, 1 Jul 2015 21:52:26 +0000 (14:52 -0700)]
Migrated dexdump from Dalvik (libdex) into Art (libart)

Rationale:
The new dexdump (temporarily called dexdump2 until we are
satisfied with the migration) is a re-implementation of the
original dexdump utility that was based on Dalvik functions
in libdex into a new dexdump that is now based on Art functions
in libart instead.

The output is identical to the original for *correct* DEX files.
Output in error messages and the usage() may differ, however,
since the new utility relies on Art parsing and verification.

NOTE 1:
ODEX files are no longer supported.

NOTE 2:
Where possible, I kept the file as close to the original
as possible, including some archaic C idioms on memory
allocation; those can be improved over time.

NOTE 3:
I used the standard Android.mk format for the new dexdump,
but this probably needs to be Art-i-fied.

NOTE 4:
Some minor issues that need resolution are marked with a TODO.

Bug: 17442393
Change-Id: I753743f64afcf4b84b8d33efbd1cfcb7908f0c3e

9 years agoam d4e2738f: Merge "Revert "Revert "Fix LSRA bug with explicit register temporaries"""
Nicolas Geoffray [Mon, 6 Jul 2015 15:35:05 +0000 (15:35 +0000)]
am d4e2738f: Merge "Revert "Revert "Fix LSRA bug with explicit register temporaries"""

* commit 'd4e2738fa7a062fee6beb88204c7420e64e5d9a6':
  Revert "Revert "Fix LSRA bug with explicit register temporaries""

9 years agoam 7fb6ddb8: Merge "ART: Check switch and array data better in the verifier"
Andreas Gampe [Mon, 6 Jul 2015 15:35:04 +0000 (15:35 +0000)]
am 7fb6ddb8: Merge "ART: Check switch and array data better in the verifier"

* commit '7fb6ddb874af342c5117559044f826ad1270e72b':
  ART: Check switch and array data better in the verifier

9 years agoam a3c31dfd: Merge "ART: Unlink old file in OS::CreateEmptyFile"
Andreas Gampe [Mon, 6 Jul 2015 15:35:03 +0000 (15:35 +0000)]
am a3c31dfd: Merge "ART: Unlink old file in OS::CreateEmptyFile"

* commit 'a3c31dfd721e54bd00fa7bfe218a69e5483a5a5d':
  ART: Unlink old file in OS::CreateEmptyFile

9 years agoam d5c5ea39: Merge "Revert "ART: Unlink target oat file before compiling""
Andreas Gampe [Mon, 6 Jul 2015 15:35:01 +0000 (15:35 +0000)]
am d5c5ea39: Merge "Revert "ART: Unlink target oat file before compiling""

* commit 'd5c5ea39775276e38df8b5981a8423777254e098':
  Revert "ART: Unlink target oat file before compiling"

9 years agoMerge "Revert "Revert "Fix LSRA bug with explicit register temporaries"""
Nicolas Geoffray [Mon, 6 Jul 2015 15:28:24 +0000 (15:28 +0000)]
Merge "Revert "Revert "Fix LSRA bug with explicit register temporaries"""

9 years agoMerge "ART: Check switch and array data better in the verifier"
Andreas Gampe [Mon, 6 Jul 2015 15:25:27 +0000 (15:25 +0000)]
Merge "ART: Check switch and array data better in the verifier"

9 years agoART: Check switch and array data better in the verifier
Andreas Gampe [Thu, 2 Jul 2015 05:05:59 +0000 (22:05 -0700)]
ART: Check switch and array data better in the verifier

Incorrect padding (or just malformed code) can lead to pseudo
instructions for data payload not being correctly discoverable in
a linear scan. This is problematic for the optimizing compiler,
which uses such a scan to build its graph.

Use the opcode flag in the insn_flags_ to ensure that a pseudo
instruction referenced from a base instruction was actually
correctly discovered. This does not ensure the letter of the dex
specification for now, which calls for nops for padding. However,
it is unclear what the difference between unreachable code and
padding is.

Bug: 22237618
Bug: https://code.google.com/p/android/issues/detail?id=178522
Change-Id: I823b3f541f326e6e77b15f3e13a7608a39d4b1fb

9 years agoMerge "ART: Unlink old file in OS::CreateEmptyFile"
Andreas Gampe [Mon, 6 Jul 2015 15:21:45 +0000 (15:21 +0000)]
Merge "ART: Unlink old file in OS::CreateEmptyFile"

9 years agoMerge "Revert "ART: Unlink target oat file before compiling""
Andreas Gampe [Mon, 6 Jul 2015 15:21:35 +0000 (15:21 +0000)]
Merge "Revert "ART: Unlink target oat file before compiling""

9 years agoam f7aa6c05: Merge "Revert "Fix LSRA bug with explicit register temporaries""
Calin Juravle [Mon, 6 Jul 2015 15:21:13 +0000 (15:21 +0000)]
am f7aa6c05: Merge "Revert "Fix LSRA bug with explicit register temporaries""

* commit 'f7aa6c05a1c7d70182d43abaf3ff43b6d463eec0':
  Revert "Fix LSRA bug with explicit register temporaries"

9 years agoRevert "Revert "Fix LSRA bug with explicit register temporaries""
Nicolas Geoffray [Mon, 6 Jul 2015 15:12:53 +0000 (15:12 +0000)]
Revert "Revert "Fix LSRA bug with explicit register temporaries""

This reverts commit a5fc140ff315dda9bc0a8e59963ed547676cd941.

Change-Id: Ic322484176e55d0c7cd7250d629b9e5046006a4f

9 years agoMerge "Revert "Fix LSRA bug with explicit register temporaries""
Calin Juravle [Mon, 6 Jul 2015 15:10:41 +0000 (15:10 +0000)]
Merge "Revert "Fix LSRA bug with explicit register temporaries""

9 years agoRevert "Fix LSRA bug with explicit register temporaries"
Calin Juravle [Mon, 6 Jul 2015 15:09:54 +0000 (15:09 +0000)]
Revert "Fix LSRA bug with explicit register temporaries"

register_allocator_test32 fails.

This reverts commit 283b8541546e7673d33d104241623d07c91cf500.

Change-Id: I2a46f3c68de3e8273e402102065c13797045c481

9 years agoam 16d6d0ef: Merge "Fix LSRA bug with explicit register temporaries"
Nicolas Geoffray [Mon, 6 Jul 2015 14:06:37 +0000 (14:06 +0000)]
am 16d6d0ef: Merge "Fix LSRA bug with explicit register temporaries"

* commit '16d6d0effdcdba70e97518be591f409dc8460a03':
  Fix LSRA bug with explicit register temporaries

9 years agoMerge "Fix LSRA bug with explicit register temporaries"
Nicolas Geoffray [Mon, 6 Jul 2015 13:51:54 +0000 (13:51 +0000)]
Merge "Fix LSRA bug with explicit register temporaries"

9 years agoFix LSRA bug with explicit register temporaries
Mark Mendell [Fri, 3 Jul 2015 12:26:41 +0000 (08:26 -0400)]
Fix LSRA bug with explicit register temporaries

A temporary with an explicit RegisterLocation, such as ESI on x86 didn't
have the register marked as allocated.  This caused it to not be
saved/restored in the prologue/epilogue, causing problems in the caller
routine, which expected it to be saved.  Found while implementing
https://android-review.googlesource.com/#/c/157522/.

Change-Id: I22ca2b24c2d21b1c6ab6cfb7dec26cb38034a891
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
9 years agoam 51f38e3a: Merge "ART: Fix graph for switch leaving a try block"
David Brazdil [Mon, 6 Jul 2015 09:42:26 +0000 (09:42 +0000)]
am 51f38e3a: Merge "ART: Fix graph for switch leaving a try block"

* commit '51f38e3adf58ba4e35b5374fb8c4b87cb3112abd':
  ART: Fix graph for switch leaving a try block

9 years agoam b2409d91: Merge "Supress OsTest#test_xattr on the bots."
Narayan Kamath [Mon, 6 Jul 2015 09:42:23 +0000 (09:42 +0000)]
am b2409d91: Merge "Supress OsTest#test_xattr on the bots."

* commit 'b2409d91a2bb8d190712c009940659cea080cd65':
  Supress OsTest#test_xattr on the bots.

9 years agoMerge "ART: Fix graph for switch leaving a try block"
David Brazdil [Mon, 6 Jul 2015 09:29:27 +0000 (09:29 +0000)]
Merge "ART: Fix graph for switch leaving a try block"

9 years agoART: Fix graph for switch leaving a try block
David Brazdil [Fri, 3 Jul 2015 09:34:57 +0000 (10:34 +0100)]
ART: Fix graph for switch leaving a try block

Blocks that GraphBuilder creates for switch-case logic are given
a dex_pc of the branch targets they serve, while in fact they should
be considered part of the switch instruction itself and get its pc.
This caused the try/catch algorithm to either miss try boundaries or
create bogus edges.

This patch fixed the dex_pc of the switch-case blocks and modifies
the try/catch logic to iterate over all blocks as opposed to just
branch targets since multiple blocks can now cover the same dex_pc.

Change-Id: I30fe4f8db0647b869979197a3bc847cf212a7315

9 years agoMerge "Supress OsTest#test_xattr on the bots."
Narayan Kamath [Mon, 6 Jul 2015 08:49:50 +0000 (08:49 +0000)]
Merge "Supress OsTest#test_xattr on the bots."

9 years agoSupress OsTest#test_xattr on the bots.
Narayan Kamath [Fri, 3 Jul 2015 12:20:51 +0000 (13:20 +0100)]
Supress OsTest#test_xattr on the bots.

bug: 22258911
Change-Id: Iba57eb8660e0f46e2b152ca05f49f64a233e0f44

9 years agoam 4a305daf: Merge "Add implicit null pointer and stack overflow checks for Mips."
Roland Levillain [Fri, 3 Jul 2015 16:27:30 +0000 (16:27 +0000)]
am 4a305daf: Merge "Add implicit null pointer and stack overflow checks for Mips."

* commit '4a305daf77a9b80d6abb7817a836aa59d2db521d':
  Add implicit null pointer and stack overflow checks for Mips.

9 years agoMerge "Add implicit null pointer and stack overflow checks for Mips."
Roland Levillain [Fri, 3 Jul 2015 16:18:00 +0000 (16:18 +0000)]
Merge "Add implicit null pointer and stack overflow checks for Mips."

9 years agoAdd implicit null pointer and stack overflow checks for Mips.
Douglas Leung [Thu, 2 Jul 2015 23:42:08 +0000 (16:42 -0700)]
Add implicit null pointer and stack overflow checks for Mips.

Bug: 21555893
Change-Id: I2a995be128a5603d08753c14956dd8c8240ac63c

9 years agoam b447598f: Merge "Disable static builds for mac and asan."
Calin Juravle [Thu, 2 Jul 2015 17:33:01 +0000 (17:33 +0000)]
am b447598f: Merge "Disable static builds for mac and asan."

* commit 'b447598f6900f05f0b1940a0731ee374c57c3100':
  Disable static builds for mac and asan.

9 years agoMerge "Disable static builds for mac and asan."
Calin Juravle [Thu, 2 Jul 2015 17:23:56 +0000 (17:23 +0000)]
Merge "Disable static builds for mac and asan."

9 years agoDisable static builds for mac and asan.
Calin Juravle [Thu, 2 Jul 2015 17:21:14 +0000 (18:21 +0100)]
Disable static builds for mac and asan.

- asan doesn't support static linkage
- we don't need a static build of dex2oat for mac

Change-Id: I7eddd19f1f47e8b2a67ecc0aaf40cb70941febdd

9 years agoam aefdcd9a: Merge "Do not create a HBoundType when the instruction is non-null."
Nicolas Geoffray [Thu, 2 Jul 2015 17:08:41 +0000 (17:08 +0000)]
am aefdcd9a: Merge "Do not create a HBoundType when the instruction is non-null."

* commit 'aefdcd9a06bc436a0f0908230856d1054018cd93':
  Do not create a HBoundType when the instruction is non-null.

9 years agoMerge "Do not create a HBoundType when the instruction is non-null."
Nicolas Geoffray [Thu, 2 Jul 2015 17:01:02 +0000 (17:01 +0000)]
Merge "Do not create a HBoundType when the instruction is non-null."

9 years agoDo not create a HBoundType when the instruction is non-null.
Nicolas Geoffray [Thu, 2 Jul 2015 14:48:27 +0000 (15:48 +0100)]
Do not create a HBoundType when the instruction is non-null.

We don't need to refine the type after a null check, if the
instruction is known non null or null. As a side effect, this
avoids replacing HLoadClass instructions with HBoundType instructions.

bug:22116987

(cherry picked from commit 3abd437507f8ba30a238a52c273c9944dcb9d5a1)

Change-Id: I5e56de293554534195ade9770b7d1e4b078d685b

9 years agoam 06b6da5c: Merge "Fix mac build: use -lrt only on linux."
Calin Juravle [Thu, 2 Jul 2015 13:04:13 +0000 (13:04 +0000)]
am 06b6da5c: Merge "Fix mac build: use -lrt only on linux."

* commit '06b6da5ccbf9246c697b8cf1be0ba58ce616521d':
  Fix mac build: use -lrt only on linux.

9 years agoMerge "Fix mac build: use -lrt only on linux."
Calin Juravle [Thu, 2 Jul 2015 12:52:48 +0000 (12:52 +0000)]
Merge "Fix mac build: use -lrt only on linux."

9 years agoFix mac build: use -lrt only on linux.
Calin Juravle [Thu, 2 Jul 2015 12:48:37 +0000 (13:48 +0100)]
Fix mac build: use -lrt only on linux.

Change-Id: I25e6058d9003fa52ef3c8bd153c2108712ce7f96

9 years agoam a3529ea5: Merge "Enable ART_BUILD_HOST_STATIC for check builds."
Calin Juravle [Thu, 2 Jul 2015 11:09:04 +0000 (11:09 +0000)]
am a3529ea5: Merge "Enable ART_BUILD_HOST_STATIC for check builds."

* commit 'a3529ea5ec5c494647d72e219263d4ca374ca2ff':
  Enable ART_BUILD_HOST_STATIC for check builds.

9 years agoMerge "Enable ART_BUILD_HOST_STATIC for check builds."
Calin Juravle [Thu, 2 Jul 2015 11:02:38 +0000 (11:02 +0000)]
Merge "Enable ART_BUILD_HOST_STATIC for check builds."

9 years agoEnable ART_BUILD_HOST_STATIC for check builds.
Calin Juravle [Thu, 2 Jul 2015 10:51:22 +0000 (11:51 +0100)]
Enable ART_BUILD_HOST_STATIC for check builds.

Change-Id: Id888c3b0c544ea6a85799f2264b13f1d035fc754

9 years agoam 23bfc0bd: Merge "Build statically linked version of dex2oat."
Calin Juravle [Thu, 2 Jul 2015 10:39:25 +0000 (10:39 +0000)]
am 23bfc0bd: Merge "Build statically linked version of dex2oat."

* commit '23bfc0bd4b9af12c6b3a574719917f92e4b8c261':
  Build statically linked version of dex2oat.

9 years agoam 7a20ae64: Merge "Allow for sig chain to be disabled."
Calin Juravle [Thu, 2 Jul 2015 10:39:24 +0000 (10:39 +0000)]
am 7a20ae64: Merge "Allow for sig chain to be disabled."

* commit '7a20ae64a6d994eec8cb04602325aed91713cb72':
  Allow for sig chain to be disabled.

9 years agoMerge "Build statically linked version of dex2oat."
Calin Juravle [Thu, 2 Jul 2015 10:30:06 +0000 (10:30 +0000)]
Merge "Build statically linked version of dex2oat."

9 years agoMerge "Allow for sig chain to be disabled."
Calin Juravle [Thu, 2 Jul 2015 10:29:48 +0000 (10:29 +0000)]
Merge "Allow for sig chain to be disabled."

9 years agoMake oatdump work with .art files and code generated by Optimizing.
Roland Levillain [Thu, 2 Jul 2015 09:59:15 +0000 (10:59 +0100)]
Make oatdump work with .art files and code generated by Optimizing.

When inspecting an .art file with oatdump (using `--image'),
do not try to compute size stats about the vmap table if the
method has been compiled with Optimizing.

Change-Id: I1204b53c91ac8bf98665ed357d8509a4a01a52f9

9 years agoam c87c8939: Merge "Implement heap poisoning in ART\'s Optimizing compiler."
Roland Levillain [Thu, 2 Jul 2015 09:37:21 +0000 (09:37 +0000)]
am c87c8939: Merge "Implement heap poisoning in ART\'s Optimizing compiler."

* commit 'c87c8939ea1bcfbddb954478d527cf1138f4f343':
  Implement heap poisoning in ART's Optimizing compiler.

9 years agoMerge "Implement heap poisoning in ART's Optimizing compiler."
Roland Levillain [Thu, 2 Jul 2015 08:44:21 +0000 (08:44 +0000)]
Merge "Implement heap poisoning in ART's Optimizing compiler."

9 years agoam 01b2129d: Merge "Added index type of dex byte instructions."
Andreas Gampe [Thu, 2 Jul 2015 00:27:40 +0000 (00:27 +0000)]
am 01b2129d: Merge "Added index type of dex byte instructions."

* commit '01b2129de3e182b79aa820e71fc7fa1ef42f2d35':
  Added index type of dex byte instructions.

9 years agoMerge "Added index type of dex byte instructions."
Andreas Gampe [Wed, 1 Jul 2015 20:27:06 +0000 (20:27 +0000)]
Merge "Added index type of dex byte instructions."

9 years agoImplement heap poisoning in ART's Optimizing compiler.
Roland Levillain [Wed, 1 Jul 2015 14:41:14 +0000 (15:41 +0100)]
Implement heap poisoning in ART's Optimizing compiler.

- Instrument ARM, ARM64, x86 and x86-64 code generators.
- Note: To turn heap poisoning on in Optimizing, set the
  environment variable `ART_HEAP_POISONING' to "true"
  before compiling ART.

Bug: 12687968
Change-Id: Ib3120b38cf805a8a50207a314b9ccc90c8d93740

9 years agoam ea725ec1: Merge "Don\'t print signatures to avoid spaces."
Nicolas Geoffray [Wed, 1 Jul 2015 15:27:18 +0000 (15:27 +0000)]
am ea725ec1: Merge "Don\'t print signatures to avoid spaces."

* commit 'ea725ec1b5b9a594842dde02b247f4707ee0c93a':
  Don't print signatures to avoid spaces.

9 years agoam 8941d5e0: Merge "Address additional comments on try-catch CL"
David Brazdil [Wed, 1 Jul 2015 15:27:17 +0000 (15:27 +0000)]
am 8941d5e0: Merge "Address additional comments on try-catch CL"

* commit '8941d5e0755e8cd3f1e35e3efcbe8eeaf3b616fa':
  Address additional comments on try-catch CL

9 years agoMerge "Don't print signatures to avoid spaces."
Nicolas Geoffray [Wed, 1 Jul 2015 15:20:35 +0000 (15:20 +0000)]
Merge "Don't print signatures to avoid spaces."

9 years agoMerge "Address additional comments on try-catch CL"
David Brazdil [Wed, 1 Jul 2015 15:16:14 +0000 (15:16 +0000)]
Merge "Address additional comments on try-catch CL"

9 years agoDon't print signatures to avoid spaces.
Nicolas Geoffray [Wed, 1 Jul 2015 15:10:44 +0000 (16:10 +0100)]
Don't print signatures to avoid spaces.

Change-Id: I64340fbd08282acb0eb4142d17d37e69bba507cf

9 years agoAddress additional comments on try-catch CL
David Brazdil [Wed, 1 Jul 2015 14:28:26 +0000 (15:28 +0100)]
Address additional comments on try-catch CL

Extra documentation of try-catch building.

Change-Id: I5048c5fcb354c76fa4a60c3d8d21dd216bc9f6cd

9 years agoam 8922e0b5: Merge "ART: Changes to try-catch in GraphBuilder"
David Brazdil [Wed, 1 Jul 2015 14:02:52 +0000 (14:02 +0000)]
am 8922e0b5: Merge "ART: Changes to try-catch in GraphBuilder"

* commit '8922e0b575742aaabbb4168b8703f7c1a4cb346c':
  ART: Changes to try-catch in GraphBuilder

9 years agoMerge "ART: Changes to try-catch in GraphBuilder"
David Brazdil [Wed, 1 Jul 2015 13:54:32 +0000 (13:54 +0000)]
Merge "ART: Changes to try-catch in GraphBuilder"

9 years agoART: Changes to try-catch in GraphBuilder
David Brazdil [Tue, 30 Jun 2015 14:41:36 +0000 (15:41 +0100)]
ART: Changes to try-catch in GraphBuilder

This patch adds an additional case into the insertion algorithm for
HTryBoundary inside HGraphBuilder in order to better handle catch
blocks covered by a TryItem.

Building SSA form also required to stop combining HTryBoundaries for
neighbouring TryItems because it was not clear which exception
handlers belong to which try block.

Change-Id: Ic68bd6ef98fee784609fa593cb08dca1f00a15e0

9 years agoam 312f1bfc: Merge "Do not do a type check when setting null to an array."
Nicolas Geoffray [Wed, 1 Jul 2015 13:14:40 +0000 (13:14 +0000)]
am 312f1bfc: Merge "Do not do a type check when setting null to an array."

* commit '312f1bfcfd8f655e635c941dda147377d8bff814':
  Do not do a type check when setting null to an array.

9 years agoam 39dc3759: Merge "Emit method name at invokes in the graph visualizer."
Nicolas Geoffray [Wed, 1 Jul 2015 13:01:51 +0000 (13:01 +0000)]
am 39dc3759: Merge "Emit method name at invokes in the graph visualizer."

* commit '39dc3759fa9a32da145e8823430d16a6a5acaba6':
  Emit method name at invokes in the graph visualizer.

9 years agoMerge "Do not do a type check when setting null to an array."
Nicolas Geoffray [Wed, 1 Jul 2015 13:00:46 +0000 (13:00 +0000)]
Merge "Do not do a type check when setting null to an array."

9 years agoDo not do a type check when setting null to an array.
Nicolas Geoffray [Wed, 1 Jul 2015 11:56:46 +0000 (12:56 +0100)]
Do not do a type check when setting null to an array.

Change-Id: I7387d45aea697d4a3de273335647220a815a992b

9 years agoMerge "Emit method name at invokes in the graph visualizer."
Nicolas Geoffray [Wed, 1 Jul 2015 12:50:28 +0000 (12:50 +0000)]
Merge "Emit method name at invokes in the graph visualizer."

9 years agoBuild statically linked version of dex2oat.
Calin Juravle [Mon, 8 Jun 2015 09:35:24 +0000 (10:35 +0100)]
Build statically linked version of dex2oat.

Change-Id: Icde39b770781095af7bd87ae6b907ad97a8a05da

9 years agoam 8406b313: Merge "Properly delete temp files during run-test"
Sebastien Hertz [Wed, 1 Jul 2015 12:21:46 +0000 (12:21 +0000)]
am 8406b313: Merge "Properly delete temp files during run-test"

* commit '8406b3131e186ce75644f589b3b53eca375cd611':
  Properly delete temp files during run-test

9 years agoMerge "Properly delete temp files during run-test"
Sebastien Hertz [Wed, 1 Jul 2015 12:14:44 +0000 (12:14 +0000)]
Merge "Properly delete temp files during run-test"

9 years agoam 436cbc5e: Merge "Fix a MOV instruction in Optimizing\'s x86-64 code generator."
Roland Levillain [Wed, 1 Jul 2015 12:11:02 +0000 (12:11 +0000)]
am 436cbc5e: Merge "Fix a MOV instruction in Optimizing\'s x86-64 code generator."

* commit '436cbc5e4c360962275713f3d2649ff7be88aaa4':
  Fix a MOV instruction in Optimizing's x86-64 code generator.

9 years agoEmit method name at invokes in the graph visualizer.
Nicolas Geoffray [Wed, 1 Jul 2015 12:00:15 +0000 (13:00 +0100)]
Emit method name at invokes in the graph visualizer.

Change-Id: I832f823463569724fca9c38cd70d9dd552f15b3a

9 years agoMerge "Fix a MOV instruction in Optimizing's x86-64 code generator."
Roland Levillain [Wed, 1 Jul 2015 11:58:21 +0000 (11:58 +0000)]
Merge "Fix a MOV instruction in Optimizing's x86-64 code generator."

9 years agoam c7657e93: Merge "Use CompareAndBranchIf(Non)Zero when applicable."
Nicolas Geoffray [Wed, 1 Jul 2015 11:56:44 +0000 (11:56 +0000)]
am c7657e93: Merge "Use CompareAndBranchIf(Non)Zero when applicable."

* commit 'c7657e93b6b045eaff18190b8133361652bf8c1c':
  Use CompareAndBranchIf(Non)Zero when applicable.

9 years agoFix a MOV instruction in Optimizing's x86-64 code generator.
Roland Levillain [Wed, 1 Jul 2015 11:47:25 +0000 (12:47 +0100)]
Fix a MOV instruction in Optimizing's x86-64 code generator.

Use `movl' instead of `movw' to store a 32-bit immediate
(integer or reference) into a field.

Also fix art::Location::RegisterOrInt32LongConstant to
properly handle non-long constants.

Change-Id: I34c6ec8eaa1632822a31969f87c9c2d6c5b96326

9 years agoMerge "Use CompareAndBranchIf(Non)Zero when applicable."
Nicolas Geoffray [Wed, 1 Jul 2015 11:46:48 +0000 (11:46 +0000)]
Merge "Use CompareAndBranchIf(Non)Zero when applicable."

9 years agoUse CompareAndBranchIf(Non)Zero when applicable.
Nicolas Geoffray [Wed, 1 Jul 2015 11:22:56 +0000 (12:22 +0100)]
Use CompareAndBranchIf(Non)Zero when applicable.

Now that we relocate branches, we can try make more use of cbz/cbnz.

Change-Id: I93ca64107f34eb3c43f2e7102ea90453113dad7a

9 years agoAllow for sig chain to be disabled.
Calin Juravle [Fri, 19 Jun 2015 21:05:39 +0000 (22:05 +0100)]
Allow for sig chain to be disabled.

Tools like dex2oat or patchoat don't need the sig chain or the fault
manager. This also enables building a statically link version of
dex2oat.

Change-Id: I9897728cac48acade854bb027bfde860628ebf84

9 years agoam 2b252dc1: Merge "Quick: Fix a DCHECK to take type conflicts into account."
Andreas Gampe [Wed, 1 Jul 2015 05:30:34 +0000 (05:30 +0000)]
am 2b252dc1: Merge "Quick: Fix a DCHECK to take type conflicts into account."

* commit '2b252dc15995a708aead33aab6d307205d860a88':
  Quick: Fix a DCHECK to take type conflicts into account.

9 years agoam 39602104: Merge "ART: Symbolize all oat files in /data folder."
Andreas Gampe [Wed, 1 Jul 2015 05:18:32 +0000 (05:18 +0000)]
am 39602104: Merge "ART: Symbolize all oat files in /data folder."

* commit '396021047892e5976051e9cb86ee38943a9102d3':
  ART: Symbolize all oat files in /data folder.

9 years agoMerge "Quick: Fix a DCHECK to take type conflicts into account."
Andreas Gampe [Wed, 1 Jul 2015 05:17:24 +0000 (05:17 +0000)]
Merge "Quick: Fix a DCHECK to take type conflicts into account."

9 years agoMerge "ART: Symbolize all oat files in /data folder."
Andreas Gampe [Wed, 1 Jul 2015 05:06:20 +0000 (05:06 +0000)]
Merge "ART: Symbolize all oat files in /data folder."

9 years agoART: Symbolize all oat files in /data folder.
Zheng Xu [Tue, 21 Apr 2015 09:35:25 +0000 (17:35 +0800)]
ART: Symbolize all oat files in /data folder.

Now we store oat files not only in /data/dalvik-cache, but also in
other places. This patch tries to pull all oat files from device
/data folder.

Change-Id: Icf81cf28c29da2e248e4fbd84f5920f46ddc4cd6

9 years agoAdded next condition check to branch instruction
agicsaki [Wed, 1 Jul 2015 00:10:03 +0000 (17:10 -0700)]
Added next condition check to branch instruction

Since branch 'b' instructions currently do not support being part of
an it block, I added a dcheck to the branch instruction in the Thumb2
assembler to ensure that the instruction is not part of an it block.

Change-Id: Ie09f687906add471274a4029cb59a7d90b5feba4

9 years agoam 371496da: Merge "Explicitly link libz-host to libart."
Evgenii Stepanov [Tue, 30 Jun 2015 22:30:05 +0000 (22:30 +0000)]
am 371496da: Merge "Explicitly link libz-host to libart."

* commit '371496daf03921c0c3ade8bc20b33b6454d8d495':
  Explicitly link libz-host to libart.

9 years agoMerge "Explicitly link libz-host to libart."
Evgenii Stepanov [Tue, 30 Jun 2015 22:19:13 +0000 (22:19 +0000)]
Merge "Explicitly link libz-host to libart."

9 years agoam 053df00e: Merge "ART: Remove bad FindSymbol call"
Andreas Gampe [Tue, 30 Jun 2015 21:30:00 +0000 (21:30 +0000)]
am 053df00e: Merge "ART: Remove bad FindSymbol call"

* commit '053df00e1d27e658f016f4ff6d5a822861555e6a':
  ART: Remove bad FindSymbol call

9 years agoMerge "ART: Remove bad FindSymbol call"
Andreas Gampe [Tue, 30 Jun 2015 21:10:50 +0000 (21:10 +0000)]
Merge "ART: Remove bad FindSymbol call"

9 years agoART: Remove bad FindSymbol call
Andreas Gampe [Tue, 30 Jun 2015 18:23:44 +0000 (11:23 -0700)]
ART: Remove bad FindSymbol call

The removed call is superfluous under normal operation and harmful
when running a native-bridged library.

Bug: 22194296
Bug: https://code.google.com/p/android-developer-preview/issues/detail?id=2367
Change-Id: I3eb8f435a6a974a3e87a370b254ba8752f2a59b3

9 years agoART: Unlink old file in OS::CreateEmptyFile
Andreas Gampe [Tue, 30 Jun 2015 17:52:46 +0000 (10:52 -0700)]
ART: Unlink old file in OS::CreateEmptyFile

Update the documentation to make clear that a new file is expected
to be returned. A potentially existing file will not be reused
(and cleared).

Bug: 22047255
Change-Id: I0eb8601c7696d6f7b81547abcc06ff605826dc26