Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 8ef7f20231f5e5a0d77bae8321462db95affe69e..ac1a33750a6eeee0eb89519e57a5165ec9ad7ee8 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -5077,12 +5077,16 @@ class FixedTypedArrayBase: public FixedArrayBase { |
| inline int size(); |
| + inline int SizeFromMap(Map* map); |
|
Michael Starzinger
2014/05/27 12:19:55
nit: Instead of overloading the SizeFromMap() name
|
| + |
| // Use with care: returns raw pointer into heap. |
| inline void* DataPtr(); |
| - inline int DataSize(); |
| + inline int DataSize() { return DataSizeFromMap(map()); } |
| private: |
| + inline int DataSizeFromMap(Map* map); |
| + |
| DISALLOW_IMPLICIT_CONSTRUCTORS(FixedTypedArrayBase); |
| }; |