diff options
| author | 2014-01-27 18:01:39 +0100 | |
|---|---|---|
| committer | 2014-01-28 18:18:14 +0100 | |
| commit | abff6439db28fbbed95490bfff7e24d1fdf5b771 (patch) | |
| tree | 6ed749056b1d2e29f2bdf81c13e80e15849e9836 /compiler/driver/compiler_driver.cc | |
| parent | 7ea5dafc81b2bba7cabad26130bb75dc8f709803 (diff) | |
Refactor array access for the interpreter.
Adds GetWithoutChecks and SetWithoutChecks methods in PrimitiveArray and use
them in the interpreter. Updates Get and Set methods to rely on them and adds
some DCHECK to control exception flow.
Renames IsValidIndex into CheckIsValidIndex to reflect it can throw an
exception. It's also more consistent with ObjectArray::CheckIsAssignable.
Make ThrowArrayIndexOutOfBoundsException private in Array since it's only used
by Array::CheckIsValidIndex.
Updates DoFilledNewArray to use SetWithoutChecks rather than Set.
Change-Id: I2fd314d77a67cf969843d499b86d04ca7b7a43e6
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
0 files changed, 0 insertions, 0 deletions