OSDN Git Service

android-x86/art.git
9 years agoam c14041a9: (-s ours) am 3d5e5f90: am 4a3fff8f: (-s ours) am 471b7cb6: HACK: Disable...
Mathieu Chartier [Wed, 29 Apr 2015 04:24:54 +0000 (04:24 +0000)]
am c14041a9: (-s ours) am 3d5e5f90: am 4a3fff8f: (-s ours) am 471b7cb6: HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

* commit 'c14041a9192c264c048eb3bb1153006abc498bb6':
  HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

9 years agoam 3d5e5f90: am 4a3fff8f: (-s ours) am 471b7cb6: HACK: Disable native stack trace...
Mathieu Chartier [Wed, 29 Apr 2015 04:12:57 +0000 (04:12 +0000)]
am 3d5e5f90: am 4a3fff8f: (-s ours) am 471b7cb6: HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

* commit '3d5e5f903f6068a889fe6532f9b51fcf28185c72':
  HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

9 years agoam 4a3fff8f: (-s ours) am 471b7cb6: HACK: Disable native stack trace dumping for...
Mathieu Chartier [Wed, 29 Apr 2015 03:51:31 +0000 (03:51 +0000)]
am 4a3fff8f: (-s ours) am 471b7cb6: HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

* commit '4a3fff8fc5021da3ef0b10850ac4ffbdef11c27c':
  HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

9 years agoam 626ecd09: Fix possible null deference in Throwable::Dump
Mathieu Chartier [Wed, 29 Apr 2015 02:11:03 +0000 (02:11 +0000)]
am 626ecd09: Fix possible null deference in Throwable::Dump

* commit '626ecd092f22c9ecab3c86f9235e74e975862609':
  Fix possible null deference in Throwable::Dump

9 years agoam 471b7cb6: HACK: Disable native stack trace dumping for tetra. DO NOT MERGE
Mathieu Chartier [Tue, 28 Apr 2015 23:27:58 +0000 (23:27 +0000)]
am 471b7cb6: HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

* commit '471b7cb6c1b8128bb343b49198f2654f9f5b8f86':
  HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

9 years agoHACK: Disable native stack trace dumping for tetra. DO NOT MERGE
Mathieu Chartier [Tue, 28 Apr 2015 22:07:07 +0000 (15:07 -0700)]
HACK: Disable native stack trace dumping for tetra. DO NOT MERGE

Hopefully stops deadlocks.

Bug: 20640601
Change-Id: I3e19217b6da002d328ffa7d941e14bfe734442c3

9 years agoam bc8ec546: am 13d38aab: Merge "Fix possible null deference in Throwable::Dump"
Mathieu Chartier [Tue, 28 Apr 2015 21:33:54 +0000 (21:33 +0000)]
am bc8ec546: am 13d38aab: Merge "Fix possible null deference in Throwable::Dump"

* commit 'bc8ec5462f9fb14b4e9c78b4d3c1590f41b32a54':
  Fix possible null deference in Throwable::Dump

9 years agoam 13d38aab: Merge "Fix possible null deference in Throwable::Dump"
Mathieu Chartier [Tue, 28 Apr 2015 21:17:15 +0000 (21:17 +0000)]
am 13d38aab: Merge "Fix possible null deference in Throwable::Dump"

* commit '13d38aabf01f8391946730b7c2e8d077b1ec7d13':
  Fix possible null deference in Throwable::Dump

9 years agoam 889c0983: am b8df6601: Merge "Change ddmc run-test to make new objects instead...
Jeff Hao [Tue, 28 Apr 2015 21:10:39 +0000 (21:10 +0000)]
am 889c0983: am b8df6601: Merge "Change ddmc run-test to make new objects instead of strings."

* commit '889c0983fe4c9d95b3ee41757a5bffbbd3b0586a':
  Change ddmc run-test to make new objects instead of strings.

9 years agoam 511eb743: am edede5c6: Merge "Quick: Fix crash on fall-through out of method code."
Vladimir Marko [Tue, 28 Apr 2015 21:10:29 +0000 (21:10 +0000)]
am 511eb743: am edede5c6: Merge "Quick: Fix crash on fall-through out of method code."

* commit '511eb743e362ca0cb97221074109dbc93d76f27d':
  Quick: Fix crash on fall-through out of method code.

9 years agoFix possible null deference in Throwable::Dump
Mathieu Chartier [Tue, 28 Apr 2015 20:53:02 +0000 (13:53 -0700)]
Fix possible null deference in Throwable::Dump

Bug: 20640601

(cherry picked from commit 4a24858d432331049c416ae6a5993762bfe5e438)

Change-Id: I42a34510798aeb492f375dbb8edb7efeae0ae339

9 years agoMerge "Fix possible null deference in Throwable::Dump"
Mathieu Chartier [Tue, 28 Apr 2015 21:06:33 +0000 (21:06 +0000)]
Merge "Fix possible null deference in Throwable::Dump"

