OSDN Git Service

android-x86/art.git
10 years agoRun 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

10 years agoMerge "Plug new optimizing compiler in compilation pipeline."
Nicolas Geoffray [Tue, 18 Mar 2014 11:25:25 +0000 (11:25 +0000)]
Merge "Plug new optimizing compiler in compilation pipeline."

10 years agoPlug 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

10 years agoMerge "ART change: Script is using function(), which is bash specific."
Nicolas Geoffray [Tue, 18 Mar 2014 08:55:39 +0000 (08:55 +0000)]
Merge "ART change: Script is using function(), which is bash specific."

10 years agoMerge "Fix comment typo."
Ian Rogers [Mon, 17 Mar 2014 23:55:16 +0000 (23:55 +0000)]
Merge "Fix comment typo."

10 years agoFix comment typo.
Ian Rogers [Mon, 17 Mar 2014 23:51:53 +0000 (16:51 -0700)]
Fix comment typo.

Change-Id: Ib03f4e5dbdf380f9c94f7a18c1ea755b03c1fe3e

10 years agoMerge "Quick typo fix in the 4GB lowmem code"
Andreas Gampe [Mon, 17 Mar 2014 20:05:40 +0000 (20:05 +0000)]
Merge "Quick typo fix in the 4GB lowmem code"

10 years agoQuick 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

10 years agoMerge "AArch64: Add memory allocation in low 4GB"
Andreas Gampe [Mon, 17 Mar 2014 18:33:38 +0000 (18:33 +0000)]
Merge "AArch64: Add memory allocation in low 4GB"

10 years agoMerge "Test code generation for field accesses."
Ian Rogers [Mon, 17 Mar 2014 18:33:12 +0000 (18:33 +0000)]
Merge "Test code generation for field accesses."

10 years agoAArch64: Add memory allocation in low 4GB
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

10 years agoART change: Script is using function(), which is bash specific.
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

10 years agoTest code generation for field accesses.
Ian Rogers [Mon, 17 Mar 2014 17:33:19 +0000 (10:33 -0700)]
Test code generation for field accesses.

Bug: 11549140
Change-Id: I33e6fa16a7b53b61807395eb41b9c0483654137b

10 years agoMerge "Class initialization check elimination."
Vladimir Marko [Mon, 17 Mar 2014 15:07:45 +0000 (15:07 +0000)]
Merge "Class initialization check elimination."

10 years agoClass 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

10 years agoMerge "Fix debugger crash in native method frames."
Sebastien Hertz [Mon, 17 Mar 2014 08:23:53 +0000 (08:23 +0000)]
Merge "Fix debugger crash in native method frames."

10 years agoFix 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

10 years agoMerge "Fix reg type merging in the verifier"
Sebastien Hertz [Mon, 17 Mar 2014 07:34:49 +0000 (07:34 +0000)]
Merge "Fix reg type merging in the verifier"

10 years agoMerge "include <float.h> for DBL_MAX and DBL_MIN"
Brian Carlstrom [Sun, 16 Mar 2014 01:46:07 +0000 (01:46 +0000)]
Merge "include <float.h> for DBL_MAX and DBL_MIN"

10 years agoinclude <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

10 years agoMerge "Remove duplicated register load in function call to quick entry."
Bill Buzbee [Sat, 15 Mar 2014 16:23:55 +0000 (16:23 +0000)]
Merge "Remove duplicated register load in function call to quick entry."

10 years agoMerge "ARM: Do not allocate temp registers in MulLong if possible."
Bill Buzbee [Sat, 15 Mar 2014 16:23:34 +0000 (16:23 +0000)]
Merge "ARM: Do not allocate temp registers in MulLong if possible."

10 years agoMerge "Fix build."
Brian Carlstrom [Sat, 15 Mar 2014 00:57:39 +0000 (00:57 +0000)]
Merge "Fix build."

10 years agoMerge "Make MemMap::MapAnonymous() fail if the requested address is not available."
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."

10 years agoMake 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

10 years agoMerge "Remove unused variable and tidy test #includes."
Ian Rogers [Fri, 14 Mar 2014 21:39:56 +0000 (21:39 +0000)]
Merge "Remove unused variable and tidy test #includes."

10 years agoRemove 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

10 years agoMerge "x86-64 disassembler support."
Ian Rogers [Fri, 14 Mar 2014 21:17:17 +0000 (21:17 +0000)]
Merge "x86-64 disassembler support."

