OSDN Git Service

android-x86/art.git
9 years agoam db05e310: ART: Fix opsize in LoadArgDirect
Andreas Gampe [Tue, 7 Jul 2015 21:01:24 +0000 (21:01 +0000)]
am db05e310: ART: Fix opsize in LoadArgDirect

* commit 'db05e31018ef4d1b46a43924b370f061c5457626':
  ART: Fix opsize in LoadArgDirect

9 years agoam 9431cf57: am a100332e: Merge "Build rule for dexdump regression test on host."
Aart Bik [Tue, 7 Jul 2015 18:21:10 +0000 (18:21 +0000)]
am 9431cf57: am a100332e: Merge "Build rule for dexdump regression test on host."

* commit '9431cf571f2c8ff45f874678a286f165fc5848c6':
  Build rule for dexdump regression test on host.

9 years agoam a100332e: Merge "Build rule for dexdump regression test on host."
Aart Bik [Tue, 7 Jul 2015 18:07:37 +0000 (18:07 +0000)]
am a100332e: Merge "Build rule for dexdump regression test on host."

* commit 'a100332ee0f4b842c28ec2448f97e40a882cd837':
  Build rule for dexdump regression test on host.

9 years agoMerge "Build rule for dexdump regression test on host."
Aart Bik [Tue, 7 Jul 2015 17:52:34 +0000 (17:52 +0000)]
Merge "Build rule for dexdump regression test on host."

9 years agoam bb83481b: am 53ed3c5f: Merge "ART: Fix opsize in LoadArgDirect"
Andreas Gampe [Tue, 7 Jul 2015 17:19:01 +0000 (17:19 +0000)]
am bb83481b: am 53ed3c5f: Merge "ART: Fix opsize in LoadArgDirect"

* commit 'bb83481bdd6a7bddc35ecf57094652410dffbf5e':
  ART: Fix opsize in LoadArgDirect

9 years agoam 53ed3c5f: Merge "ART: Fix opsize in LoadArgDirect"
Andreas Gampe [Tue, 7 Jul 2015 17:02:48 +0000 (17:02 +0000)]
am 53ed3c5f: Merge "ART: Fix opsize in LoadArgDirect"

* commit '53ed3c5f71c983f01cd10a805255c1301438ab8c':
  ART: Fix opsize in LoadArgDirect

9 years agoART: Fix opsize in LoadArgDirect
Andreas Gampe [Mon, 6 Jul 2015 21:00:39 +0000 (14:00 -0700)]
ART: Fix opsize in LoadArgDirect

If the destination register is a reference, use kReference for the
op size.

Bug: 22244733

(cherry picked from commit 185a5586c8b796e770e9b4b7ac2befa8ccdaca7e)

Change-Id: Idf52f2ee4c65b5dc41cb66257d95281dc6f32255

9 years agoMerge "ART: Fix opsize in LoadArgDirect"
Andreas Gampe [Tue, 7 Jul 2015 16:46:06 +0000 (16:46 +0000)]
Merge "ART: Fix opsize in LoadArgDirect"

9 years agoART: Fix opsize in LoadArgDirect
Andreas Gampe [Mon, 6 Jul 2015 21:00:39 +0000 (14:00 -0700)]
ART: Fix opsize in LoadArgDirect

If the destination register is a reference, use kReference for the
op size.

Bug: 22244733
Change-Id: Idf52f2ee4c65b5dc41cb66257d95281dc6f32255

9 years agoam c50df772: am ee35ff80: Merge "Improve code generation for ARM64 VisitArrayGet...
Nicolas Geoffray [Tue, 7 Jul 2015 15:49:22 +0000 (15:49 +0000)]
am c50df772: am ee35ff80: Merge "Improve code generation for ARM64 VisitArrayGet/Set."

* commit 'c50df772b395960514efafe3ad4f83a65efa7bba':
  Improve code generation for ARM64 VisitArrayGet/Set.

9 years agoam 29cd8a89: am 00dec6a9: Merge "Make dexdump2 compile for 64bit devices."
Nicolas Geoffray [Tue, 7 Jul 2015 15:49:21 +0000 (15:49 +0000)]
am 29cd8a89: am 00dec6a9: Merge "Make dexdump2 compile for 64bit devices."

* commit '29cd8a893d006d15143c1e0e8df695b7395000c5':
  Make dexdump2 compile for 64bit devices.

