Index: runtime/vm/unibrow-inl.h |
diff --git a/runtime/vm/unibrow-inl.h b/runtime/vm/unibrow-inl.h |
index 340d1be65d01052f6c778940eb55cdec12c2c06e..a7e3b22d00811961b981ac0f405cf5bca2966e6c 100644 |
--- a/runtime/vm/unibrow-inl.h |
+++ b/runtime/vm/unibrow-inl.h |
@@ -7,12 +7,14 @@ |
#include "vm/unibrow.h" |
-#include "platform/assert.h" |
+// SNIP |
namespace unibrow { |
-template <class T, intptr_t s> intptr_t Mapping<T, s>::get( |
- int32_t c, int32_t n, int32_t* result) { |
+// SNIP |
+ |
+template <class T, int s> int Mapping<T, s>::get(uchar c, uchar n, |
+ uchar* result) { |
CacheEntry entry = entries_[c & kMask]; |
if (entry.code_point_ == c) { |
if (entry.offset_ == 0) { |
@@ -26,10 +28,10 @@ template <class T, intptr_t s> intptr_t Mapping<T, s>::get( |
} |
} |
-template <class T, intptr_t s> intptr_t Mapping<T, s>::CalculateValue( |
- int32_t c, int32_t n, int32_t* result) { |
+template <class T, int s> int Mapping<T, s>::CalculateValue(uchar c, uchar n, |
+ uchar* result) { |
bool allow_caching = true; |
- intptr_t length = T::Convert(c, n, result, &allow_caching); |
+ int length = T::Convert(c, n, result, &allow_caching); |
if (allow_caching) { |
if (length == 1) { |
entries_[c & kMask] = CacheEntry(c, result[0] - c); |
@@ -43,6 +45,8 @@ template <class T, intptr_t s> intptr_t Mapping<T, s>::CalculateValue( |
} |
} |
+// SNIP |
+ |
} // namespace unibrow |
#endif // VM_UNIBROW_INL_H_ |