diff options
author | Jeff Hao <jeffhao@google.com> | 2014-01-15 13:49:50 -0800 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2015-04-27 18:54:52 -0700 |
commit | 848f70a3d73833fc1bf3032a9ff6812e429661d9 (patch) | |
tree | b0349b3a40aab5a915af491b100659a5ca9fbbf6 /runtime/utf.cc | |
parent | d14438f0c5071962be7fab572b54687d32d9d087 (diff) | |
download | android_art-848f70a3d73833fc1bf3032a9ff6812e429661d9.tar.gz android_art-848f70a3d73833fc1bf3032a9ff6812e429661d9.tar.bz2 android_art-848f70a3d73833fc1bf3032a9ff6812e429661d9.zip |
Replace String CharArray with internal uint16_t array.
Summary of high level changes:
- Adds compiler inliner support to identify string init methods
- Adds compiler support (quick & optimizing) with new invoke code path
that calls method off the thread pointer
- Adds thread entrypoints for all string init methods
- Adds map to verifier to log when receiver of string init has been
copied to other registers. used by compiler and interpreter
Change-Id: I797b992a8feb566f9ad73060011ab6f51eb7ce01
Diffstat (limited to 'runtime/utf.cc')
-rw-r--r-- | runtime/utf.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/utf.cc b/runtime/utf.cc index 3d13c3e492..10600e2153 100644 --- a/runtime/utf.cc +++ b/runtime/utf.cc @@ -107,15 +107,6 @@ void ConvertUtf16ToModifiedUtf8(char* utf8_out, const uint16_t* utf16_in, size_t } } -int32_t ComputeUtf16Hash(mirror::CharArray* chars, int32_t offset, - size_t char_count) { - uint32_t hash = 0; - for (size_t i = 0; i < char_count; i++) { - hash = hash * 31 + chars->Get(offset + i); - } - return static_cast<int32_t>(hash); -} - int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count) { uint32_t hash = 0; while (char_count--) { |