10 years agox86-64 disassembler support.
Ian Rogers [Fri, 14 Mar 2014 21:06:14 +0000 (14:06 -0700)]
x86-64 disassembler support.

Change-Id: I0ae39ae1ffdae2500ff368354f9e4702445176f0

10 years agoFix build.
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>
10 years agoMerge "Use quick generic JNI calls based on compiler driver options."
Ian Rogers [Fri, 14 Mar 2014 20:43:01 +0000 (20:43 +0000)]
Merge "Use quick generic JNI calls based on compiler driver options."

10 years agoMerge "Work-around GCC polymorphism problems."
Ian Rogers [Fri, 14 Mar 2014 20:31:37 +0000 (20:31 +0000)]
Merge "Work-around GCC polymorphism problems."

10 years agoWork-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

10 years agoUse quick generic JNI calls based on compiler driver options.
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

10 years agoMerge "64bit build fix."
Ian Rogers [Fri, 14 Mar 2014 19:01:17 +0000 (19:01 +0000)]
Merge "64bit build fix."

10 years ago64bit build fix.
Ian Rogers [Fri, 14 Mar 2014 19:00:39 +0000 (12:00 -0700)]
64bit build fix.

Change-Id: I8c597217955d12b215bdcf1d92ca5fab9a7ed6e0

10 years agoARM: Do not allocate temp registers in MulLong if possible.
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

10 years agoRemove duplicated register load in function call to quick entry.
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

10 years agoMerge "Refactor reflective method invocation."
Ian Rogers [Fri, 14 Mar 2014 18:29:45 +0000 (18:29 +0000)]
Merge "Refactor reflective method invocation."

10 years agoRefactor 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

10 years agoMerge "Refactor reference code into mirror namespace."
Mathieu Chartier [Fri, 14 Mar 2014 17:16:15 +0000 (17:16 +0000)]
Merge "Refactor reference code into mirror namespace."

10 years agoRefactor reference code into mirror namespace.
Mathieu Chartier [Thu, 13 Mar 2014 19:22:56 +0000 (12:22 -0700)]
Refactor reference code into mirror namespace.

Added two new files: mirror/reference.h and mirror/reference-inl.h.

Change-Id: Ibe3ff6379aef7096ff130594535b7f7c0b7dabce

10 years agoFix reg type merging in the verifier
Sebastien Hertz [Fri, 14 Mar 2014 16:58:54 +0000 (17:58 +0100)]
Fix reg type merging in the verifier

Fixes bad merging of float, long and double reg types with constant types. Adds
merging tests in reg_type_test.

Bug: https://code.google.com/p/android/issues/detail?id=66434
Bug: 13464407
Change-Id: I56761f5f5562b742d0ef9cc66b58d55f7b668949

10 years agoMerge "Add dependency for operations with x86 FPU stack"
Bill Buzbee [Fri, 14 Mar 2014 15:51:35 +0000 (15:51 +0000)]
Merge "Add dependency for operations with x86 FPU stack"

10 years agoMerge "Remove small duplicate code in Generic JNI handling, add comments"
Andreas Gampe [Fri, 14 Mar 2014 15:32:12 +0000 (15:32 +0000)]
Merge "Remove small duplicate code in Generic JNI handling, add comments"

10 years agoRemove small duplicate code in Generic JNI handling, add comments
Andreas Gampe [Fri, 14 Mar 2014 14:52:20 +0000 (07:52 -0700)]
Remove small duplicate code in Generic JNI handling, add comments

Change-Id: Ib276fa63b6a00480eaaff6c352d37917c61e966c

10 years agoMerge "mips has no sa_restorer."
Narayan Kamath [Fri, 14 Mar 2014 13:04:07 +0000 (13:04 +0000)]
Merge "mips has no sa_restorer."

10 years agomips has no sa_restorer.
Narayan Kamath [Fri, 14 Mar 2014 12:53:43 +0000 (12:53 +0000)]
mips has no sa_restorer.

This change should be a no-op, because we're not using
it anyway. FaultManager doesn't seem designed for inheritance,
so I can't put this in an arch specific subclass.

Change-Id: I2eaabdf2a77ef558c59139344f8654cf3ccafa86

10 years agoMerge "Fix path for arch/mips/fault_handler_mips.cc"
Brian Carlstrom [Fri, 14 Mar 2014 03:30:54 +0000 (03:30 +0000)]
Merge "Fix path for arch/mips/fault_handler_mips.cc"

