OSDN Git Service

android-x86/art.git
7 years agoMerge "Add kJitTableAddress for HLoadClass."
Nicolas Geoffray [Mon, 12 Dec 2016 15:30:51 +0000 (15:30 +0000)]
Merge "Add kJitTableAddress for HLoadClass."
am: 7d81bf2c9d

Change-Id: If90c5e91c2be184f5c521d881e2a060830750eb6

7 years agoMerge "Add kJitTableAddress for HLoadClass."
Nicolas Geoffray [Mon, 12 Dec 2016 15:26:10 +0000 (15:26 +0000)]
Merge "Add kJitTableAddress for HLoadClass."

7 years agoAdd kJitTableAddress for HLoadClass.
Nicolas Geoffray [Fri, 9 Dec 2016 11:26:35 +0000 (11:26 +0000)]
Add kJitTableAddress for HLoadClass.

This new kind loads classes from the root table associated with
JIT compiled code.

Also remove kDexCacheAddress, which is replaced by kJitTableAddress.

test: ART_TEST_JIT=true test-art-host-jit test-art-target-jit
Change-Id: Ia23029688d1a60c178bf2ffa7463927c5d5de4d0

7 years agoMerge "Revert "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrame...
Nicolas Geoffray [Mon, 12 Dec 2016 10:37:25 +0000 (10:37 +0000)]
Merge "Revert "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."""
am: c836b5a8a5

Change-Id: I99d7792e8107b29aea43355851f74f58ccf55d0d

7 years agoMerge "Revert^8 "Make sure that const-class linkage is preserved.""
Vladimir Marko [Mon, 12 Dec 2016 10:37:05 +0000 (10:37 +0000)]
Merge "Revert^8 "Make sure that const-class linkage is preserved.""
am: 726e517305

Change-Id: I4eee4925831c3366e413b48e92c75c068a312b0a

7 years agoMerge "Revert "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrame...
Nicolas Geoffray [Mon, 12 Dec 2016 10:30:24 +0000 (10:30 +0000)]
Merge "Revert "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."""

7 years agoMerge "Revert^8 "Make sure that const-class linkage is preserved.""
Vladimir Marko [Mon, 12 Dec 2016 10:29:49 +0000 (10:29 +0000)]
Merge "Revert^8 "Make sure that const-class linkage is preserved.""

7 years agoMerge "Use System.out only."
Nicolas Geoffray [Mon, 12 Dec 2016 10:24:33 +0000 (10:24 +0000)]
Merge "Use System.out only."
am: bf4e45476d

Change-Id: I511dd09e4b44374e7d4888944288de268b81c003

7 years agoMerge "Use System.out only."
Nicolas Geoffray [Mon, 12 Dec 2016 10:17:56 +0000 (10:17 +0000)]
Merge "Use System.out only."

7 years agoUse System.out only.
Nicolas Geoffray [Sun, 11 Dec 2016 22:05:15 +0000 (22:05 +0000)]
Use System.out only.

Otherwise streams can get interleaved when printing.

test: 956-methodhandles
Change-Id: Ie734e24ed5bb73786e1972df784b365176bfd593

7 years agoMerge "Added polynomial induction variables analysis. With tests."
Aart Bik [Fri, 9 Dec 2016 21:56:17 +0000 (21:56 +0000)]
Merge "Added polynomial induction variables analysis. With tests."
am: 57096b7231

Change-Id: I279b7719950eaa64921f70f43568a51ea74c0328

7 years agoMerge "Added polynomial induction variables analysis. With tests."
Treehugger Robot [Fri, 9 Dec 2016 21:48:43 +0000 (21:48 +0000)]
Merge "Added polynomial induction variables analysis. With tests."

7 years agoAdded polynomial induction variables analysis. With tests.
Aart Bik [Tue, 6 Dec 2016 18:05:30 +0000 (10:05 -0800)]
Added polynomial induction variables analysis. With tests.

Rationale:
Information on polynomial sequences is nice to further enhance
BCE and last-value assignment. In this case, this CL enables more
loop optimizations for benchpress' Sum (80 x speedup). Also
changed rem-based geometric induction to wrap-around induction.

Test: test-art-host

Change-Id: Ie4d2659edefb814edda2c971c1f70ba400c31111

7 years agoMerge "Clean up Class::GetDirectInterface()."
Vladimir Marko [Fri, 9 Dec 2016 15:44:26 +0000 (15:44 +0000)]
Merge "Clean up Class::GetDirectInterface()."
am: 88e9168c5c

Change-Id: I112269a5b34bdb06f10390af9d5c9125a223aa98

