OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_KEY_ACCUMULATOR_H_ | 5 #ifndef V8_KEY_ACCUMULATOR_H_ |
6 #define V8_KEY_ACCUMULATOR_H_ | 6 #define V8_KEY_ACCUMULATOR_H_ |
7 | 7 |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 ~KeyAccumulator(); | 37 ~KeyAccumulator(); |
38 | 38 |
39 bool AddKey(uint32_t key); | 39 bool AddKey(uint32_t key); |
40 bool AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT); | 40 bool AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT); |
41 bool AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT); | 41 bool AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT); |
42 void AddKeys(Handle<FixedArray> array, | 42 void AddKeys(Handle<FixedArray> array, |
43 AddKeyConversion convert = DO_NOT_CONVERT); | 43 AddKeyConversion convert = DO_NOT_CONVERT); |
44 void AddKeys(Handle<JSObject> array, | 44 void AddKeys(Handle<JSObject> array, |
45 AddKeyConversion convert = DO_NOT_CONVERT); | 45 AddKeyConversion convert = DO_NOT_CONVERT); |
46 void AddKeysFromProxy(Handle<JSObject> array); | 46 void AddKeysFromProxy(Handle<JSObject> array); |
47 void AddKeysFromProxy(Handle<FixedArray> keys); | 47 bool AddKeysFromProxy(Handle<JSProxy> proxy, Handle<FixedArray> keys, |
| 48 KeyFilter filter, Enumerability enum_policy); |
48 void AddElementKeysFromInterceptor(Handle<JSObject> array); | 49 void AddElementKeysFromInterceptor(Handle<JSObject> array); |
49 // Jump to the next level, pushing the current |levelLength_| to | 50 // Jump to the next level, pushing the current |levelLength_| to |
50 // |levelLengths_| and adding a new list to |elements_|. | 51 // |levelLengths_| and adding a new list to |elements_|. |
51 void NextPrototype(); | 52 void NextPrototype(); |
52 // Sort the integer indices in the last list in |elements_| | 53 // Sort the integer indices in the last list in |elements_| |
53 void SortCurrentElementsList(); | 54 void SortCurrentElementsList(); |
54 Handle<FixedArray> GetKeys(GetKeysConversion convert = KEEP_NUMBERS); | 55 Handle<FixedArray> GetKeys(GetKeysConversion convert = KEEP_NUMBERS); |
55 int length() { return length_; } | 56 int length() { return length_; } |
56 Isolate* isolate() { return isolate_; } | 57 Isolate* isolate() { return isolate_; } |
57 | 58 |
(...skipping 27 matching lines...) Expand all Loading... |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 87 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
87 }; | 88 }; |
88 | 89 |
89 | 90 |
90 } // namespace internal | 91 } // namespace internal |
91 } // namespace v8 | 92 } // namespace v8 |
92 | 93 |
93 | 94 |
94 #endif // V8_KEY_ACCUMULATOR_H_ | 95 #endif // V8_KEY_ACCUMULATOR_H_ |
OLD | NEW |