10 years agoFix path for arch/mips/fault_handler_mips.cc
Brian Carlstrom [Fri, 14 Mar 2014 03:27:42 +0000 (20:27 -0700)]
Fix path for arch/mips/fault_handler_mips.cc

Change-Id: I4af53b2d1f34641e2c5b68474f80f88613a51bbe

10 years agoAdd dependency for operations with x86 FPU stack
Serguei Katkov [Wed, 12 Mar 2014 08:56:54 +0000 (15:56 +0700)]
Add dependency for operations with x86 FPU stack

Load Hoisting optimization can re-order operations with
FPU stack due to no dependency set.

Patch adds resource dependency between these operations.

Change-Id: Iccce98c8f3c565903667c03803884d9de1281ea8
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
10 years agoMerge "Avoid bus error from reading unaligned 64-bit literal"
Brian Carlstrom [Fri, 14 Mar 2014 01:25:11 +0000 (01:25 +0000)]
Merge "Avoid bus error from reading unaligned 64-bit literal"

10 years agoMerge "Fix heap trimming logic."
Mathieu Chartier [Thu, 13 Mar 2014 22:46:42 +0000 (22:46 +0000)]
Merge "Fix heap trimming logic."

10 years agoFix heap trimming logic.
Mathieu Chartier [Thu, 13 Mar 2014 21:46:09 +0000 (14:46 -0700)]
Fix heap trimming logic.

The new heap trimming logic introduced in the c/84301 was not very
good since the heap trim would get avoided since the daemon thread
was coming to the heap trimming code before the scheduled time.

The new logic is to do the heap trim if the last heap trim occurred
more than kHeapTrimWait ns ago.

Change-Id: I9d0e6766bf0c68e5f7fb15fb059140e1f1264216

10 years agoMerge "Fixes for Generic JNI"
Andreas Gampe [Thu, 13 Mar 2014 22:21:55 +0000 (22:21 +0000)]
Merge "Fixes for Generic JNI"

10 years agoFixes for Generic JNI
Andreas Gampe [Thu, 13 Mar 2014 01:07:19 +0000 (18:07 -0700)]
Fixes for Generic JNI

This fixes some linking issues and native code retrieval errors.
All host tests are functional with this change.

Make ArtMethod::GetFrameSizeInBytes() templated to bypass the
embedded sanity check. Necessary for fix-up decision.

Add ArtMethod metadata fix-up code to ClassLinker::LinkCode.
Necessitates new parameters to access the shorty and compute
the frame size.

Fix handling the JNI dlsym lookup stub in the generic JNI code.

Change-Id: I4173b0fbb1ba5b1bcbee1bb340cfdd08a54767e5

10 years agoAvoid bus error from reading unaligned 64-bit literal
Brian Carlstrom [Thu, 13 Mar 2014 22:12:11 +0000 (15:12 -0700)]
Avoid bus error from reading unaligned 64-bit literal

Change-Id: I5932f130e6a8d31e09ef615e8544ff0e1073ede9

10 years agoMerge "Implicit null/suspend checks (oat version bump)"
Dave Allison [Thu, 13 Mar 2014 19:24:47 +0000 (19:24 +0000)]
Merge "Implicit null/suspend checks (oat version bump)"

10 years agoImplicit null/suspend checks (oat version bump)
Dave Allison [Fri, 21 Feb 2014 00:06:36 +0000 (16:06 -0800)]
Implicit null/suspend checks (oat version bump)

This adds the ability to use SEGV signals
to throw NullPointerException exceptions from Java code rather
than having the compiler generate explicit comparisons and
branches.  It does this by using sigaction to trap SIGSEGV and when triggered
makes sure it's in compiled code and if so, sets the return
address to the entry point to throw the exception.

It also uses this signal mechanism to determine whether to check
for thread suspension.  Instead of the compiler generating calls
to a function to check for threads being suspended, the compiler
will now load indirect via an address in the TLS area.  To trigger
a suspend, the contents of this address are changed from something
valid to 0.  A SIGSEGV will occur and the handler will check
for a valid instruction pattern before invoking the thread
suspension check code.

If a user program taps SIGSEGV it will prevent our signal handler
working.  This will cause a failure in the runtime.

There are two signal handlers at present.  You can control them
individually using the flags -implicit-checks: on the runtime
command line.  This takes a string parameter, a comma
separated set of strings.  Each can be one of:

none        switch off
null        null pointer checks
suspend     suspend checks
all         all checks

So to switch only suspend checks on, pass:
-implicit-checks:suspend

