ART: fix highest PC values removal in SrcMap.DeltaFormat()

The conversion from absolute to offset Line Number Table values mistakenly
removed all values less than the highest one, which resulted in clearing
all the table.

The fix is to use the reverse condition finding the highest correct PC
value in the sorted table.

Change-Id: I9850c2c46c1910b809043dd8163eb930a7849ded
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
Fix a bug in the register allocator.

We need to take the live interval that starts first to know
until when a register is free, instead of using the live interval
that is last in the inactive list.

Change-Id: I2c9f87481ff1b4fc7b9948db7559b8d3b11d84ce
Merge "Fix a bug in the register allocator."
Merge "ART: fix highest PC values removal in SrcMap.DeltaFormat()"
Check for errors in ThreadGroupReference JDWP commands

Returns INVALID_OBJECT error for null or invalid object. Also returns
INVALID_THREAD_GROUP error when the object is not a java.lang.ThreadGroup.

Removes unused Dbg::GetMainThreadGroupId method.

Bug: 17503230
Change-Id: Ifae39b0280633836655b22fc212018cb06b65c6c
Revert "Revert "Implement suspend checks in new compiler.""

This reverts commit 7e3652c45c30c1f2f840e6088e24e2db716eaea7.

Change-Id: Ib489440c34e41cba9e9e297054f9274f6e81a2d8
Merge "Revert "Revert "Implement suspend checks in new compiler."""
ART: Check for exceptions from unresolved classes

In no-verify mode, classes may be unresolved because of missing
dependencies. Ignore and clear the exception.

Bug: 17506140
Change-Id: I70602b089e6631b1e177dbe8316c5fefdaf777a0
(cherry picked from commit ba354a97a9742774f57bad7f96ccae2dbbd59f75)
Merge "ART: Check for exceptions from unresolved classes"
Avoid printing absolute addresses in oatdump

- Added printing of OatClass offsets.
- Added printing of OatMethod offsets.
- Added bounds checks for code size size, code size, mapping table, gc map, vmap table.
- Added sanity check of 100k for code size.
- Added partial disassembly of questionable code.
- Added --no-disassemble to disable disassembly.
- Added --no-dump:vmap to disable vmap dumping.
- Reordered OatMethod info to be in file order.

Bug: 15567083

(cherry picked from commit 34fa79ece5b3a1940d412cd94dbdcc4225aae72f)

Change-Id: I2c368f3b81af53b735149a866f3e491c9ac33fb8
Merge "Avoid printing absolute addresses in oatdump"
ART: Fix verifier flags for quickened IPUT

iput-boolean-quick has fully incorrect flags, the other <4B
instructions are not wide.

Change-Id: Ida7353dda19a53e8233bf5e3d1e75bf244feb934
ART: Fix method verifier dumping

Do not try to dump on hard failure.

Bug: 15567083
Change-Id: I6278f551f8a9dc7411087e214023dd4d142d1d26
Merge "ART: Fix verifier flags for quickened IPUT"
Add runtime options for large object space

Adds the two following options:
Option -XX:LargeObjectSpace={freelist, map, disabled}
Option -XX:LargeObjectThreshold=size specifies the size for which
primitive arrays are allocated in the large object space.

Added handling for large object space == null in collectors.

Fixed an error in the mem map space where we didn't use the page
aligned size LOS for bytes allocated, this resutled in heaps appearing
a bit smaller than they should be.

Change-Id: I6f17c3534b59e7dc68cd375153e7a846799b3da4
Merge "Add runtime options for large object space"
Merge "ART: Fix method verifier dumping"
Implement invoke virtual in optimizing compiler.

Also refactor 004 tests to make them work with both Quick and
Optimizing.

Change-Id: I87e275cb0ae0258fc3bb32b612140000b1d2adf8
Merge "Implement invoke virtual in optimizing compiler."
Fix lint error.

Change-Id: Idd5b1f621f4dfaff717795cdbe76d8732b17aa9e