diff options
author | 2016-05-10 14:30:06 +0000 | |
---|---|---|
committer | 2016-05-10 14:30:06 +0000 | |
commit | 36a94ab70d4ae1ce239022a5841abf3ffe1196e3 (patch) | |
tree | c7f7cf4fffc082280d194117af52ebc6620f36be /compiler/optimizing/code_generator.h | |
parent | 450a6796beba9aced022e1a917390f9b910e6cb7 (diff) | |
parent | dce016eab87302f02b0bd903dd2cd86ae512df2d (diff) |
Merge "Intrinsify String.length() and String.isEmpty() as HIR."
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r-- | compiler/optimizing/code_generator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index d69c41055b..6e75e3bb2e 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -340,6 +340,11 @@ class CodeGenerator : public DeletableArenaObject<kArenaAllocCodeGenerator> { // Pointer variant for ArtMethod and ArtField arrays. size_t GetCachePointerOffset(uint32_t index); + // Helper that returns the offset of the array's length field. + // Note: Besides the normal arrays, we also use the HArrayLength for + // accessing the String's `count` field in String intrinsics. + static uint32_t GetArrayLengthOffset(HArrayLength* array_length); + void EmitParallelMoves(Location from1, Location to1, Primitive::Type type1, |