9 years agoam 6848874d: am 399426d9: Merge "Added next condition check to branch instruction"
Roland Levillain [Tue, 7 Jul 2015 15:49:19 +0000 (15:49 +0000)]
am 6848874d: am 399426d9: Merge "Added next condition check to branch instruction"

* commit '6848874d3031326ca919ead0112db47adf4d117a':
  Added next condition check to branch instruction

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

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

9 years agoam ee35ff80: Merge "Improve code generation for ARM64 VisitArrayGet/Set."
Nicolas Geoffray [Tue, 7 Jul 2015 11:00:45 +0000 (11:00 +0000)]
am ee35ff80: Merge "Improve code generation for ARM64 VisitArrayGet/Set."

* commit 'ee35ff809616324cbada38cbc0610eb09da09b35':
  Improve code generation for ARM64 VisitArrayGet/Set.

9 years agoMerge "Improve code generation for ARM64 VisitArrayGet/Set."
Nicolas Geoffray [Tue, 7 Jul 2015 10:48:12 +0000 (10:48 +0000)]
Merge "Improve code generation for ARM64 VisitArrayGet/Set."

9 years agoImprove code generation for ARM64 VisitArrayGet/Set.
Alexandre Rames [Tue, 7 Jul 2015 10:34:16 +0000 (11:34 +0100)]
Improve code generation for ARM64 VisitArrayGet/Set.