9 years agoFix possible null deference in Throwable::Dump
Mathieu Chartier [Tue, 28 Apr 2015 20:53:02 +0000 (13:53 -0700)]
Fix possible null deference in Throwable::Dump

Bug: 20640601

Change-Id: Ibd6081ed9ea16f320e505e06e690b8eddb1228ef

9 years agoam b8df6601: Merge "Change ddmc run-test to make new objects instead of strings."
Jeff Hao [Tue, 28 Apr 2015 19:25:26 +0000 (19:25 +0000)]
am b8df6601: Merge "Change ddmc run-test to make new objects instead of strings."

* commit 'b8df6601f2119fd90150761388057dbe893bb6ae':
  Change ddmc run-test to make new objects instead of strings.

9 years agoMerge "Change ddmc run-test to make new objects instead of strings."
Jeff Hao [Tue, 28 Apr 2015 19:15:05 +0000 (19:15 +0000)]
Merge "Change ddmc run-test to make new objects instead of strings."

9 years agoChange ddmc run-test to make new objects instead of strings.
Jeff Hao [Tue, 28 Apr 2015 19:11:22 +0000 (12:11 -0700)]
Change ddmc run-test to make new objects instead of strings.

Before, the test was creating new strings until overflowing allocations,
which was half string objects and half character arrays. Now, it
allocates all strings with the character data, which is larger than
before, causing the test to run out of memory. Allocating only objects
prevents the test from running out of memory.

Change-Id: Icf3f0fd2ae847e76a9b8d5dfb762be92de16aaa3

9 years agoam edede5c6: Merge "Quick: Fix crash on fall-through out of method code."
Vladimir Marko [Tue, 28 Apr 2015 18:50:39 +0000 (18:50 +0000)]
am edede5c6: Merge "Quick: Fix crash on fall-through out of method code."

* commit 'edede5c67daa2a6890067da0934e0ba6e14661b9':
  Quick: Fix crash on fall-through out of method code.

9 years agoMerge "Quick: Fix crash on fall-through out of method code."
Vladimir Marko [Tue, 28 Apr 2015 18:35:17 +0000 (18:35 +0000)]
Merge "Quick: Fix crash on fall-through out of method code."

9 years agoam 805f4061: am 458d91b0: Merge "Prevent undefined behavior in RosAlloc."
Dan Albert [Tue, 28 Apr 2015 18:33:22 +0000 (18:33 +0000)]
am 805f4061: am 458d91b0: Merge "Prevent undefined behavior in RosAlloc."

* commit '805f4061d43b2617df7a235fa2e79e583925b111':
  Prevent undefined behavior in RosAlloc.

9 years agoQuick: Fix crash on fall-through out of method code.
Calin Juravle [Tue, 7 Apr 2015 18:43:36 +0000 (19:43 +0100)]
Quick: Fix crash on fall-through out of method code.

Fix Quick crash when the last insn has a fall-through out of
the method's code. Allow creation of an out-of-method block
and at the end of MIRGraph::InlineMethod() check if that
block is reachable. If it is, punt to interpreter. Add tests
for unreachable if-lt and packed-switch as the last insn.

Also fix MIRGraph::ProcessCanSwitch() to treat the offset to
the data as signed. Jumping over the data with a goto and
using it from a switch further down is valid. This was also
crashing (presumably only on 64-bit dex2oat).

Thanks to Stephen Kyle (stephenckyle@googlemail.com) for the
bug report.

Bug: 19988134
Change-Id: I627f4137f61901897bfb9a5252741c6ded3a1adb

9 years agoam 458d91b0: Merge "Prevent undefined behavior in RosAlloc."
Dan Albert [Tue, 28 Apr 2015 18:23:35 +0000 (18:23 +0000)]
am 458d91b0: Merge "Prevent undefined behavior in RosAlloc."

* commit '458d91b0f72293c9dd347feecf535db0682ccd71':
  Prevent undefined behavior in RosAlloc.

9 years agoam 7aa231a1: am 2b9b0de4: Merge "Fix some compaction bugs in string allocation"
Mathieu Chartier [Tue, 28 Apr 2015 18:17:09 +0000 (18:17 +0000)]
am 7aa231a1: am 2b9b0de4: Merge "Fix some compaction bugs in string allocation"

* commit '7aa231a188a62a6f6053ae9ae0f632366499fa97':
  Fix some compaction bugs in string allocation

9 years agoMerge "Prevent undefined behavior in RosAlloc."
Dan Albert [Tue, 28 Apr 2015 18:11:38 +0000 (18:11 +0000)]
Merge "Prevent undefined behavior in RosAlloc."

9 years agoPrevent undefined behavior in RosAlloc.
Dan Albert [Thu, 16 Apr 2015 18:50:30 +0000 (11:50 -0700)]
Prevent undefined behavior in RosAlloc.

In cases where remain == 0, the 32-bit value would be left shifted
32-bits, which is undefined behavior.

