Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index c6f36bf63bdb3b4d31fba9c27b42bf8efff2f583..7eec8cdadf7336c93fa40434af2b32b88969954a 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4899,6 +4899,10 @@ class FixedTypedArray: public FixedTypedArrayBase { |
return kDataOffset + length * sizeof(ElementType); |
} |
+ static inline int ElementOffset(int index) { |
+ return SizeFor(index); |
Dmitry Lomov (no reviews)
2014/01/30 18:34:03
Please express them the other way round, i.e. Size
kilvadyb
2014/01/30 19:24:52
Done.
|
+ } |
+ |
inline ElementType get_scalar(int index); |
MUST_USE_RESULT inline MaybeObject* get(int index); |
inline void set(int index, ElementType value); |