OSDN Git Service
Sebastien Hertz [Tue, 25 Mar 2014 16:53:48 +0000 (17:53 +0100)]
Do not suspend current thread to build stacktrace from DDMS
Avoids a failing CHECK in ThreadList::SuspendThreadByThreadId in the case we
try to suspend the current thread.
Bug:
12985512
Change-Id: I9434400a3625319855dd3841d8889117e57784e5
Sebastien Hertz [Fri, 21 Mar 2014 14:19:17 +0000 (14:19 +0000)]
Merge "Support inlining detection from debugger."
Sebastien Hertz [Fri, 21 Mar 2014 10:31:51 +0000 (11:31 +0100)]
Support inlining detection from debugger.
In the context of the compiler, every method and field should be resolved. The
InlineMethodAnalyser uses that property so we don't inline unresolved methods
or methods accessing unresolved fields. In the context of the debugger, this is
not true. We may install a breakpoint in a method that's never been resolved
yet for instance.
This CL weaks that property so we can detect getter/setter methods can be
inlined even if they're not resolved yet. To differentiate both contexts, we
pass a null inline method pointer to InlineMethodAnalyser::AnalyseIGetMethod.
Bug:
12187616
Change-Id: I247f315b9abd6b065d5a7ec4116de15a6cce7649
Vladimir Marko [Fri, 21 Mar 2014 13:18:33 +0000 (13:18 +0000)]
Merge "Fix and clean up intrinsic Math.abs(long)."
Vladimir Marko [Thu, 20 Mar 2014 17:38:43 +0000 (17:38 +0000)]
Fix and clean up intrinsic Math.abs(long).
On ARM, make sure we don't clobber a register that we still
need for the next insn. On x86, don't free a source register
for temps if it's overlapping a result register as that
would allow the sign_reg temporary to alias with the result.
Change-Id: I785f2f607900ae8ceb2fa0b8f3eefafdf6fab5c7
Dave Allison [Fri, 21 Mar 2014 00:00:05 +0000 (00:00 +0000)]
Merge "Fix issue parsing implicit_checks property"
Dave Allison [Thu, 20 Mar 2014 21:45:17 +0000 (14:45 -0700)]
Fix issue parsing implicit_checks property
It was missing the initial value.
Change-Id: Id7554c9286947791a46358b0c07339e4d0eac1ee
Mathieu Chartier [Thu, 20 Mar 2014 22:54:25 +0000 (22:54 +0000)]
Merge "Fix RecordFree to take signed parameters."
Mathieu Chartier [Thu, 20 Mar 2014 22:54:09 +0000 (22:54 +0000)]
Merge "Add Heap::RunningOnValgrind and call it from the spaces."
Mathieu Chartier [Thu, 20 Mar 2014 22:40:37 +0000 (15:40 -0700)]
Add Heap::RunningOnValgrind and call it from the spaces.
Makes it easier to disable valgrind support.
Change-Id: I1bde792f1b76a2dd968fa03c6142e92fcc3670b0
Mathieu Chartier [Thu, 20 Mar 2014 22:12:30 +0000 (15:12 -0700)]
Fix RecordFree to take signed parameters.
RecordFree can get negative bytes allocated when background
compaction foreground transitions occur. This caused a DCHECK to
fail on debug builds. Also did some refactoring in
PreProcessReferences.
Bug:
13568814
Change-Id: I57543f1c78544a94f1d241459698b736dba8cfa8
Ian Rogers [Thu, 20 Mar 2014 21:49:56 +0000 (21:49 +0000)]
Merge "64bit: make runtime offsets more deterministic."
Ian Rogers [Thu, 20 Mar 2014 15:10:17 +0000 (08:10 -0700)]
64bit: make runtime offsets more deterministic.
STL implementations vary causing offsets not to be consistent. Place member
variables we care about the offsets of at the start of Runtime.
Change-Id: I3ad7fe606cb99bcdd884a8fdbdd06bd7e047cd84
Hiroshi Yamauchi [Thu, 20 Mar 2014 21:11:23 +0000 (21:11 +0000)]
Merge "Fix a libartd.so boot DCHECK failure with the GSS collector."
Colin Cross [Thu, 20 Mar 2014 20:37:15 +0000 (20:37 +0000)]
Merge "HACK: force target art executables to be compiled for 32-bit"
Hiroshi Yamauchi [Thu, 20 Mar 2014 20:31:37 +0000 (13:31 -0700)]
Fix a libartd.so boot DCHECK failure with the GSS collector.
Bug:
11650816
Change-Id: Ibbdf1e66d2c1afe92351ee7a0ca84702bd07035d
Colin Cross [Thu, 20 Mar 2014 19:55:13 +0000 (12:55 -0700)]
HACK: force target art executables to be compiled for 32-bit
64-bit dex2oat doesn't support 32-bit targets yet, force all
art executables to compile 32-bit for now.
Change-Id: If69f0a45e55104a5e915a9c58afa9009aa68b71c
Vladimir Marko [Thu, 20 Mar 2014 17:38:29 +0000 (17:38 +0000)]
Merge "Make all gc maps with 0 entries identical."
Vladimir Marko [Thu, 20 Mar 2014 17:37:38 +0000 (17:37 +0000)]
Merge "Clean up intrinsic Math.abs(float/double)."
Vladimir Marko [Thu, 20 Mar 2014 15:08:57 +0000 (15:08 +0000)]
Make all gc maps with 0 entries identical.
Change-Id: Ie4fee22ffed07d23d103f52e4ab39ef083678d85
Mathieu Chartier [Thu, 20 Mar 2014 16:27:20 +0000 (16:27 +0000)]
Merge "Add soft reference pre processing."
Mathieu Chartier [Thu, 20 Mar 2014 00:08:17 +0000 (17:08 -0700)]
Add soft reference pre processing.
Soft reference pre-processing does soft reference preservation with
mutators running. After this is done, it does another pass with
mutators paused in the ProcessReference code. This helps lower pauses
since most preserved soft references have their referents recursive
marked outside the pause.
Changed ergonomics to have non sticky collectors always clear the
soft references.
Maps pauses ~10ms -> ~3ms on Nexus 4.
Bug:
13421927
Change-Id: I1370f7bb6934034869aa5afca0c377876267aa8e
Andreas Gampe [Thu, 20 Mar 2014 16:13:41 +0000 (16:13 +0000)]
Merge "Add FINAL and OVERRIDE to calling conventions of the JNI compiler"
Andreas Gampe [Thu, 20 Mar 2014 15:34:03 +0000 (08:34 -0700)]
Add FINAL and OVERRIDE to calling conventions of the JNI compiler
Change-Id: I72d75e6eabbef334a9244668a1b20f7113f76c2b
Vladimir Marko [Wed, 19 Mar 2014 11:56:59 +0000 (11:56 +0000)]
Clean up intrinsic Math.abs(float/double).
Don't load 0x7fffffff into register.
Change-Id: I0197f9f3ad33db1f6eb09a9b4113299c00f500e3
buzbee [Thu, 20 Mar 2014 14:58:55 +0000 (14:58 +0000)]
Merge "Fix message in 083-compiler_regressions test"
buzbee [Thu, 20 Mar 2014 14:07:53 +0000 (07:07 -0700)]
Fix message in 083-compiler_regressions test
Fix test failure message to reflect expected result.
Change-Id: I75ae3e882671aa429ecb17487188720c19ff4d32
Bill Buzbee [Thu, 20 Mar 2014 14:04:52 +0000 (14:04 +0000)]
Merge "Fix GenArithOpInt to work with RA correctly"
Bill Buzbee [Thu, 20 Mar 2014 14:04:24 +0000 (14:04 +0000)]
Merge "ART: API changes"
Serguei Katkov [Fri, 14 Mar 2014 06:33:33 +0000 (13:33 +0700)]
Fix GenArithOpInt to work with RA correctly
In a case of mul-int/2addr bytecode when source operand is in
memory implementation should first load value of destination
and then evaluate location for destination. Otherwise load will
be skipped because after evaluation of physical register for
destination load will be ignored due to register allocator
thinks that value is already in register.
Change-Id: Iecee5a07d0fba16b421b8c49d42c5d8623794ad7
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
Sebastien Hertz [Thu, 20 Mar 2014 10:22:36 +0000 (10:22 +0000)]
Merge "Fix JDWP ObjectReference.InvokeMethod for virtual method call."
Sebastien Hertz [Thu, 20 Mar 2014 09:07:14 +0000 (09:07 +0000)]
Merge "Fix thread suspension in ObjectReference.MonitorInfo JDWP command."
Sebastien Hertz [Thu, 20 Mar 2014 09:06:51 +0000 (09:06 +0000)]
Merge "Do not send JDWP data in case of error."
Sebastien Hertz [Thu, 20 Mar 2014 08:57:40 +0000 (09:57 +0100)]
Fix JDWP ObjectReference.InvokeMethod for virtual method call.
Fixes virtual method call by invoking the concrete method in sirt reference
after devirtualization, not the original method.
Bug:
13526099
Change-Id: I2e3548eca2f5434e8cece64c22aaf80d1cd8badf
Andreas Gampe [Thu, 20 Mar 2014 03:42:42 +0000 (03:42 +0000)]
Merge "Some more ARM64 tests that are invalid at the moment"
Andreas Gampe [Thu, 20 Mar 2014 03:41:16 +0000 (20:41 -0700)]
Some more ARM64 tests that are invalid at the moment
Change-Id: I7e5a3c093bb0b0fd04ef588946f8b843993f6d4e
Andreas Gampe [Thu, 20 Mar 2014 03:00:17 +0000 (03:00 +0000)]
Merge "Parts of ARM64 should not be enabled, yet"
Andreas Gampe [Thu, 20 Mar 2014 02:51:17 +0000 (19:51 -0700)]
Parts of ARM64 should not be enabled, yet
The managed register test exercises tests that are supposed to hold
in the final product, but the infrastructure is not at that point yet.
Change-Id: I32bee942a13819620d9f6b1c0d9a8a14c9951764
Brian Carlstrom [Thu, 20 Mar 2014 01:56:39 +0000 (01:56 +0000)]
Merge "Fix test-art 083-compiler-regressions with work around"
Brian Carlstrom [Thu, 20 Mar 2014 01:34:17 +0000 (18:34 -0700)]
Fix test-art 083-compiler-regressions with work around
(cherry picked from commit
cac04f21b35152c3f6e5c09b6699685255491b4a)
Change-Id: I99f66c7531a61f36328db607a961137a6345cbe0
Hiroshi Yamauchi [Thu, 20 Mar 2014 01:10:26 +0000 (01:10 +0000)]
Merge "Make test-art pass with heap reference poisoning enabled."
Andreas Gampe [Thu, 20 Mar 2014 00:20:21 +0000 (00:20 +0000)]
Merge "AArch64: Add arm64 runtime support."
Stuart Monteith [Wed, 12 Mar 2014 13:32:32 +0000 (13:32 +0000)]
AArch64: Add arm64 runtime support.
Adds support for arm64 to ART. Assembler stubs are sufficient for
down calls into interpreter. JNI compiler and generics are not finished.
Basic Generic JNI functionality.
Change-Id: I4a07c79d1e037b9f5746673480e32cf456867b82
Mathieu Chartier [Wed, 19 Mar 2014 22:58:23 +0000 (22:58 +0000)]
Merge "Optimize stack overflow handling."
buzbee [Wed, 19 Mar 2014 22:45:41 +0000 (22:45 +0000)]
Merge "Fix Quick compiler "out of registers""
buzbee [Wed, 19 Mar 2014 19:28:16 +0000 (12:28 -0700)]
Fix Quick compiler "out of registers"
There are a few places in the Arm backend that expect to be
able to survive on a single temp register - in particular
entry code generation and argument passing. However, in the
case of a very large frame and floating point ld/st, the
existing code could end up using 2 temps.
In short, if there is a displacement overflow we try to use
indexed load/store instructions (slightly more efficient).
However, there are none for floating point - so we ended up
burning yet another register to construct a direct pointer.
This CL detects this case and doesn't try to use the indexed
load/store mechanism for floats.
Fix for https://code.google.com/p/android/issues/detail?id=67349
Change-Id: I1ea596ea660e4add89fd4fddb8cbf99a54fbd343
Mathieu Chartier [Wed, 19 Mar 2014 17:17:28 +0000 (10:17 -0700)]
Optimize stack overflow handling.
We now subtract the frame size from the stack pointer for methods
which have a frame smaller than a certain size. Also changed code to
use slow paths instead of launchpads.
Delete kStackOverflow launchpad since it is no longer needed.
ARM optimizations:
One less move per stack overflow check (without fault handler for
stack overflows). Use ldr pc instead of ldr r12, b r12.
Code size (boot.oat):
Before:
58405348
After:
57803236
TODO: X86 doesn't have the case for large frames. This could case an
incoming signal to go past the end of the stack (unlikely however).
Change-Id: Ie3a5635cd6fb09de27960e1f8cee45bfae38fb33
Hiroshi Yamauchi [Wed, 19 Mar 2014 19:57:56 +0000 (12:57 -0700)]
Make test-art pass with heap reference poisoning enabled.
Heap reference poisoning is currently interpreter only. This change
disables one compiler driver test that actually invokes compiled code
if heap reference poisoning is enabled.
Bug:
12687968
Change-Id: Ia9516f4067d84e9a4de50d9ff44cfbe38f282d16
Sebastien Hertz [Wed, 19 Mar 2014 17:16:50 +0000 (18:16 +0100)]
Fix thread suspension in ObjectReference.MonitorInfo JDWP command.
Uses ThreadList::SuspendAll and ThreadList::ResumeAll to suspend/resume all
the threads so we collect monitor info while all threads are suspended.
Bug:
13528439
Change-Id: I81ad0698a759cae428aa6a0149dafda3db4cd198
Nicolas Geoffray [Wed, 19 Mar 2014 08:52:14 +0000 (08:52 +0000)]
Merge "Run Java tests with the optimizing compiler."
Nicolas Geoffray [Tue, 18 Mar 2014 17:59:20 +0000 (17:59 +0000)]
Run Java tests with the optimizing compiler.
Also fix a vector.reserve -> vector.resize braino, and build
a GC map that dex2oat expects.
Change-Id: I6acf2f90a4c32f90b79bf7709bf2e43931b98757
Jean Christophe Beyler [Thu, 13 Mar 2014 21:54:59 +0000 (14:54 -0700)]
ART: API changes
- Moved AppendMIR to BasicBlock
- Moved PrependMIR to BasicBlock
- Moved InsertMIRAfter to BasicBlock
- Moved GetNextUnconditionalMir to BasicBlock
Change-Id: Id261434e9f7d5d93f1bce0c87c9276a20077c483
Signed-off-by: Jean Christophe Beyler <jean.christophe.beyler@intel.com>
Mathieu Chartier [Tue, 18 Mar 2014 20:46:21 +0000 (20:46 +0000)]
Merge "Fix stack overflow for mutual recursion."
Brian Carlstrom [Fri, 14 Mar 2014 01:10:08 +0000 (18:10 -0700)]
Fix stack overflow for mutual recursion.
There was an error where we would have a pc that was in the method
which generated the stack overflow. This didn't work however
because the stack overflow check was before we stored the method in
the stack. The result was that the stack overflow handler had a PC
which wasnt necessarily in the method at the top of the stack. This
is now fixed by always restoring the link register before branching
to the throw entrypoint.
Slight code size regression on ARM/Mips (unmeasured). Regression on ARM
is 4 bytes of code per stack overflow check. Some of this regression is
mitigated by having one less GC safepoint.
Also adds test case for StackOverflowError issue (from bdc).
Tests passing: ARM, X86, Mips
Phone booting: ARM
Bug: https://code.google.com/p/android/issues/detail?id=66411
Bug:
12967914
Change-Id: I96fe667799458b58d1f86671e051968f7be78d5d
(cherry-picked from
c0f96d03a1855fda7d94332331b94860404874dd)
Hiroshi Yamauchi [Tue, 18 Mar 2014 18:29:22 +0000 (18:29 +0000)]
Merge "Use the card table to speed up the GSS collector."
Vladimir Marko [Tue, 18 Mar 2014 16:27:20 +0000 (16:27 +0000)]
Merge "Early inlining of simple methods."
Vladimir Marko [Thu, 2 Jan 2014 16:40:37 +0000 (16:40 +0000)]
Early inlining of simple methods.
Inlining "special" methods: empty methods, methods returning
constants or their arguments, simple getters and setters.
Bug:
8164439
Change-Id: I8c7fa9c14351fbb2470000b378a22974daaef236
Sebastien Hertz [Tue, 18 Mar 2014 11:19:52 +0000 (12:19 +0100)]
Do not send JDWP data in case of error.
When sending JDWP reply packet with an error, we want to ignore any data in the
buffer. While we reflect that in the packet's length (first 4 bytes), we used
to send all data in the buffer. This causes the receiver to read malformed JDWP
packet.
This CL adds "length" argument to JdwpNetStateBase::WritePacket so we control
the amount of data we send. If the reply has no error, it is set to the length
of the buffer. Otherwise it is the length of JDWP packet header indicating no
data is available.
Bug:
13366758
Change-Id: Ib72c10d5faf065fb44901c34b2732496b6667efa
Nicolas Geoffray [Tue, 18 Mar 2014 12:00:54 +0000 (12:00 +0000)]
Merge "Fix lint error, and Makefile that could be confused with local files."
Nicolas Geoffray [Tue, 18 Mar 2014 11:58:24 +0000 (11:58 +0000)]
Fix lint error, and Makefile that could be confused with local files.
Change-Id: I780cc0d6593eadd6f82e1126d7ad445894af666c
Nicolas Geoffray [Tue, 18 Mar 2014 11:25:25 +0000 (11:25 +0000)]
Merge "Plug new optimizing compiler in compilation pipeline."
Nicolas Geoffray [Mon, 17 Mar 2014 10:20:19 +0000 (10:20 +0000)]
Plug new optimizing compiler in compilation pipeline.
Also rename accessors to ART's conventions.
Change-Id: I344807055b98aa4b27215704ec362191464acecc
Nicolas Geoffray [Tue, 18 Mar 2014 08:55:39 +0000 (08:55 +0000)]
Merge "ART change: Script is using function(), which is bash specific."
Ian Rogers [Mon, 17 Mar 2014 23:55:16 +0000 (23:55 +0000)]
Merge "Fix comment typo."
Ian Rogers [Mon, 17 Mar 2014 23:51:53 +0000 (16:51 -0700)]
Fix comment typo.
Change-Id: Ib03f4e5dbdf380f9c94f7a18c1ea755b03c1fe3e
Andreas Gampe [Mon, 17 Mar 2014 20:05:40 +0000 (20:05 +0000)]
Merge "Quick typo fix in the 4GB lowmem code"
Andreas Gampe [Mon, 17 Mar 2014 19:57:08 +0000 (12:57 -0700)]
Quick typo fix in the 4GB lowmem code
Change-Id: I3371776b0468cd8690e3811c7a1e57f5444e9d8f
Andreas Gampe [Mon, 17 Mar 2014 18:33:38 +0000 (18:33 +0000)]
Merge "AArch64: Add memory allocation in low 4GB"
Ian Rogers [Mon, 17 Mar 2014 18:33:12 +0000 (18:33 +0000)]
Merge "Test code generation for field accesses."
Stuart Monteith [Wed, 12 Mar 2014 12:44:01 +0000 (12:44 +0000)]
AArch64: Add memory allocation in low 4GB
MAP_32BIT is implemented for only x86_64. Other 64bit platforms
don't have an equivalent.
This is a unsophisticated implemention of a scheme using msync and
MAP_FIXED to reproduce the functionality of MAP_32BIT.
Adds MAP_FIXED to RemapAtEnd, as the address used for the new mmap
doesn't get located correctly without it on aarch64.
Add MemMap::next_mem_pos_ to store last position. Add a safety assert.
Change-Id: I61871ff7fc327554c43e1d7f448c3d376490f1ea
Nicolas Geoffray [Mon, 17 Mar 2014 18:26:00 +0000 (18:26 +0000)]
ART change: Script is using function(), which is bash specific.
Change-Id: Ieb2a9674c95aafadbdb26c060f186f3f2d0f5e15
Ian Rogers [Mon, 17 Mar 2014 17:33:19 +0000 (10:33 -0700)]
Test code generation for field accesses.
Bug:
11549140
Change-Id: I33e6fa16a7b53b61807395eb41b9c0483654137b
Vladimir Marko [Mon, 17 Mar 2014 15:07:45 +0000 (15:07 +0000)]
Merge "Class initialization check elimination."
Vladimir Marko [Fri, 17 Jan 2014 17:49:33 +0000 (17:49 +0000)]
Class initialization check elimination.
Also, move null check elimination temporaries to the
ScopedArenaAllocator and reuse the same variables in the
class initialization check elimination.
Change-Id: Ic746f95427065506fa6016d4931e4cb8b34937af
Sebastien Hertz [Mon, 17 Mar 2014 08:23:53 +0000 (08:23 +0000)]
Merge "Fix debugger crash in native method frames."
Sebastien Hertz [Tue, 11 Mar 2014 14:26:35 +0000 (15:26 +0100)]
Fix debugger crash in native method frames.
The main crash happens when we try to read (StackFrame::GetValues) or write
(StackFrame::SetValues) values in native frames. We use the method's vmap to
know where Dalvik registers live but native methods don't have vmap. The fix
is to reply with the OPAQUE_FRAME error which indicates local values are not
accessible in the frame.
We prevent from dereferencing null code item which causes some crashes too.
This happens when we compute the line table (Method::LineTable) and variable
table (Method::VariableTable) of methods without code: native, proxy and
abstract methods. We do not expect to encounter abstract methods though. We
take care of these kinds of method when mangling/demangling local value slots.
We also fix the location's pc of native and proxy frames where it must be -1
(as 8-byte value). We'll use this property to detect such frames in the JDWP
tests.
Bug:
13366758
Change-Id: I78e3263fbf2681b5573571c846390d52b9193849
Sebastien Hertz [Mon, 17 Mar 2014 07:34:49 +0000 (07:34 +0000)]
Merge "Fix reg type merging in the verifier"
Brian Carlstrom [Sun, 16 Mar 2014 01:46:07 +0000 (01:46 +0000)]
Merge "include <float.h> for DBL_MAX and DBL_MIN"
Brian Carlstrom [Fri, 14 Mar 2014 23:11:43 +0000 (16:11 -0700)]
include <float.h> for DBL_MAX and DBL_MIN
(cherry picked from commit
8ab83604ac129a654e54d2d000cc47203394e30b)
Change-Id: Id4b3000324908028dc6557a69195064d4a7fb233
Bill Buzbee [Sat, 15 Mar 2014 16:23:55 +0000 (16:23 +0000)]
Merge "Remove duplicated register load in function call to quick entry."
Bill Buzbee [Sat, 15 Mar 2014 16:23:34 +0000 (16:23 +0000)]
Merge "ARM: Do not allocate temp registers in MulLong if possible."
Brian Carlstrom [Sat, 15 Mar 2014 00:57:39 +0000 (00:57 +0000)]
Merge "Fix build."
Hiroshi Yamauchi [Fri, 7 Mar 2014 21:59:08 +0000 (13:59 -0800)]
Use the card table to speed up the GSS collector.
Scan only dirty cards, as opposed to the whole space, to find
references from the non-moving spaces to the bump pointer spaces at
bump pointer space only collections.
With this change, the Ritz MemAllocTest speeds up by 8-10% on host and
2-3% on N4. The Ritz EvaluateFibonacci speeds up by 8% and its average
pause time is reduced by 43% on N4.
Bug:
11650816
Change-Id: I1eefe75776bc37e24673b301ffa65a25f9bd4cde
Brian Carlstrom [Fri, 14 Mar 2014 23:44:59 +0000 (23:44 +0000)]
Merge "Make MemMap::MapAnonymous() fail if the requested address is not available."
Hiroshi Yamauchi [Thu, 13 Mar 2014 22:10:27 +0000 (15:10 -0700)]
Make MemMap::MapAnonymous() fail if the requested address is not available.
Change MapAnonymous() so that a requested address vs. actual map
address mismatch will cause a failure. The existing MapAnonymous()
call sites do not check this. This should prevent potential rare case
bugs where mmap does not happen to map a region at an specified
address.
There's a potential bug that if MapAnonymous() does not guarantee the
requested address (and there's a gap between the image/oat files and
the zygote/malloc space), then GC could in theory allocate a large
object space in the gap. This would break the GC notion of the immune
space. This change will prevent this by causing all non-moving spaces
to be (really) adjacent, with no gaps in between, which CL 87711
missed.
Change-Id: Id4adb0e30adbad497334d7e00def4c0c66b15719
Ian Rogers [Fri, 14 Mar 2014 21:39:56 +0000 (21:39 +0000)]
Merge "Remove unused variable and tidy test #includes."
Ian Rogers [Fri, 14 Mar 2014 21:37:59 +0000 (14:37 -0700)]
Remove unused variable and tidy test #includes.
Change-Id: I0eaeea0d50f66302d632aab400cfa48dc301ef69
Ian Rogers [Fri, 14 Mar 2014 21:17:17 +0000 (21:17 +0000)]
Merge "x86-64 disassembler support."
Ian Rogers [Fri, 14 Mar 2014 21:06:14 +0000 (14:06 -0700)]
x86-64 disassembler support.
Change-Id: I0ae39ae1ffdae2500ff368354f9e4702445176f0
Robert Craig [Fri, 14 Mar 2014 17:48:45 +0000 (13:48 -0400)]
Fix build.
Patch helps fix the following build breakage.
art/runtime/native/dalvik_system_Zygote.cc:173:3: error: unknown type name 'rlimit'
rlimit rlim;
Change-Id: I5f6fb29ae71e8819dcdb42eee986f896d856f712
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Ian Rogers [Fri, 14 Mar 2014 20:43:01 +0000 (20:43 +0000)]
Merge "Use quick generic JNI calls based on compiler driver options."
Ian Rogers [Fri, 14 Mar 2014 20:31:37 +0000 (20:31 +0000)]
Merge "Work-around GCC polymorphism problems."
Ian Rogers [Fri, 14 Mar 2014 20:29:43 +0000 (13:29 -0700)]
Work-around GCC polymorphism problems.
Change-Id: Ica1d8e6840cdd9ba493405e66c1728b5da9540a2
Ian Rogers [Fri, 14 Mar 2014 20:20:26 +0000 (13:20 -0700)]
Use quick generic JNI calls based on compiler driver options.
Change-Id: Ic70f4b9b5759eb11b35677c0039fb00eb1c4c506
Ian Rogers [Fri, 14 Mar 2014 19:01:17 +0000 (19:01 +0000)]
Merge "64bit build fix."
Ian Rogers [Fri, 14 Mar 2014 19:00:39 +0000 (12:00 -0700)]
64bit build fix.
Change-Id: I8c597217955d12b215bdcf1d92ca5fab9a7ed6e0
Zheng Xu [Thu, 13 Mar 2014 13:40:30 +0000 (13:40 +0000)]
ARM: Do not allocate temp registers in MulLong if possible.
Just use rl_result if we have enough registers and it is *not* either operand.
Change-Id: I5a6f3ec09653b97e41bbc6dce823aa8534f98a13
Zheng Xu [Thu, 13 Mar 2014 18:00:21 +0000 (18:00 +0000)]
Remove duplicated register load in function call to quick entry.
CallRuntimeHelperRegLocation() will load parameter to registers for native call, but
GenConversionCall() duplicates the work before it call CallRuntimeHelperRegLocation().
Instructions generated before patch:
0xf731007e:
f8d9e25c ldr.w lr, [r9, #604] ; pF2l
0xf7310082:
ee180a10 vmov.f32 r0, s16
0xf7310086:
ee180a10 vmov.f32 r0, s16
0xf731008a: 47f0 blx lr
After:
0xf739707e:
f8d9e25c ldr.w lr, [r9, #604] ; pF2l
0xf7397082:
ee180a10 vmov.f32 r0, s16
0xf7397086: 47f0 blx lr
Change-Id: I1868aefa4703a0f8133eaac707f5b80f01293cb8
Ian Rogers [Fri, 14 Mar 2014 18:29:45 +0000 (18:29 +0000)]
Merge "Refactor reflective method invocation."
Ian Rogers [Fri, 14 Mar 2014 06:45:53 +0000 (23:45 -0700)]
Refactor reflective method invocation.
Move invocation code out of JNI internal into reflection, including ArgArray
code. Make reflective invocation use the ArgArray to build arguments rather
than allocating a jvalue[] and unboxing arguments into that.
Move reflection part of jni_internal_test into reflection_test.
Make greater use of fast JNI.
Change-Id: Ib381372df5f9a83679e30e7275de24fa0e6b1057