Change-Id: I6277279341b168536f928ce87375c395a1aa865c

9 years agoam 2b9b0de4: Merge "Fix some compaction bugs in string allocation"
Mathieu Chartier [Tue, 28 Apr 2015 18:03:18 +0000 (18:03 +0000)]
am 2b9b0de4: Merge "Fix some compaction bugs in string allocation"

* commit '2b9b0de424146c8b654b3fa05b14c48d3b2b0b13':
  Fix some compaction bugs in string allocation

9 years agoMerge "Fix some compaction bugs in string allocation"
Mathieu Chartier [Tue, 28 Apr 2015 17:47:45 +0000 (17:47 +0000)]
Merge "Fix some compaction bugs in string allocation"

9 years agoam 6996ce22: Merge "Quick: Avoid unnecessary GVN work in release builds." into mnc-dev
Vladimir Marko [Tue, 28 Apr 2015 17:28:24 +0000 (17:28 +0000)]
am 6996ce22: Merge "Quick: Avoid unnecessary GVN work in release builds." into mnc-dev

* commit '6996ce22986ddf19b89c7582973d55b329b1436e':
  Quick: Avoid unnecessary GVN work in release builds.

9 years agoam 3863b43d: Merge "Quick: Rely on inferred types in GVN/LVN/DCE." into mnc-dev
Vladimir Marko [Tue, 28 Apr 2015 17:28:22 +0000 (17:28 +0000)]
am 3863b43d: Merge "Quick: Rely on inferred types in GVN/LVN/DCE." into mnc-dev

* commit '3863b43dc55786a655157c446af8f5ceea61b61a':
  Quick: Rely on inferred types in GVN/LVN/DCE.

9 years agoFix some compaction bugs in string allocation
Mathieu Chartier [Tue, 28 Apr 2015 17:01:28 +0000 (10:01 -0700)]
Fix some compaction bugs in string allocation

Change-Id: I2b8499c60de7690e1012d71bccba4ecd589da9af

9 years agoMerge "Quick: Avoid unnecessary GVN work in release builds." into mnc-dev
Vladimir Marko [Tue, 28 Apr 2015 17:07:03 +0000 (17:07 +0000)]
Merge "Quick: Avoid unnecessary GVN work in release builds." into mnc-dev

9 years agoQuick: Avoid unnecessary GVN work in release builds.
Vladimir Marko [Sat, 25 Apr 2015 16:00:45 +0000 (17:00 +0100)]
Quick: Avoid unnecessary GVN work in release builds.

In GVN's post-processing phase, compare LVNs only in debug
builds as they should be equal anyway.

Remove the Gate() from GVN cleanup pass and remove the
DCHECK() from MIRGraph::GlobalValueNumberingCleanup()
to make it a no-op if the GVN didn't run.

Bug: 16398693

(cherry picked from commit f725550c8df90f8ec07395d9be5177a4be591c12)

Change-Id: I518fba4a06c8d6d5ab16a6c122dc680b6d44814b

9 years agoMerge "Quick: Rely on inferred types in GVN/LVN/DCE." into mnc-dev
Vladimir Marko [Tue, 28 Apr 2015 17:00:09 +0000 (17:00 +0000)]
Merge "Quick: Rely on inferred types in GVN/LVN/DCE." into mnc-dev

9 years agoam c71d9218: Fix constructor access check through reflection
Sebastien Hertz [Tue, 28 Apr 2015 15:57:18 +0000 (15:57 +0000)]
am c71d9218: Fix constructor access check through reflection

* commit 'c71d9218b640224af9ab73c088263a454ddd3b34':
  Fix constructor access check through reflection

9 years agoMerge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_dire...
Sudheer Shanka [Tue, 28 Apr 2015 14:58:59 +0000 (14:58 +0000)]
Merge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/art into mnc-dev-plus-aosp

9 years agoam 52c234b2: am 1c5808c0: Merge "Fix constructor access check through reflection"
Sebastien Hertz [Tue, 28 Apr 2015 14:54:18 +0000 (14:54 +0000)]
am 52c234b2: am 1c5808c0: Merge "Fix constructor access check through reflection"

* commit '52c234b2f8b9422c2318710aa0f7421f05c06869':
  Fix constructor access check through reflection

9 years agoam 0dd76cd3: ART: Fix constructor access checking
Andreas Gampe [Tue, 28 Apr 2015 14:54:12 +0000 (14:54 +0000)]
am 0dd76cd3: ART: Fix constructor access checking

* commit '0dd76cd3f09f495a1b9a0e4f8712c09ff885c6fd':
  ART: Fix constructor access checking

9 years agoam 1c5808c0: Merge "Fix constructor access check through reflection"
Sebastien Hertz [Tue, 28 Apr 2015 14:42:23 +0000 (14:42 +0000)]
am 1c5808c0: Merge "Fix constructor access check through reflection"

* commit '1c5808c0fa83155565f5319808a2949e0a3f5789':
  Fix constructor access check through reflection