There is also -explicit-checks to provide the reverse once
we change the default.

For dalvikvm, pass --runtime-arg -implicit-checks:foo,bar

The default is -implicit-checks:none

There is also a property 'dalvik.vm.implicit_checks' whose value is the same
string as the command option.  The default is 'none'.  For example to switch on
null checks using the option:

setprop dalvik.vm.implicit_checks null

It only works for ARM right now.

Bumps OAT version number due to change to Thread offsets.

Bug: 13121132
Change-Id: If743849138162f3c7c44a523247e413785677370

10 years agoMerge "Allow patching between dex files in the boot classpath."
Jeff Hao [Thu, 13 Mar 2014 17:55:43 +0000 (17:55 +0000)]
Merge "Allow patching between dex files in the boot classpath."

10 years agoMerge "Refactor immune region logic into its own file."
Mathieu Chartier [Thu, 13 Mar 2014 17:20:47 +0000 (17:20 +0000)]
Merge "Refactor immune region logic into its own file."

10 years agoRefactor immune region logic into its own file.
Mathieu Chartier [Thu, 13 Mar 2014 00:42:10 +0000 (17:42 -0700)]
Refactor immune region logic into its own file.

Added immune_region.cc/.h in the collector directory. Changed the
functionality to no longer assume spaces are added to immune region
in ascending order.

Change-Id: Id1d643b3849ad2695e8a151dbbb74a5035644472

10 years agoMerge "Fix debugger crashes in presence of proxy objects."
Sebastien Hertz [Thu, 13 Mar 2014 16:16:13 +0000 (16:16 +0000)]
Merge "Fix debugger crashes in presence of proxy objects."

10 years agoMerge "Implement FINAL/OVERRIDE for clang."
Ian Rogers [Thu, 13 Mar 2014 16:13:20 +0000 (16:13 +0000)]
Merge "Implement FINAL/OVERRIDE for clang."

10 years agoImplement FINAL/OVERRIDE for clang.
Ian Rogers [Thu, 13 Mar 2014 16:02:55 +0000 (09:02 -0700)]
Implement FINAL/OVERRIDE for clang.

Separate declaration from definition in certain places to work-around issues
with clang.
Remove bogus lock annotation at definition in compilers.cc that is already
present at the declaration.
Remove duplicate definition of ClassReference.

Change-Id: I5368057bb36319a259110b2198610d9d2b2e5041

10 years agoMerge "Fix thread suspension assertion in debugger."
Sebastien Hertz [Thu, 13 Mar 2014 16:12:08 +0000 (16:12 +0000)]
Merge "Fix thread suspension assertion in debugger."

10 years agoFix thread suspension assertion in debugger.
Sebastien Hertz [Thu, 13 Mar 2014 15:17:40 +0000 (16:17 +0100)]
Fix thread suspension assertion in debugger.

Updates Dbg::GetThreadGroup to ensure we do call EndAssertNoThreadSuspension
after StartAssertNoThreadSuspension and not returning in the middle. Note this
only happens in debug mode where this assertion is enabled.

Also add missing thread safety annotations.

Bug: 13425576
Change-Id: Idb9f32d289038b77771369c1283774676ff433c7

10 years agoMerge "Use LIRSlowPath for intrinsics, improve String.indexOf()."
Vladimir Marko [Thu, 13 Mar 2014 16:00:35 +0000 (16:00 +0000)]
Merge "Use LIRSlowPath for intrinsics, improve String.indexOf()."

10 years agoUse LIRSlowPath for intrinsics, improve String.indexOf().
Vladimir Marko [Thu, 13 Mar 2014 14:11:28 +0000 (14:11 +0000)]
Use LIRSlowPath for intrinsics, improve String.indexOf().

Rewrite intrinsic launchpads to use the LIRSlowPath.
Improve String.indexOf for constant chars by avoiding
the check for code points over 0xFFFF.

Change-Id: I7fd5583214c5b4ab9c38ee36c5d6f003dd6345a8

10 years agoMerge "Bump up stack overflow region for 64bit."
Ian Rogers [Thu, 13 Mar 2014 15:19:04 +0000 (15:19 +0000)]
Merge "Bump up stack overflow region for 64bit."

10 years agoFix debugger crashes in presence of proxy objects.
Sebastien Hertz [Thu, 13 Mar 2014 10:52:31 +0000 (11:52 +0100)]
Fix debugger crashes in presence of proxy objects.