We prefer the code sequence
   add temp, obj, #offset
   ldr out, [temp, index LSL #shift_amount]
to
   add temp, obj, index LSL #shift_amount
   ldr out, [temp, #offset]

Change-Id: I98f51a1b5a5ecd84c677d6dbd4c4bfc0f157f5e2

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 agoBuild rule for dexdump regression test on host.
Aart Bik [Tue, 7 Jul 2015 00:45:30 +0000 (17:45 -0700)]
Build rule for dexdump regression test on host.

Bug: 17442393

Change-Id: I7795ba014e57080572769286cb3f8e3d4931e706

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

* commit '2d2e39ab712f2f710cb22cf3ba50dc8f14341a1d':
  Disable sanitization of dex2oat on device.

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 99e5ebf1: am 288b3001: Merge "List dependence of dexdump gtest on dexdump binary."
Aart Bik [Mon, 6 Jul 2015 23:01:17 +0000 (23:01 +0000)]
am 99e5ebf1: am 288b3001: Merge "List dependence of dexdump gtest on dexdump binary."

* commit '99e5ebf1ed541b01d873f3e501b783bc5411fca8':
  List dependence of dexdump gtest on dexdump binary.

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 016e2126: am e7ea17b7: Merge "Migrated dexdump from Dalvik (libdex) into Art ...
Aart Bik [Mon, 6 Jul 2015 20:57:16 +0000 (20:57 +0000)]
am 016e2126: am e7ea17b7: Merge "Migrated dexdump from Dalvik (libdex) into Art (libart)"

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

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 cd58c84d: am d4e2738f: Merge "Revert "Revert "Fix LSRA bug with explicit register...
Nicolas Geoffray [Mon, 6 Jul 2015 15:51:51 +0000 (15:51 +0000)]
am cd58c84d: am d4e2738f: Merge "Revert "Revert "Fix LSRA bug with explicit register temporaries"""

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

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

* commit '6c626bb935621f8efd2f8ea192901c9d0d8612c1':
  ART: Check switch and array data better in the verifier

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

* commit '24748416631f96e38504543f318cb558191afe16':
  ART: Unlink old file in OS::CreateEmptyFile

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

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

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

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

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 11d00545: am 16d6d0ef: Merge "Fix LSRA bug with explicit register temporaries"
Nicolas Geoffray [Mon, 6 Jul 2015 14:20:54 +0000 (14:20 +0000)]
am 11d00545: am 16d6d0ef: Merge "Fix LSRA bug with explicit register temporaries"

* commit '11d0054551ae9f96993922c5161756c939c945b2':
  Fix LSRA bug with explicit register temporaries

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 b426df50: am 51f38e3a: Merge "ART: Fix graph for switch leaving a try block"
David Brazdil [Mon, 6 Jul 2015 09:56:43 +0000 (09:56 +0000)]
am b426df50: am 51f38e3a: Merge "ART: Fix graph for switch leaving a try block"

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

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

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

9 years agoam ccbbda2b: Add implicit null pointer and stack overflow checks for Mips.
Douglas Leung [Mon, 6 Jul 2015 09:43:01 +0000 (09:43 +0000)]
am ccbbda2b: Add implicit null pointer and stack overflow checks for Mips.

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

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 1b10d249: am 4a305daf: Merge "Add implicit null pointer and stack overflow checks...
Roland Levillain [Sat, 4 Jul 2015 02:58:44 +0000 (02:58 +0000)]
am 1b10d249: am 4a305daf: Merge "Add implicit null pointer and stack overflow checks for Mips."

* commit '1b10d2496bf17fc20014419294ee17f930ba14f3':
  Add implicit null pointer and stack overflow checks for Mips.

9 years agoam ba973b01: am b447598f: Merge "Disable static builds for mac and asan."
Calin Juravle [Sat, 4 Jul 2015 02:58:17 +0000 (02:58 +0000)]
am ba973b01: am b447598f: Merge "Disable static builds for mac and asan."

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

9 years agoam 9fc5eea8: am aefdcd9a: Merge "Do not create a HBoundType when the instruction...
Nicolas Geoffray [Sat, 4 Jul 2015 02:58:16 +0000 (02:58 +0000)]
am 9fc5eea8: am aefdcd9a: Merge "Do not create a HBoundType when the instruction is non-null."

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

9 years agoam 9245286c: am 06b6da5c: Merge "Fix mac build: use -lrt only on linux."
Calin Juravle [Sat, 4 Jul 2015 02:58:03 +0000 (02:58 +0000)]
am 9245286c: am 06b6da5c: Merge "Fix mac build: use -lrt only on linux."

* commit '9245286cfef8d340553c91523a706eb557d5f24b':
  Fix mac build: use -lrt only on linux.

9 years agoam 217cecaa: am a3529ea5: Merge "Enable ART_BUILD_HOST_STATIC for check builds."
Calin Juravle [Sat, 4 Jul 2015 02:57:47 +0000 (02:57 +0000)]
am 217cecaa: am a3529ea5: Merge "Enable ART_BUILD_HOST_STATIC for check builds."

* commit '217cecaa04e3fd4257d854055f4b18a96aa083c4':
  Enable ART_BUILD_HOST_STATIC for check builds.

9 years agoam acc4f7d7: am 23bfc0bd: Merge "Build statically linked version of dex2oat."
Calin Juravle [Sat, 4 Jul 2015 02:57:39 +0000 (02:57 +0000)]
am acc4f7d7: am 23bfc0bd: Merge "Build statically linked version of dex2oat."

* commit 'acc4f7d728cfdce561e01d1fad37df6c30afd5ce':
  Build statically linked version of dex2oat.

9 years agoam 1302d1a0: am 7a20ae64: Merge "Allow for sig chain to be disabled."
Calin Juravle [Sat, 4 Jul 2015 02:57:37 +0000 (02:57 +0000)]
am 1302d1a0: am 7a20ae64: Merge "Allow for sig chain to be disabled."

* commit '1302d1a0b4f4d236445ea1fe0d7c883edcc12878':
  Allow for sig chain to be disabled.

9 years agoam 47fb52c7: am c87c8939: Merge "Implement heap poisoning in ART\'s Optimizing compiler."
Roland Levillain [Sat, 4 Jul 2015 02:57:31 +0000 (02:57 +0000)]
am 47fb52c7: am c87c8939: Merge "Implement heap poisoning in ART\'s Optimizing compiler."

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

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.

(cherry picked from commit 22bb5a2ebc1e2724179faf4660b2735dcb185f21)

Bug: 21555893
Change-Id: I2a995be128a5603d08753c14956dd8c8240ac63c

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 agoam 3b3b1243: am 3abd4375: Do not create a HBoundType when the instruction is non...
Nicolas Geoffray [Thu, 2 Jul 2015 16:43:06 +0000 (16:43 +0000)]
am 3b3b1243: am 3abd4375: Do not create a HBoundType when the instruction is non-null.

* commit '3b3b124348de8779d843cdafe49b633dc60186ab':
  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 3abd4375: Do not create a HBoundType when the instruction is non-null.
Nicolas Geoffray [Thu, 2 Jul 2015 16:31:12 +0000 (16:31 +0000)]
am 3abd4375: Do not create a HBoundType when the instruction is non-null.

* commit '3abd437507f8ba30a238a52c273c9944dcb9d5a1':
  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

Change-Id: I565ae95db5a64faec30e026674636e398e0bf445

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.