9 years agoFix constructor access check through reflection
Sebastien Hertz [Tue, 28 Apr 2015 13:00:41 +0000 (15:00 +0200)]
Fix constructor access check through reflection

We must not throw IllegalAccessException if the constructor has been
made accessible by a previous call to Constructor.setAccessible, even
if the caller cannot access the constructor.

Bug: 20639158

(cherry picked from commit 2d2f2a9c665b02ca5139f71e37ca5e08389e4191)

Change-Id: Ic5cb54256f11aefcfaa99f2ee85c4a32f30e693a

9 years agoMerge "Fix constructor access check through reflection"
Sebastien Hertz [Tue, 28 Apr 2015 14:33:00 +0000 (14:33 +0000)]
Merge "Fix constructor access check through reflection"

9 years agoam 93ef27d3: am d4667dea: Merge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry...
Vladimir Marko [Tue, 28 Apr 2015 14:01:50 +0000 (14:01 +0000)]
am 93ef27d3: am d4667dea: Merge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points."

* commit '93ef27d3baa206805108ec7afbac9bcd50352bca':
  ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points.

9 years agoQuick: Rely on inferred types in GVN/LVN/DCE.
Vladimir Marko [Fri, 24 Apr 2015 18:03:51 +0000 (19:03 +0100)]
Quick: Rely on inferred types in GVN/LVN/DCE.

Fix LVN::GetEndingVregValueNumberImpl() to check whether
the requested wideness matches the SSA register type as
recorded in MIRGraph::reg_location_.

Add DCHECKs that the wideness matches when getting/setting
sreg values, update Phi handling in LVN/DCE to use the type
from MIRGraph::reg_location_ instead of determining it from
the sreg value maps which would now trigger the DCHECKs.
Update tests to initialize MIRGraph::reg_location_.

Reenable DCE.

Bug: 20572509

(cherry picked from commit a5e69e87c630c08c0de1740427e60d531ce851b9)

Change-Id: Ieb97ac9e3672b977e36fd7f369a975bae7d5271e

9 years agoam d4667dea: Merge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points."
Vladimir Marko [Tue, 28 Apr 2015 13:51:27 +0000 (13:51 +0000)]
am d4667dea: Merge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points."

* commit 'd4667dea87e68ee3ee64581af138f59300a5c510':
  ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points.

9 years agoMerge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points."
Vladimir Marko [Tue, 28 Apr 2015 13:31:38 +0000 (13:31 +0000)]
Merge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points."

9 years agoFix constructor access check through reflection
Sebastien Hertz [Tue, 28 Apr 2015 13:00:41 +0000 (15:00 +0200)]
Fix constructor access check through reflection

We must not throw IllegalAccessException if the constructor has been
made accessible by a previous call to Constructor.setAccessible, even
if the caller cannot access the constructor.

Bug: 20639158
Change-Id: I9a34f05cdbb8825ad88b42223743690228e3f03e

9 years agoART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points.
Vladimir Marko [Tue, 28 Apr 2015 13:14:58 +0000 (14:14 +0100)]
ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points.

Missing from
    https://android-review.googlesource.com/79174

Change-Id: If182b73824edfd4639f645612b2f7b67c1f31bef

9 years agoam 95fc030d: am 95935f28: Merge "ART: Fix MIPS entrypoint downcall macros."
Vladimir Marko [Tue, 28 Apr 2015 12:30:29 +0000 (12:30 +0000)]
am 95fc030d: am 95935f28: Merge "ART: Fix MIPS entrypoint downcall macros."

* commit '95fc030d897fe67786f81a987e6d0b8e06e9b3b7':
  ART: Fix MIPS entrypoint downcall macros.

9 years agoam 95935f28: Merge "ART: Fix MIPS entrypoint downcall macros."
Vladimir Marko [Tue, 28 Apr 2015 12:19:38 +0000 (12:19 +0000)]
am 95935f28: Merge "ART: Fix MIPS entrypoint downcall macros."

* commit '95935f28a7206c32592f6744cfc4c63e4d87ecdf':
  ART: Fix MIPS entrypoint downcall macros.

9 years agoMerge "ART: Fix MIPS entrypoint downcall macros."
Vladimir Marko [Tue, 28 Apr 2015 12:10:30 +0000 (12:10 +0000)]
Merge "ART: Fix MIPS entrypoint downcall macros."

9 years agoART: Fix MIPS entrypoint downcall macros.
Vladimir Marko [Tue, 28 Apr 2015 11:37:09 +0000 (12:37 +0100)]
ART: Fix MIPS entrypoint downcall macros.

Broken by not updating the MIPS assembly after rebase of
    https://android-review.googlesource.com/79174

Change-Id: I6258c254c0652e92357d306640c461d9523da227

9 years agoam 66e8a1e0: am 3adfc4bb: Merge "Quick: Avoid unnecessary GVN work in release builds."
Vladimir Marko [Tue, 28 Apr 2015 10:51:22 +0000 (10:51 +0000)]
am 66e8a1e0: am 3adfc4bb: Merge "Quick: Avoid unnecessary GVN work in release builds."