7 years agoMerge "Clean up Class::GetDirectInterface()."
Vladimir Marko [Fri, 9 Dec 2016 15:36:53 +0000 (15:36 +0000)]
Merge "Clean up Class::GetDirectInterface()."

7 years agoClean up Class::GetDirectInterface().
Vladimir Marko [Thu, 8 Dec 2016 14:41:46 +0000 (14:41 +0000)]
Clean up Class::GetDirectInterface().

Once the `klass` has been resolved, this function should not
need to resolve interface types anymore. Drop the type
resolution from this function and pass the Class as ObjPtr<>
instead of Handle<>. Make callers that expect non-null
result DCHECK() that assumption. For the callers that may
actually need to resolve these interface classes, introduce
a new function ResolveDirectInterface().

Also improve ObjPtr<> constructors and assignment operator
to improve overload resolution. For example, if we have
foo(ObjPtr<T1>) and foo(ObjPtr<T2>), calling foo(.) with
a T1* would have previously been ambiguous even if T1 is
not a base of T2.

Test: m test-art-host
Change-Id: Iff44a7285f68f0af4507fc9ba37343865422fe84

7 years agoRevert^8 "Make sure that const-class linkage is preserved."
Vladimir Marko [Fri, 9 Dec 2016 10:20:54 +0000 (10:20 +0000)]
Revert^8 "Make sure that const-class linkage is preserved."

Replaced two ReaderMutexLocks with WriterMutexLocks.
Removed some unnecessary debugging output.

Test: m test-art-host
Bug: 30627598
Original-Change-Id: Ie9b721464b4e9a5dcce8df8095548e983bba1fe8

This reverts commit 2c8c6b63da6ecb2ac701cc30f9b4fa4a8eea5cc8.

Change-Id: I3a1aeecf64e4b202cef61cceb248d48106a2f4a6

7 years agoMerge "ARM: VIXL32: Implement read barriers."
Nicolas Geoffray [Fri, 9 Dec 2016 11:31:10 +0000 (11:31 +0000)]
Merge "ARM: VIXL32: Implement read barriers."
am: f3dcdd9e24

Change-Id: Ibe808c4b576f23c1628ba2efded04d65a80cf45f

7 years agoMerge "ARM: VIXL32: Implement read barriers."
Nicolas Geoffray [Fri, 9 Dec 2016 11:23:42 +0000 (11:23 +0000)]
Merge "ARM: VIXL32: Implement read barriers."

7 years agoMerge "Revert "ART: Remove workaround in verifer after Jack update.""
Orion Hodson [Thu, 8 Dec 2016 14:34:26 +0000 (14:34 +0000)]
Merge "Revert "ART: Remove workaround in verifer after Jack update.""
am: aea9ffece7

Change-Id: Ia9fd8a6ee73b56ef10601f5b489dccceb9d987d8

7 years agoMerge "Revert "ART: Remove workaround in verifer after Jack update.""
Orion Hodson [Thu, 8 Dec 2016 14:26:09 +0000 (14:26 +0000)]
Merge "Revert "ART: Remove workaround in verifer after Jack update.""

7 years agoMerge "Add libstdc++ as a dependency for build-target-art-golem."
Nicolas Geoffray [Thu, 8 Dec 2016 14:15:54 +0000 (14:15 +0000)]
Merge "Add libstdc++ as a dependency for build-target-art-golem."
am: b671dcff59

Change-Id: Ic8d150248edb5dd6948d05f5b8a9e33a3fe74d36

7 years agoRevert "ART: Remove workaround in verifer after Jack update."
Orion Hodson [Thu, 8 Dec 2016 14:15:25 +0000 (14:15 +0000)]
Revert "ART: Remove workaround in verifer after Jack update."

This reverts commit 1aab04df52529d3cabe28fd9f0cb008bf8180a56.

Change-Id: Ifecad6a16f2c6dfeea99adcdca7da05fb71592a8

7 years agoMerge "Add libstdc++ as a dependency for build-target-art-golem."
Nicolas Geoffray [Thu, 8 Dec 2016 14:11:10 +0000 (14:11 +0000)]
Merge "Add libstdc++ as a dependency for build-target-art-golem."

7 years agoAdd libstdc++ as a dependency for build-target-art-golem.
Nicolas Geoffray [Thu, 8 Dec 2016 13:49:54 +0000 (13:49 +0000)]
Add libstdc++ as a dependency for build-target-art-golem.

Needed for running with ART_TARGET_LINUX=true

Test: builds and runs.
Change-Id: Idf74eff0a4114952b71781ed80de5bbe75f666ae

