| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index c6f36bf63bdb3b4d31fba9c27b42bf8efff2f583..ff21a1fed2f59cd3881f8070647e23fee18f576c 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -4895,8 +4895,12 @@ class FixedTypedArray: public FixedTypedArrayBase {
|
| // Casting:
|
| static inline FixedTypedArray<Traits>* cast(Object* obj);
|
|
|
| + static inline int ElementOffset(int index) {
|
| + return kDataOffset + index * sizeof(ElementType);
|
| + }
|
| +
|
| static inline int SizeFor(int length) {
|
| - return kDataOffset + length * sizeof(ElementType);
|
| + return ElementOffset(length);
|
| }
|
|
|
| inline ElementType get_scalar(int index);
|
|
|