* commit '66e8a1e04ffec769af17dabc3e8383cd7277b2b3':
  Quick: Avoid unnecessary GVN work in release builds.

9 years agoam 862cd5e1: am 80613ffd: Merge "Have HInvoke instructions know their number of actua...
Roland Levillain [Tue, 28 Apr 2015 10:51:20 +0000 (10:51 +0000)]
am 862cd5e1: am 80613ffd: Merge "Have HInvoke instructions know their number of actual arguments."

* commit '862cd5e1a80884d812c283c952ca8c11f4df9ec4':
  Have HInvoke instructions know their number of actual arguments.

9 years agoam 55669590: am a94fb1f9: Merge "Revert "Revert "[optimizing] Replace FP divide by...
Nicolas Geoffray [Tue, 28 Apr 2015 10:51:18 +0000 (10:51 +0000)]
am 55669590: am a94fb1f9: Merge "Revert "Revert "[optimizing] Replace FP divide by power of 2"""

* commit '556695901ce517b70564513d4212170fb74fb8a1':
  Revert "Revert "[optimizing] Replace FP divide by power of 2""

9 years agoam 3adfc4bb: Merge "Quick: Avoid unnecessary GVN work in release builds."
Vladimir Marko [Tue, 28 Apr 2015 10:44:37 +0000 (10:44 +0000)]
am 3adfc4bb: Merge "Quick: Avoid unnecessary GVN work in release builds."

* commit '3adfc4bbe6c42d574bd2069d8e38a13d5ad98ccf':
  Quick: Avoid unnecessary GVN work in release builds.

9 years agoam 80613ffd: Merge "Have HInvoke instructions know their number of actual arguments."
Roland Levillain [Tue, 28 Apr 2015 10:39:17 +0000 (10:39 +0000)]
am 80613ffd: Merge "Have HInvoke instructions know their number of actual arguments."

* commit '80613ffd5699e6207d6b1264d600a0fc168074ce':
  Have HInvoke instructions know their number of actual arguments.

9 years agoam a94fb1f9: Merge "Revert "Revert "[optimizing] Replace FP divide by power of 2"""
Nicolas Geoffray [Tue, 28 Apr 2015 10:39:14 +0000 (10:39 +0000)]
am a94fb1f9: Merge "Revert "Revert "[optimizing] Replace FP divide by power of 2"""

* commit 'a94fb1f99ee3390bca9531b2512f8fc65f13ceee':
  Revert "Revert "[optimizing] Replace FP divide by power of 2""

9 years agoMerge "Quick: Avoid unnecessary GVN work in release builds."
Vladimir Marko [Tue, 28 Apr 2015 10:36:38 +0000 (10:36 +0000)]
Merge "Quick: Avoid unnecessary GVN work in release builds."

9 years agoMerge "Have HInvoke instructions know their number of actual arguments."
Roland Levillain [Tue, 28 Apr 2015 10:31:38 +0000 (10:31 +0000)]
Merge "Have HInvoke instructions know their number of actual arguments."

9 years agoMerge "Revert "Revert "[optimizing] Replace FP divide by power of 2"""
Nicolas Geoffray [Tue, 28 Apr 2015 10:29:17 +0000 (10:29 +0000)]
Merge "Revert "Revert "[optimizing] Replace FP divide by power of 2"""

9 years agoresolved conflicts for merge of 2b1c622d to mnc-dev-plus-aosp
David Brazdil [Tue, 28 Apr 2015 10:10:49 +0000 (11:10 +0100)]
resolved conflicts for merge of 2b1c622d to mnc-dev-plus-aosp

Change-Id: I26f4aefa7d7384bbc64c7a3c9e312692071a0e62

9 years agoHave HInvoke instructions know their number of actual arguments.
Roland Levillain [Tue, 28 Apr 2015 10:00:54 +0000 (11:00 +0100)]
Have HInvoke instructions know their number of actual arguments.

Add an art::HInvoke::GetNumberOfArguments routine so that
art::HInvoke and its subclasses can return the number of
actual arguments of the called method.  Use it in code
generators and intrinsics handlers.

Consequently, no longer remove a clinit check as last input
of a static invoke if it is still present during baseline
code generation, but ensure that static invokes have no such
check as last input in optimized compilations.

Change-Id: Iaf9e07d1057a3b15b83d9638538c02b70211e476

9 years agoam a4509a5f: am 64db0171: Merge "Fix java_lang_Class newInstance for strings; also...
Jeff Hao [Tue, 28 Apr 2015 04:22:28 +0000 (04:22 +0000)]
am a4509a5f: am 64db0171: Merge "Fix java_lang_Class newInstance for strings; also quick entrypoints."

* commit 'a4509a5fefd18e1fb61961dfc83057ca6e938e51':
  Fix java_lang_Class newInstance for strings; also quick entrypoints.

