Chromium Code Reviews| Index: src/key-accumulator.h |
| diff --git a/src/key-accumulator.h b/src/key-accumulator.h |
| index 8a4d886f515db441e1a8346daf4f0442e1a1dc03..aac23ac0099b3f53fa0927944b009d3c06883efd 100644 |
| --- a/src/key-accumulator.h |
| +++ b/src/key-accumulator.h |
| @@ -51,6 +51,10 @@ class KeyAccumulator final BASE_EMBEDDED { |
| // Sort the integer indices in the last list in |elements_| |
| void SortCurrentElementsList(); |
| Handle<FixedArray> GetKeys(GetKeysConversion convert = KEEP_NUMBERS); |
| + MaybeHandle<FixedArray> GetValues(Handle<JSReceiver> object, |
| + GetKeysConversion convert = KEEP_NUMBERS); |
| + MaybeHandle<FixedArray> GetEntries(Handle<JSReceiver> object, |
| + GetKeysConversion convert = KEEP_NUMBERS); |
|
Camillo Bruni
2016/02/03 12:03:48
Do you think we will ever need the convert argumen
caitp (gmail)
2016/02/03 12:57:30
it has been removed
|
| int length() { return length_; } |
| Isolate* isolate() { return isolate_; } |
| @@ -59,6 +63,9 @@ class KeyAccumulator final BASE_EMBEDDED { |
| bool AddStringKey(Handle<Object> key, AddKeyConversion convert); |
| bool AddSymbolKey(Handle<Object> array); |
| void SortCurrentElementsListRemoveDuplicates(); |
| + template <typename F> |
| + MaybeHandle<FixedArray> GetKeys_Internal(GetKeysConversion convert, |
| + bool trivial, F& accumulate); |
| Isolate* isolate_; |
| PropertyFilter filter_; |