Index: src/elements.h |
diff --git a/src/elements.h b/src/elements.h |
index 16be8ecde3564941735e5e093ad920ec4d9e856e..f5a9b3e23a6b306021254f83ef94c983dc3a0e6c 100644 |
--- a/src/elements.h |
+++ b/src/elements.h |
@@ -38,6 +38,11 @@ class ElementsAccessor { |
return HasElement(holder, index, handle(holder->elements())); |
} |
+ // Returns true if the backing store is compact in the given range |
+ virtual bool IsPacked(Handle<JSObject> holder, |
+ Handle<FixedArrayBase> backing_store, uint32_t start, |
+ uint32_t end) = 0; |
+ |
virtual Handle<Object> Get(Handle<FixedArrayBase> backing_store, |
uint32_t entry) = 0; |
@@ -131,6 +136,10 @@ class ElementsAccessor { |
Handle<FixedArrayBase> backing_store, Object** objects, |
uint32_t start, int direction) = 0; |
+ virtual Handle<JSArray> Slice(Handle<JSObject> receiver, |
+ Handle<FixedArrayBase> backing_store, |
+ uint32_t start, uint32_t end) = 0; |
+ |
virtual Handle<JSArray> Splice(Handle<JSArray> receiver, |
Handle<FixedArrayBase> backing_store, |
uint32_t start, uint32_t delete_count, |