7 years agoMerge "ART: Remove workaround in verifer after Jack update."
Orion Hodson [Thu, 8 Dec 2016 12:56:51 +0000 (12:56 +0000)]
Merge "ART: Remove workaround in verifer after Jack update."
am: e063a7f0f8

Change-Id: I12f71bbf4abc8b840efa39aa327c833d52709e92

7 years agoMerge "ART: Remove workaround in verifer after Jack update."
Orion Hodson [Thu, 8 Dec 2016 12:49:46 +0000 (12:49 +0000)]
Merge "ART: Remove workaround in verifer after Jack update."

7 years agoART: Remove workaround in verifer after Jack update.
Orion Hodson [Thu, 8 Dec 2016 10:29:53 +0000 (10:29 +0000)]
ART: Remove workaround in verifer after Jack update.

Bug: 33099829,30550796
Test: m test-art-host
Change-Id: I812809e7f043ec2a9651f22e970312e094b78966

7 years agoRevert "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.""
Scott Wakeling [Wed, 7 Dec 2016 17:46:03 +0000 (17:46 +0000)]
Revert "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.""

Override Add in ArmVIXLMacroAssembler to improve 16-bit encodings.

This reverts commit 2f34995469e20a1ac342975856155f69995997ce.

Test: m test-art-host

Change-Id: Ief9f7576cd805104fd517a76b96d8a92f2208dfd

7 years agoMerge "JDWP tests need debug info"
Yohann Roussel [Wed, 7 Dec 2016 17:24:41 +0000 (17:24 +0000)]
Merge "JDWP tests need debug info"
am: 0bdba6c301

Change-Id: I376ae7846f473e5d3449c98ed3ea8d9060a6f598

7 years agoMerge "MIPS32: Pass more arguments in registers."
Vladimir Marko [Wed, 7 Dec 2016 17:21:43 +0000 (17:21 +0000)]
Merge "MIPS32: Pass more arguments in registers."
am: b08265b2d6

Change-Id: Ica6d0ce4020b0dcb6f9a9346d993cc800984cfdc

7 years agoMerge "JDWP tests need debug info"
Treehugger Robot [Wed, 7 Dec 2016 17:18:16 +0000 (17:18 +0000)]
Merge "JDWP tests need debug info"

7 years agoMerge "MIPS32: Pass more arguments in registers."
Vladimir Marko [Wed, 7 Dec 2016 17:15:08 +0000 (17:15 +0000)]
Merge "MIPS32: Pass more arguments in registers."

7 years agoMerge "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.""
Nicolas Geoffray [Wed, 7 Dec 2016 16:26:25 +0000 (16:26 +0000)]
Merge "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.""
am: b4ee681c21

Change-Id: I3c85e8dd9d8def7695b520df292d18c5bb33e60e

7 years agoMerge "Mterp/arm: Add CFI directives, add missing change"
Bill Buzbee [Wed, 7 Dec 2016 16:26:09 +0000 (16:26 +0000)]
Merge "Mterp/arm: Add CFI directives, add missing change"
am: ff64a18f6f

Change-Id: Ic1cc91b6aaa360d8d75e4842241a0731b4b00636

7 years agoMerge "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.""
Nicolas Geoffray [Wed, 7 Dec 2016 16:21:24 +0000 (16:21 +0000)]
Merge "Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.""

7 years agoRevert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."
Nicolas Geoffray [Wed, 7 Dec 2016 16:20:47 +0000 (16:20 +0000)]
Revert "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."

Breaks assembler_thumb_test.

This reverts commit d494c5e37c656d92fcf83987d886e999457d9252.

Change-Id: I0ccac4c7bf391185b860767bd26d48189bfae461

7 years agoMerge "Mterp/arm: Add CFI directives, add missing change"
Bill Buzbee [Wed, 7 Dec 2016 16:19:41 +0000 (16:19 +0000)]
Merge "Mterp/arm: Add CFI directives, add missing change"

7 years agoJDWP tests need debug info
Yohann Roussel [Wed, 7 Dec 2016 15:41:07 +0000 (16:41 +0100)]
JDWP tests need debug info

Test: art/tools/run-jdwp-tests.sh --mode=host --variant=X32
Change-Id: I4b575978a4005b3b09862c12cd98f1c5436122ce

7 years agoMerge "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."
Nicolas Geoffray [Wed, 7 Dec 2016 15:22:05 +0000 (15:22 +0000)]
Merge "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."
am: 7f735969a9

Change-Id: I61e6f8f6a74e9e1bedefc4a7b97f972908350fa7