Fix ClassHelper::NumDirectInterfaces to use IfTable::Count instead of the
iftable array's length (which is twice the interface count). This happens when
processing ReferenceType::Interfaces command and was causing a crash.

Return ABSENT_INFORMATION error code when we're asked for the source file of a
proxy class. Otherwise we call ClassHelper::GetSourceFile which expect the
class has a corresponding ClassDef item in the DEX file which is not true for
proxy classes.

Add new proxy_test to check ClassHelper works correctly with proxy classes.

Bug: 13426918
Change-Id: I5c1212b1a697dd7dc1ab18e99552ee113c533a5a

10 years agoMerge "ART's intrinsic for String.indexOf use the incorrect register"
Bill Buzbee [Thu, 13 Mar 2014 13:33:19 +0000 (13:33 +0000)]
Merge "ART's intrinsic for String.indexOf use the incorrect register"

10 years agoMerge "Add dex2oat --print-pass-names and --disable-passes= options."
Vladimir Marko [Thu, 13 Mar 2014 12:10:49 +0000 (12:10 +0000)]
Merge "Add dex2oat --print-pass-names and --disable-passes= options."

10 years agoMerge "Move inline method detection to runtime."
Vladimir Marko [Thu, 13 Mar 2014 10:33:35 +0000 (10:33 +0000)]
Merge "Move inline method detection to runtime."

10 years agoMerge "Fix non-{arm, x86} builds."
Nicolas Geoffray [Thu, 13 Mar 2014 10:30:13 +0000 (10:30 +0000)]
Merge "Fix non-{arm, x86} builds."

10 years agoFix non-{arm, x86} builds.
Nicolas Geoffray [Thu, 13 Mar 2014 10:28:41 +0000 (10:28 +0000)]
Fix non-{arm, x86} builds.

Change-Id: If4c13775f8e1fd0fd26b4a731f3011c77b0bfed1

10 years agoMerge "Fix virt-specifiers outside class definition errors."
Nicolas Geoffray [Thu, 13 Mar 2014 09:59:19 +0000 (09:59 +0000)]
Merge "Fix virt-specifiers outside class definition errors."

10 years agoFix virt-specifiers outside class definition errors.
Nicolas Geoffray [Thu, 13 Mar 2014 09:50:25 +0000 (09:50 +0000)]
Fix virt-specifiers outside class definition errors.

Change-Id: Iab341e12e7a978aff6bc35117e9b15f3b2c2cedd

10 years agoMerge "More code generation for the optimizing compiler."
Nicolas Geoffray [Thu, 13 Mar 2014 09:24:22 +0000 (09:24 +0000)]
Merge "More code generation for the optimizing compiler."

10 years agoMore code generation for the optimizing compiler.
Nicolas Geoffray [Tue, 11 Mar 2014 17:53:17 +0000 (17:53 +0000)]
More code generation for the optimizing compiler.

- Add HReturn instruction
- Generate code for locals/if/return
- Setup infrastructure for register allocation. Currently
  emulate a stack.

Change-Id: Ib28c2dba80f6c526177ed9a7b09c0689ac8122fb

10 years agoMerge "Add command line support for enabling the optimizing compiler."
Nicolas Geoffray [Thu, 13 Mar 2014 09:12:59 +0000 (09:12 +0000)]
Merge "Add command line support for enabling the optimizing compiler."

10 years agoAdd command line support for enabling the optimizing compiler.
Nicolas Geoffray [Fri, 7 Mar 2014 15:28:39 +0000 (15:28 +0000)]
Add command line support for enabling the optimizing compiler.

Also run tests with the optimizing compiler enabled when
the file art/USE_OPTIMIZING_COMPILER is present.

Change-Id: Ibc33eed62a43547bc3b9fe786d014c0d81b5add8

10 years agoART's intrinsic for String.indexOf use the incorrect register
Yevgeny Rouban [Thu, 13 Mar 2014 05:15:58 +0000 (12:15 +0700)]
ART's intrinsic for String.indexOf use the incorrect register

ART's intrinsic for String.indexOf of x86 platform use the incorrect register
to compare start with the string length. It should be fixed.

Change-Id: I22986b4d4b23f62b4bb97baab9fe43152d12145e
Signed-off-by: Vladimir Ivanov <vladimir.a.ivanov@intel.com>
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
10 years agoBump up stack overflow region for 64bit.
Ian Rogers [Thu, 13 Mar 2014 06:35:11 +0000 (23:35 -0700)]
Bump up stack overflow region for 64bit.

Change-Id: Ia57538ae4ae2d13c5c570a8cbdf3f7703b568c87