9 years agoam 64db0171: Merge "Fix java_lang_Class newInstance for strings; also quick entrypoints."
Jeff Hao [Tue, 28 Apr 2015 04:15:04 +0000 (04:15 +0000)]
am 64db0171: Merge "Fix java_lang_Class newInstance for strings; also quick entrypoints."

* commit '64db01714f91bf255a79c0a88813641c240c9857':
  Fix java_lang_Class newInstance for strings; also quick entrypoints.

9 years agoMerge "Fix java_lang_Class newInstance for strings; also quick entrypoints."
Jeff Hao [Tue, 28 Apr 2015 03:57:53 +0000 (03:57 +0000)]
Merge "Fix java_lang_Class newInstance for strings; also quick entrypoints."

9 years agoFix java_lang_Class newInstance for strings; also quick entrypoints.
Jeff Hao [Tue, 28 Apr 2015 03:54:07 +0000 (20:54 -0700)]
Fix java_lang_Class newInstance for strings; also quick entrypoints.

Change-Id: I35fd23c5a9051e1ffda0ecc2cbafb5d318c7b5e6

9 years agoam 3d2eb5c4: am f0a3d3da: Merge "ART: Fix constructor access checking"
Andreas Gampe [Tue, 28 Apr 2015 03:05:15 +0000 (03:05 +0000)]
am 3d2eb5c4: am f0a3d3da: Merge "ART: Fix constructor access checking"

* commit '3d2eb5c4e039168e306c03a54d52427712f16843':
  ART: Fix constructor access checking

9 years agoam f0a3d3da: Merge "ART: Fix constructor access checking"
Andreas Gampe [Tue, 28 Apr 2015 02:53:22 +0000 (02:53 +0000)]
am f0a3d3da: Merge "ART: Fix constructor access checking"

* commit 'f0a3d3dad248ad0dcb7cfc6addcc66d8bd117e48':
  ART: Fix constructor access checking

9 years agoMerge "ART: Fix constructor access checking"
Andreas Gampe [Tue, 28 Apr 2015 02:42:25 +0000 (02:42 +0000)]
Merge "ART: Fix constructor access checking"

9 years agoART: Fix constructor access checking
Andreas Gampe [Tue, 28 Apr 2015 00:26:37 +0000 (17:26 -0700)]
ART: Fix constructor access checking

Constructor access must be checked.

(cherry picked from commit 0dd76cd3f09f495a1b9a0e4f8712c09ff885c6fd)

Bug: 20639158
Change-Id: I3c586e9572a748d208bea43aa2349c3ef52a2ee5

9 years agoam a4799fc4: am 9d1e1903: Merge "Replace String CharArray with internal uint16_t...
Jeff Hao [Tue, 28 Apr 2015 02:26:37 +0000 (02:26 +0000)]
am a4799fc4: am 9d1e1903: Merge "Replace String CharArray with internal uint16_t array."

* commit 'a4799fc466776ea5b4e9663b1e63af4d224a6865':
  Replace String CharArray with internal uint16_t array.

9 years agoam 9d1e1903: Merge "Replace String CharArray with internal uint16_t array."
Jeff Hao [Tue, 28 Apr 2015 02:15:12 +0000 (02:15 +0000)]
am 9d1e1903: Merge "Replace String CharArray with internal uint16_t array."

* commit '9d1e19035a59ff8bf05a09ad880ede99806ba73f':
  Replace String CharArray with internal uint16_t array.

9 years agoMerge "Replace String CharArray with internal uint16_t array."
Jeff Hao [Tue, 28 Apr 2015 02:04:09 +0000 (02:04 +0000)]
Merge "Replace String CharArray with internal uint16_t array."

9 years agoReplace String CharArray with internal uint16_t array.
Jeff Hao [Wed, 15 Jan 2014 21:49:50 +0000 (13:49 -0800)]
Replace String CharArray with internal uint16_t array.

Summary of high level changes:
  - Adds compiler inliner support to identify string init methods
  - Adds compiler support (quick & optimizing) with new invoke code path
    that calls method off the thread pointer
  - Adds thread entrypoints for all string init methods
  - Adds map to verifier to log when receiver of string init has been
    copied to other registers. used by compiler and interpreter

Change-Id: I797b992a8feb566f9ad73060011ab6f51eb7ce01

9 years agoam 3b531e5d: am 3fd79afb: Merge "Switch the default read barrier type to a Baker...
Hiroshi Yamauchi [Tue, 28 Apr 2015 01:30:47 +0000 (01:30 +0000)]
am 3b531e5d: am 3fd79afb: Merge "Switch the default read barrier type to a Baker one."

* commit '3b531e5d04a312790b7f268c402238ad816f0d2e':
  Switch the default read barrier type to a Baker one.

9 years agoam 3fd79afb: Merge "Switch the default read barrier type to a Baker one."
Hiroshi Yamauchi [Tue, 28 Apr 2015 01:18:46 +0000 (01:18 +0000)]
am 3fd79afb: Merge "Switch the default read barrier type to a Baker one."