7 years agoMerge "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."
Nicolas Geoffray [Wed, 7 Dec 2016 15:17:12 +0000 (15:17 +0000)]
Merge "ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry."

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Bill Yi [Tue, 6 Dec 2016 23:40:36 +0000 (23:40 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: 0dd27eb2b5

Change-Id: I073a492a7e0b7ce8ff4dd108da20e2d5e77cff98

7 years agoMerge "Reduce calls to DescriptorEquals"
Mathieu Chartier [Tue, 6 Dec 2016 23:40:21 +0000 (23:40 +0000)]
Merge "Reduce calls to DescriptorEquals"
am: 1a5bfdc22b

Change-Id: Ia3dc7ef60d3848d93d295f93297c09c00e47509d

7 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Bill Yi [Tue, 6 Dec 2016 22:30:01 +0000 (14:30 -0800)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD

7 years agoMerge "Reduce calls to DescriptorEquals"
Mathieu Chartier [Tue, 6 Dec 2016 22:06:05 +0000 (22:06 +0000)]
Merge "Reduce calls to DescriptorEquals"

7 years agoMIPS32: Pass more arguments in registers.
Alexey Frunze [Sun, 13 Nov 2016 01:22:05 +0000 (17:22 -0800)]
MIPS32: Pass more arguments in registers.

Specifically, use A0-A3,T0-T1 for non-floats and F8-F19 for floats.

Test: booted MIPS32R2 in QEMU
Test: test-art-target-run-test-optimizing (MIPS32R2) on CI20
Test: test-art-target-gtest (MIPS32R2) on CI20
Test: booted MIPS64 (with 2nd arch MIPS32R6) in QEMU
Test: test-art-target-run-test-optimizing (MIPS32R6) in QEMU
Test: test-art-target-gtest (MIPS32R6) in QEMU
Test: test-art-host-gtest

Change-Id: Ib8b0310a109d9f3d70119c1e605e54b013e60728

7 years agoMerge "Use getReferent() in enqueueSentinelReference to avoid race with GC."
Hiroshi Yamauchi [Tue, 6 Dec 2016 20:09:07 +0000 (20:09 +0000)]
Merge "Use getReferent() in enqueueSentinelReference to avoid race with GC."
am: d12f04cb56

Change-Id: I45197211253ba6308695f3bcbf339b118cfed299

7 years agoMerge "Use getReferent() in enqueueSentinelReference to avoid race with GC."
Hiroshi Yamauchi [Tue, 6 Dec 2016 20:04:53 +0000 (20:04 +0000)]
Merge "Use getReferent() in enqueueSentinelReference to avoid race with GC."

7 years agoMerge "Fixed a few bugs in dexfuzz:"
Aart Bik [Tue, 6 Dec 2016 19:52:32 +0000 (19:52 +0000)]
Merge "Fixed a few bugs in dexfuzz:"
am: 72ef70de77

Change-Id: I83d09f667f21aea5162a9637e55493bef450de16

7 years agoARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.
Artem Serov [Fri, 2 Dec 2016 18:46:40 +0000 (18:46 +0000)]
ARM: VIXL32: Use DontCare for SetFlags + fix for GenerateFrameEntry.

In T32 some of the instructions (add, mov, etc) outside an IT block
have only 32-bit encodings. But there are 16-bit flag setting
versions of these instructions (adds, movs, etc). In most of the
cases in ART we don't care if the instructions keep flags or not;
thus we can benefit from smaller code size.
VIXL will never generate flag setting versions (for example, adds
for Add macro instruction) unless vixl32::DontCare option is
explicitly specified. That's why we introduce wrappers to use
DontCare option by default.

This patch reduces code size of compiled code. For example,
core.oat has shown over 1.16% code size reduction.

Also contains a fix for GenerateFrameEntry.

Test: ART_USE_VIXL_ARM_BACKEND=true m test-art-host
Test: ART_USE_VIXL_ARM_BACKEND=true m test-art-target

Change-Id: Id55a16f34208e7b702016ee83e2f2d0daeb42eaf

7 years agoMerge "Fixed a few bugs in dexfuzz:"
Aart Bik [Tue, 6 Dec 2016 19:45:23 +0000 (19:45 +0000)]
Merge "Fixed a few bugs in dexfuzz:"

7 years agoMerge "ART: Move boot-image loading to ImageSpace"
Andreas Gampe [Tue, 6 Dec 2016 19:37:31 +0000 (19:37 +0000)]
Merge "ART: Move boot-image loading to ImageSpace"
am: f99e0d0f28

Change-Id: Ib859154a1e0ce49d17b05bfb9bf5c55a0af37364

7 years agoMerge "ART: Move boot-image loading to ImageSpace"
Treehugger Robot [Tue, 6 Dec 2016 19:31:44 +0000 (19:31 +0000)]
Merge "ART: Move boot-image loading to ImageSpace"

7 years agoReduce calls to DescriptorEquals
Mathieu Chartier [Thu, 1 Dec 2016 22:21:11 +0000 (14:21 -0800)]
Reduce calls to DescriptorEquals

Store the low 3 bits of the descriptor hash inside of class set
entries. Compare these bits before comparing descriptors.

Simpleperf interpret-only compile of facebook:
mirror::Class::DescriptorEquals(char const*): 3.66% -> 1.03%

Bug: 32641252

Test: test-art-host

Change-Id: I8d898d4ac7c95383c49401fbcd85bfde226e026c

7 years agoARM: VIXL32: Implement read barriers.
Anton Kirilov [Wed, 30 Nov 2016 15:14:10 +0000 (15:14 +0000)]
ARM: VIXL32: Implement read barriers.

Test: ART_USE_VIXL_ARM_BACKEND=true {ART_USE_READ_BARRIER=true, \
      ART_USE_READ_BARRIER=true ART_HEAP_POISONING=true, \
      ART_USE_READ_BARRIER=true ART_READ_BARRIER_TYPE=TABLELOOKUP, \
      ART_USE_READ_BARRIER=true ART_READ_BARRIER_TYPE=TABLELOOKUP \
      ART_HEAP_POISONING=true, ART_HEAP_POISONING=true} \
      m test-art-host
Test: ART_USE_VIXL_ARM_BACKEND=true {ART_USE_READ_BARRIER=true, \
      ART_USE_READ_BARRIER=true ART_HEAP_POISONING=true, \
      ART_USE_READ_BARRIER=true ART_READ_BARRIER_TYPE=TABLELOOKUP, \
      ART_USE_READ_BARRIER=true ART_READ_BARRIER_TYPE=TABLELOOKUP \
      ART_HEAP_POISONING=true, ART_HEAP_POISONING=true} \
      m test-art-target
Change-Id: I2c1e4875beb09329c3b69bd5e1e8bbd3861d5866

7 years agoMerge "Added geometric induction variables analysis."
Aart Bik [Tue, 6 Dec 2016 17:17:23 +0000 (17:17 +0000)]
Merge "Added geometric induction variables analysis."
am: 6746874b84

Change-Id: Icebb53a6229638d33c6d1c36cddd396034d366a5

7 years agoMerge "Added geometric induction variables analysis."
Aart Bik [Tue, 6 Dec 2016 17:09:57 +0000 (17:09 +0000)]
Merge "Added geometric induction variables analysis."

7 years agoMerge "Revert "Re-enable libcore test WeakHashMapTest#test_keySet.""
Roland Levillain [Tue, 6 Dec 2016 15:04:14 +0000 (15:04 +0000)]
Merge "Revert "Re-enable libcore test WeakHashMapTest#test_keySet.""
am: c6f27ac5f4

Change-Id: I1ef7c23bd614983e219d6bc00e9d21cb7ebb39b7

7 years agoMerge "Revert "Re-enable libcore test WeakHashMapTest#test_keySet.""
Treehugger Robot [Tue, 6 Dec 2016 14:57:08 +0000 (14:57 +0000)]
Merge "Revert "Re-enable libcore test WeakHashMapTest#test_keySet.""

7 years agoMerge "Fix two tests after vdex change."
Nicolas Geoffray [Tue, 6 Dec 2016 14:33:12 +0000 (14:33 +0000)]
Merge "Fix two tests after vdex change."
am: 02d45c6afc

Change-Id: I3d6e05b4d1a033a7ba4ffe4f868186a51e469795

7 years agoMerge "Fix two tests after vdex change."
Nicolas Geoffray [Tue, 6 Dec 2016 14:27:17 +0000 (14:27 +0000)]
Merge "Fix two tests after vdex change."

7 years agoFix two tests after vdex change.
Nicolas Geoffray [Tue, 6 Dec 2016 13:40:16 +0000 (13:40 +0000)]
Fix two tests after vdex change.

- Clear entries of verification results, to avoid hitting a
  DCHECK while running verifier_deps_test
- Backlist 629-vdex-speed for relocate-npatchoat, as the test
  needs compiled code.

test: verifier_deps_test, 629-vdex-speed
bug: 30937355
Change-Id: I9788599dafcbfe63522c58f85692601466d191db

7 years agoMterp/arm: Add CFI directives, add missing change
buzbee [Tue, 6 Dec 2016 13:00:01 +0000 (05:00 -0800)]
Mterp/arm: Add CFI directives, add missing change

CL 308760 neglected to regenerate mterp_arm.S.  Added here.

Test: m ART_TEST_INTERPRETER=true test-art-target (in progress)
Bug: 31456348
Change-Id: I476e65e81bf54c8fdb1e2134d460db496308d6c1

7 years agoMerge "Mterp/arm: Add CFI directives."
Bill Buzbee [Tue, 6 Dec 2016 12:50:07 +0000 (12:50 +0000)]
Merge "Mterp/arm: Add CFI directives."
am: 07830e11b7

Change-Id: Id7c086ac5383fa3cfbe1e32f7715327688c0b3cc

7 years agoMerge "Mterp/arm: Add CFI directives."
Bill Buzbee [Tue, 6 Dec 2016 12:42:21 +0000 (12:42 +0000)]
Merge "Mterp/arm: Add CFI directives."

7 years agoMerge "Update Jack options to enable invoke-polymorphic"
Benoit Lamarche [Tue, 6 Dec 2016 11:07:41 +0000 (11:07 +0000)]
Merge "Update Jack options to enable invoke-polymorphic"
am: d1aa2912f3

Change-Id: I1b095876451910ae5e9b8bfcce13b712e01aa72c

7 years agoRevert "Re-enable libcore test WeakHashMapTest#test_keySet."
Roland Levillain [Tue, 6 Dec 2016 10:30:55 +0000 (10:30 +0000)]
Revert "Re-enable libcore test WeakHashMapTest#test_keySet."

This reverts commit d3a36fd9d99857da60777ddcf3b10058402e0915.

Reverting as the test still fails on the ART Buildbot.

Bug: 25437292
Change-Id: Id8bf59bac2d81554d5a50757ce25255ec99155ec

7 years agoMerge "Update Jack options to enable invoke-polymorphic"
Benoit Lamarche [Tue, 6 Dec 2016 10:16:25 +0000 (10:16 +0000)]
Merge "Update Jack options to enable invoke-polymorphic"

7 years agoMerge "ARM: VIXL32: Clean usage of scopes."
Nicolas Geoffray [Tue, 6 Dec 2016 10:12:40 +0000 (10:12 +0000)]
Merge "ARM: VIXL32: Clean usage of scopes."
am: cce05bd825

Change-Id: Ida6a10f2b61b75c586094c1f93ef81ffffb65b85

7 years agoMerge "ARM: VIXL32: Implement Invoke, LoadClass, LoadString dispatch."
Nicolas Geoffray [Tue, 6 Dec 2016 10:12:17 +0000 (10:12 +0000)]
Merge "ARM: VIXL32: Implement Invoke, LoadClass, LoadString dispatch."
am: 5677d9a815

Change-Id: Ife1ac1c4a4fd33bac190911e3f2694d0e4214ebf

7 years agoMerge "Create empty VerifiedMethod after vdex verification."
Nicolas Geoffray [Tue, 6 Dec 2016 10:11:57 +0000 (10:11 +0000)]
Merge "Create empty VerifiedMethod after vdex verification."
am: 2eace9c132

Change-Id: I234895ba7cbff5b760275a2e2ba4581b47aba4e8

7 years agoMerge "ARM: VIXL32: Clean usage of scopes."
Nicolas Geoffray [Tue, 6 Dec 2016 10:07:05 +0000 (10:07 +0000)]
Merge "ARM: VIXL32: Clean usage of scopes."

7 years agoMerge "ARM: VIXL32: Implement Invoke, LoadClass, LoadString dispatch."
Nicolas Geoffray [Tue, 6 Dec 2016 10:06:49 +0000 (10:06 +0000)]
Merge "ARM: VIXL32: Implement Invoke, LoadClass, LoadString dispatch."

7 years agoMerge "Create empty VerifiedMethod after vdex verification."
Nicolas Geoffray [Tue, 6 Dec 2016 10:06:13 +0000 (10:06 +0000)]
Merge "Create empty VerifiedMethod after vdex verification."

7 years agoAdded geometric induction variables analysis.
Aart Bik [Thu, 1 Dec 2016 18:22:31 +0000 (10:22 -0800)]
Added geometric induction variables analysis.

Rationale:
Information on geometric and polynomial (coming soon) sequences
are nice to have to further enhance BCE and last-value assignment.

Test: test-art-host
Change-Id: Ib5e2998c3eb1009def6fd00b82935da7c3ba7c6e

7 years agoART: Move boot-image loading to ImageSpace
Andreas Gampe [Mon, 5 Dec 2016 20:37:36 +0000 (12:37 -0800)]
ART: Move boot-image loading to ImageSpace

Move the complete loading sequence for multi-image into ImageSpace.
This simplifies Heap initialization.

Test: m test-art-host
Change-Id: I5a9ee818ce26f205c641e96288f5b4c42257e202

7 years agoMerge "Address comments I missed on a previous CL"
Alex Light [Mon, 5 Dec 2016 21:17:09 +0000 (21:17 +0000)]
Merge "Address comments I missed on a previous CL"
am: e4cdd4dbcb

Change-Id: I088e2c8dbfc750f35c11b90f35ec2bb7cff7e478

7 years agoMerge "Address comments I missed on a previous CL"
Treehugger Robot [Mon, 5 Dec 2016 21:08:20 +0000 (21:08 +0000)]
Merge "Address comments I missed on a previous CL"

7 years agoMerge "Dump more debug info for b/33006388."
Hiroshi Yamauchi [Mon, 5 Dec 2016 19:08:30 +0000 (19:08 +0000)]
Merge "Dump more debug info for b/33006388."
am: ab1b1c06a7

Change-Id: I0022558d790e1f12b02dcf6d7a0fdd84e2d6612f

7 years agoMerge "Dump more debug info for b/33006388."
Hiroshi Yamauchi [Mon, 5 Dec 2016 19:00:37 +0000 (19:00 +0000)]
Merge "Dump more debug info for b/33006388."

7 years agoMerge "ART: Clean up Thread"
Andreas Gampe [Mon, 5 Dec 2016 17:51:55 +0000 (17:51 +0000)]
Merge "ART: Clean up Thread"
am: 8205d17159

Change-Id: I2b8c53bf300ae245161a3a1f5654b56fb4e961ef

7 years agoMerge "ART: Clean up Thread"
Treehugger Robot [Mon, 5 Dec 2016 17:49:35 +0000 (17:49 +0000)]
Merge "ART: Clean up Thread"

7 years agoAddress comments I missed on a previous CL
Alex Light [Sat, 3 Dec 2016 01:27:31 +0000 (17:27 -0800)]
Address comments I missed on a previous CL

I accidentally missed some comments on
android-review.googlesource.com/c/305518 when I submitted it. This
addresses those comments.

Test: mma -j40 test-art-host
Change-Id: Icd8ff65dee1730d10489f25e75bddbd455c68413

7 years agoMterp/arm: Add CFI directives.
buzbee [Thu, 1 Dec 2016 22:03:05 +0000 (14:03 -0800)]
Mterp/arm: Add CFI directives.

Includes reworking of float_to_long and double_to_long to
elminate frame (as suggested by vmarko).

Test: m ART_TEST_INTERPRETER=true test-art-target (in progress)
Bug: 31456348
Change-Id: Ic4e985b977f76c4df926559b187d92d969206514

7 years agoMerge "ART: Weaken boot classpath initialization check"
Andreas Gampe [Mon, 5 Dec 2016 16:13:21 +0000 (16:13 +0000)]
Merge "ART: Weaken boot classpath initialization check"
am: a8db0a9599

Change-Id: I08b87543fca0e75b18fe348e8ad05f9212306869

7 years agoMerge "ART: Weaken boot classpath initialization check"
Treehugger Robot [Mon, 5 Dec 2016 16:08:58 +0000 (16:08 +0000)]
Merge "ART: Weaken boot classpath initialization check"

7 years agoARM: VIXL32: Clean usage of scopes.
Alexandre Rames [Fri, 4 Nov 2016 10:40:49 +0000 (10:40 +0000)]
ARM: VIXL32: Clean usage of scopes.

Use scopes in more places where they are semantically required.
There are still places where we should use scopes, but do not yet.
Those are marked with new `TODO` comments. Practically everything
works fine (see comments for details), but we eventually should fix
it.

Test: ART_USE_VIXL_ARM_BACKEND=true m test-art-host
Test: ART_USE_VIXL_ARM_BACKEND=true m test-art-target

Change-Id: I5bdc710d32f0b9476eee92b31f2ff9d874e26f63

7 years agoCreate empty VerifiedMethod after vdex verification.
Nicolas Geoffray [Fri, 25 Nov 2016 15:56:12 +0000 (15:56 +0000)]
Create empty VerifiedMethod after vdex verification.

The compiler and quicken require the existence of a
VerifiedMethod for compiling a method.

This fixes the regression of not doing any compilation when
passed --input-vdex.

Test: 629-vdex-speed

Change-Id: Ie65578eadd09099df1c1a403d96c15e5da78a901

7 years agoARM: VIXL32: Implement Invoke, LoadClass, LoadString dispatch.
Artem Serov [Fri, 4 Nov 2016 11:19:09 +0000 (11:19 +0000)]
ARM: VIXL32: Implement Invoke, LoadClass, LoadString dispatch.

Implemented dispatch optimizations for InvokeStaticOrDirect,
LoadClass, LoadString (excluding cases that use Literals).
Performed a cleanup of VIXL backend.

Test: export ART_USE_VIXL_ARM_BACKEND=true && \
      mma test-art-host dist && mma test-art-target dist

Change-Id: Ib37a6b7e7657196b13caec999d190be747857c1d

7 years agoMerge "Re-enable libcore test WeakHashMapTest#test_keySet."
Roland Levillain [Mon, 5 Dec 2016 11:49:08 +0000 (11:49 +0000)]
Merge "Re-enable libcore test WeakHashMapTest#test_keySet."
am: be5d0cdb38

Change-Id: I19a21552361eea0110109093db28391ada462f39

7 years agoMerge "Re-enable libcore test WeakHashMapTest#test_keySet."
Roland Levillain [Mon, 5 Dec 2016 11:45:13 +0000 (11:45 +0000)]
Merge "Re-enable libcore test WeakHashMapTest#test_keySet."

7 years agoMerge "Don't use an internal timeout, rely on the test harness one."
Nicolas Geoffray [Mon, 5 Dec 2016 11:23:06 +0000 (11:23 +0000)]
Merge "Don't use an internal timeout, rely on the test harness one."
am: 3d32bf0b1e

Change-Id: Ib30b33778da6d4d27f3c98ff0c6f22b86ce566c3

7 years agoMerge "Set the root table size when allocating."
Nicolas Geoffray [Mon, 5 Dec 2016 11:19:39 +0000 (11:19 +0000)]
Merge "Set the root table size when allocating."
am: 2bafa0e575

Change-Id: Ib9a14d963790c0233bbfa416da8ad811fd8503d1

7 years agoFixed a few bugs in dexfuzz:
Branislav Rankov [Wed, 23 Nov 2016 13:42:13 +0000 (13:42 +0000)]
Fixed a few bugs in dexfuzz:

- Set error level on exit when there are divergences.
- Fix cleanCodeCache not preprending adb shell.
- Fixed clearCache.
- Fixed bug in reading end of try block.
- Fixed bug in shifting try block.
- Fixed a bug reading debug info.

Test: Extract dex files from art-tests as named below and test run commands:
dexfuzz --arm --interpreter --optimizing --repeat=2 --execute --input=seeds/068-classloader.dex
dexfuzz --arm --interpreter --optimizing --repeat=2 --execute --input=seeds/510-checker-try-catch.dex
You should not get errors.

Change-Id: I0e0fb6dc27ef6f828a6427b088f6b2ca36aae243

7 years agoMerge "Don't use an internal timeout, rely on the test harness one."
Nicolas Geoffray [Mon, 5 Dec 2016 11:16:59 +0000 (11:16 +0000)]
Merge "Don't use an internal timeout, rely on the test harness one."

7 years agoMerge "Set the root table size when allocating."
Nicolas Geoffray [Mon, 5 Dec 2016 11:15:04 +0000 (11:15 +0000)]
Merge "Set the root table size when allocating."

7 years agoMerge "Set the location checksum in vdex."
Nicolas Geoffray [Mon, 5 Dec 2016 10:12:02 +0000 (10:12 +0000)]
Merge "Set the location checksum in vdex."
am: 3acf361425

Change-Id: If6650c2962be548c47f635500c18563df2cff5dc

7 years agoMerge "Set the location checksum in vdex."
Nicolas Geoffray [Mon, 5 Dec 2016 10:08:07 +0000 (10:08 +0000)]
Merge "Set the location checksum in vdex."

7 years agoSet the root table size when allocating.
Nicolas Geoffray [Mon, 5 Dec 2016 00:10:09 +0000 (00:10 +0000)]
Set the root table size when allocating.

In order to deallocate it at any point.

test: ART_TEST_JIT=true m test-art-host-run-test-jit
Change-Id: I36574fd1a34c9d67800a164fa801db7a17c827bf

7 years agoDon't use an internal timeout, rely on the test harness one.
Nicolas Geoffray [Sun, 4 Dec 2016 22:32:24 +0000 (22:32 +0000)]
Don't use an internal timeout, rely on the test harness one.

test: 522-checker-regression-monitor-exit
Change-Id: Ida2ebd609f2902908476f1061459838f0c181f1a