10 years agoMerge "Fix type of constant to be long."
Ian Rogers [Thu, 13 Mar 2014 01:54:32 +0000 (01:54 +0000)]
Merge "Fix type of constant to be long."

10 years agoFix type of constant to be long.
Ian Rogers [Thu, 13 Mar 2014 01:40:08 +0000 (18:40 -0700)]
Fix type of constant to be long.

Change-Id: Ie6bf60ccfd0517b6e07c7e4461f58c84b4a51fe4

10 years agoAllow patching between dex files in the boot classpath.
Jeff Hao [Wed, 12 Mar 2014 18:05:25 +0000 (11:05 -0700)]
Allow patching between dex files in the boot classpath.

Change-Id: I53f219a5382d0fcd580e96e50025fdad4fc399df

10 years agoMerge "Work-around stack overflow issues."
Andreas Gampe [Thu, 13 Mar 2014 00:02:07 +0000 (00:02 +0000)]
Merge "Work-around stack overflow issues."

10 years agoWork-around stack overflow issues.
Ian Rogers [Wed, 12 Mar 2014 23:23:09 +0000 (16:23 -0700)]
Work-around stack overflow issues.

Change-Id: I06693a53469f1f2cccc956bff5d53f04aed5f62d

10 years agoMerge "Fixing structure of native frame for Generic JNI"
Andreas Gampe [Wed, 12 Mar 2014 22:20:00 +0000 (22:20 +0000)]
Merge "Fixing structure of native frame for Generic JNI"

10 years agoFixing structure of native frame for Generic JNI
Andreas Gampe [Mon, 10 Mar 2014 20:37:40 +0000 (13:37 -0700)]
Fixing structure of native frame for Generic JNI

This changes the layout of the callee-save frame used in generic
JNI to be consistent with the JNI compiler, that is, the SIRT is
inline (above the method reference). Now the location of the
"this" object is consistent.

Change-Id: Ibad0882680712cb640b4c70ada0229ef7cf4e62c

10 years agoMerge "Fix tests for 64b"
Andreas Gampe [Wed, 12 Mar 2014 22:14:25 +0000 (22:14 +0000)]
Merge "Fix tests for 64b"

10 years agoMerge "Improve use of CHECK macros."
Ian Rogers [Wed, 12 Mar 2014 22:01:53 +0000 (22:01 +0000)]
Merge "Improve use of CHECK macros."

10 years agoMerge "Fix oatdump for apps."
Dave Allison [Wed, 12 Mar 2014 21:50:13 +0000 (21:50 +0000)]
Merge "Fix oatdump for apps."

10 years agoImprove use of CHECK macros.
Ian Rogers [Wed, 12 Mar 2014 21:32:27 +0000 (14:32 -0700)]
Improve use of CHECK macros.

Motivated by a bogus compiler warning for debug with O2, switch from
CHECK(x < y) to the recommended CHECK_LT(x, y). Fix bug in
RosAlloc::Initialize where an assignment was being performed within
a DCHECK.

Change-Id: Iaf466849ae79ae1497162e81a3e092bf13109aa9

10 years agoFix tests for 64b
Andreas Gampe [Wed, 12 Mar 2014 21:11:40 +0000 (14:11 -0700)]
Fix tests for 64b

These tests make assumptions about pointer sizes.

Change-Id: Idfd410144393d716ae176a6e9a51c5b414e0888e

10 years agoMerge "Implement proxy support for x86-64."
Ian Rogers [Wed, 12 Mar 2014 19:18:10 +0000 (19:18 +0000)]
Merge "Implement proxy support for x86-64."

10 years agoImplement proxy support for x86-64.
Ian Rogers [Wed, 12 Mar 2014 19:11:54 +0000 (12:11 -0700)]
Implement proxy support for x86-64.

Change-Id: I91490a38347fdee413a191412f07b883654d4229

10 years agoMerge "Set default dex2oat instruction set for x86-64 and ARM64."
Ian Rogers [Wed, 12 Mar 2014 19:07:11 +0000 (19:07 +0000)]
Merge "Set default dex2oat instruction set for x86-64 and ARM64."

10 years agoSet default dex2oat instruction set for x86-64 and ARM64.
Ian Rogers [Wed, 12 Mar 2014 18:51:02 +0000 (11:51 -0700)]
Set default dex2oat instruction set for x86-64 and ARM64.

Change-Id: I43062dfadb8a4f51304fd06f0105d6af81cf0331