* commit '3fd79afbb7490f52817f737ecceb694f6618dcf9':
  Switch the default read barrier type to a Baker one.

9 years agoMerge "Switch the default read barrier type to a Baker one."
Hiroshi Yamauchi [Tue, 28 Apr 2015 01:07:17 +0000 (01:07 +0000)]
Merge "Switch the default read barrier type to a Baker one."

9 years agoSwitch the default read barrier type to a Baker one.
Hiroshi Yamauchi [Tue, 28 Apr 2015 00:58:51 +0000 (17:58 -0700)]
Switch the default read barrier type to a Baker one.

For automated testing.

Bug: 12687968
Change-Id: I831d6e45e4729f0dd3cf178d02af511a32cc9777

9 years agoART: Fix constructor access checking
Andreas Gampe [Tue, 28 Apr 2015 00:26:37 +0000 (17:26 -0700)]
ART: Fix constructor access checking

Constructor access must be checked.

Bug: 20639158
Change-Id: I3c586e9572a748d208bea43aa2349c3ef52a2ee5

9 years agoRevert "Revert "[optimizing] Replace FP divide by power of 2""
Nicolas Geoffray [Mon, 27 Apr 2015 08:53:46 +0000 (08:53 +0000)]
Revert "Revert "[optimizing] Replace FP divide by power of 2""

This reverts commit 067cae2c86627d2edcf01b918ee601774bc76aeb.

Change-Id: Iaaa8772500ea7d3dce6ae0829dc0dc3bbc9c14ca

9 years agoam f33884fd: am 97c96f5a: Merge "Fix mismatched malloc/free delete/new."
Christopher Ferris [Mon, 27 Apr 2015 19:24:17 +0000 (19:24 +0000)]
am f33884fd: am 97c96f5a: Merge "Fix mismatched malloc/free delete/new."

* commit 'f33884fd93a7a8785210ef28805475ad9bcc627a':
  Fix mismatched malloc/free delete/new.

9 years agoam eb78b421: am d74a1bf3: Merge "Use the lock word bits for Baker-style read barrier."
Hiroshi Yamauchi [Mon, 27 Apr 2015 19:24:15 +0000 (19:24 +0000)]
am eb78b421: am d74a1bf3: Merge "Use the lock word bits for Baker-style read barrier."

* commit 'eb78b421ec6baf9bc1f9f91c18dcb941971050d4':
  Use the lock word bits for Baker-style read barrier.

9 years agoam c32f2eff: am acee1524: Merge "Fix clean-oat"
Mathieu Chartier [Mon, 27 Apr 2015 19:24:13 +0000 (19:24 +0000)]
am c32f2eff: am acee1524: Merge "Fix clean-oat"

* commit 'c32f2eff036d94195c3243ca43527e5a7c585764':
  Fix clean-oat

9 years agoam 97c96f5a: Merge "Fix mismatched malloc/free delete/new."
Christopher Ferris [Mon, 27 Apr 2015 19:14:58 +0000 (19:14 +0000)]
am 97c96f5a: Merge "Fix mismatched malloc/free delete/new."

* commit '97c96f5aab22f75dd54089bdc194588a4b5a2e8d':
  Fix mismatched malloc/free delete/new.

9 years agoam d74a1bf3: Merge "Use the lock word bits for Baker-style read barrier."
Hiroshi Yamauchi [Mon, 27 Apr 2015 19:14:56 +0000 (19:14 +0000)]
am d74a1bf3: Merge "Use the lock word bits for Baker-style read barrier."

* commit 'd74a1bf310a6a5ad2d770fcd76735cbc617d64eb':
  Use the lock word bits for Baker-style read barrier.

9 years agoam acee1524: Merge "Fix clean-oat"
Mathieu Chartier [Mon, 27 Apr 2015 19:14:53 +0000 (19:14 +0000)]
am acee1524: Merge "Fix clean-oat"

* commit 'acee152464725efac3dd74c9ac3acf2afa73f0e9':
  Fix clean-oat

9 years agoMerge "Fix mismatched malloc/free delete/new."
Christopher Ferris [Mon, 27 Apr 2015 19:05:36 +0000 (19:05 +0000)]
Merge "Fix mismatched malloc/free delete/new."

9 years agoFix mismatched malloc/free delete/new.
Christopher Ferris [Sat, 25 Apr 2015 00:23:53 +0000 (17:23 -0700)]
Fix mismatched malloc/free delete/new.

Modify the monitor code to override the delete operator. The problem
is the new operator is overloaded to return a pointer returned by
posix_memalign, but then it's freed with a delete, not a free call.

Also, fix the debugger code to use the [] for a std::unique_ptr to
match how the value is actually allocated.

Both problems found by ASAN.

Bug: 18202869

Change-Id: I2f3a2c02a7f35399b7ba6717b08a035089fab00d

