Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 43671a677ae769eed05ce29a506df03a7b958c1c..b6b635c61f9bf3efbb214d81e52a96c20f58c2b1 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -2647,6 +2647,9 @@ class FixedArray: public FixedArrayBase { |
| inline Object* get(int index) const; |
| static inline Handle<Object> get(FixedArray* array, int index, |
| Isolate* isolate); |
| + template <class T> |
| + Handle<T> GetValueOrNull(int index) const; |
|
Benedikt Meurer
2016/06/27 03:57:13
This should return a MaybeHandle. null Handles are
Mircea Trofin
2016/06/27 16:59:57
Done.
|
| + |
| // Setter that uses write barrier. |
| inline void set(int index, Object* value); |
| inline bool is_the_hole(int index); |
| @@ -4369,6 +4372,7 @@ class ByteArray: public FixedArrayBase { |
| // Setter and getter. |
| inline byte get(int index); |
| inline void set(int index, byte value); |
| + inline const byte* data() const; |
| // Copy in / copy out whole byte slices. |
| inline void copy_out(int index, byte* buffer, int length); |