9 years agoMerge "Use the lock word bits for Baker-style read barrier."
Hiroshi Yamauchi [Mon, 27 Apr 2015 18:10:18 +0000 (18:10 +0000)]
Merge "Use the lock word bits for Baker-style read barrier."

9 years agoMerge "Fix clean-oat"
Mathieu Chartier [Mon, 27 Apr 2015 18:01:13 +0000 (18:01 +0000)]
Merge "Fix clean-oat"

9 years agoFix clean-oat
Mathieu Chartier [Mon, 27 Apr 2015 17:46:39 +0000 (10:46 -0700)]
Fix clean-oat

Change to use adb shell sh -c <cmd>.

Also fixed other phony targets, deleted smart mode and added
verify-at-runtime mode.

Change-Id: I562117774eaa153e66b46d6f173fe993931018b7

9 years agoam e8257991: am 2d01066d: Merge "Dissociate uses with environment uses."
Nicolas Geoffray [Mon, 27 Apr 2015 17:44:45 +0000 (17:44 +0000)]
am e8257991: am 2d01066d: Merge "Dissociate uses with environment uses."

* commit 'e82579914ea1793fce52fd9fcd8d1ddb13a73bb9':
  Dissociate uses with environment uses.

9 years agoam 540bf7ed: am 295dda50: Merge "Quick: Rely on inferred types in GVN/LVN/DCE."
Vladimir Marko [Mon, 27 Apr 2015 17:34:16 +0000 (17:34 +0000)]
am 540bf7ed: am 295dda50: Merge "Quick: Rely on inferred types in GVN/LVN/DCE."

* commit '540bf7ed3b70f1696f7f4b8d380152d55d2a7dab':
  Quick: Rely on inferred types in GVN/LVN/DCE.

9 years agoam 2d01066d: Merge "Dissociate uses with environment uses."
Nicolas Geoffray [Mon, 27 Apr 2015 17:28:57 +0000 (17:28 +0000)]
am 2d01066d: Merge "Dissociate uses with environment uses."

* commit '2d01066db24c19f9384f50ff71806cbb4835c7f9':
  Dissociate uses with environment uses.

9 years agoam 77020a4e: am d14438f0: Merge "ART: Simplify Ifs with BooleanNot condition"
David Brazdil [Mon, 27 Apr 2015 17:21:42 +0000 (17:21 +0000)]
am 77020a4e: am d14438f0: Merge "ART: Simplify Ifs with BooleanNot condition"

* commit '77020a4eb5537ace00962df199981019aa88c704':
  ART: Simplify Ifs with BooleanNot condition

9 years agoMerge "Dissociate uses with environment uses."
Nicolas Geoffray [Mon, 27 Apr 2015 17:12:10 +0000 (17:12 +0000)]
Merge "Dissociate uses with environment uses."

9 years agoam 295dda50: Merge "Quick: Rely on inferred types in GVN/LVN/DCE."
Vladimir Marko [Mon, 27 Apr 2015 17:09:36 +0000 (17:09 +0000)]
am 295dda50: Merge "Quick: Rely on inferred types in GVN/LVN/DCE."

* commit '295dda5066dfeb5bed88a4a484268f94b060c7fb':
  Quick: Rely on inferred types in GVN/LVN/DCE.

9 years agoMerge "Quick: Rely on inferred types in GVN/LVN/DCE."
Vladimir Marko [Mon, 27 Apr 2015 16:53:25 +0000 (16:53 +0000)]
Merge "Quick: Rely on inferred types in GVN/LVN/DCE."

9 years agoDissociate uses with environment uses.
Nicolas Geoffray [Mon, 27 Apr 2015 15:58:06 +0000 (16:58 +0100)]
Dissociate uses with environment uses.

They are most of the times in the way when iterating. They
also complicate the logic of (future) back edge uses.

Change-Id: I152595d9913073fe901b267ca623fa0fe7432484

9 years agoam d14438f0: Merge "ART: Simplify Ifs with BooleanNot condition"
David Brazdil [Mon, 27 Apr 2015 16:15:52 +0000 (16:15 +0000)]
am d14438f0: Merge "ART: Simplify Ifs with BooleanNot condition"

* commit 'd14438f0c5071962be7fab572b54687d32d9d087':
  ART: Simplify Ifs with BooleanNot condition

9 years agoMerge "ART: Simplify Ifs with BooleanNot condition"
David Brazdil [Mon, 27 Apr 2015 16:02:02 +0000 (16:02 +0000)]
Merge "ART: Simplify Ifs with BooleanNot condition"

9 years agoART: Simplify Ifs with BooleanNot condition
David Brazdil [Mon, 27 Apr 2015 12:54:09 +0000 (13:54 +0100)]
ART: Simplify Ifs with BooleanNot condition

If statements with negated condition can be simplified by removing the
negation and swapping the true and false branches.

Change-Id: I197afbc79fb7344d73b7b85d3611e7ca2519717f