| 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_KEYS_H_ | 5 #ifndef V8_KEYS_H_ |
| 6 #define V8_KEYS_H_ | 6 #define V8_KEYS_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 bool filter_proxy_keys = true, bool is_for_in = false); | 42 bool filter_proxy_keys = true, bool is_for_in = false); |
| 43 | 43 |
| 44 Handle<FixedArray> GetKeys( | 44 Handle<FixedArray> GetKeys( |
| 45 GetKeysConversion convert = GetKeysConversion::kKeepNumbers); | 45 GetKeysConversion convert = GetKeysConversion::kKeepNumbers); |
| 46 Maybe<bool> CollectKeys(Handle<JSReceiver> receiver, | 46 Maybe<bool> CollectKeys(Handle<JSReceiver> receiver, |
| 47 Handle<JSReceiver> object); | 47 Handle<JSReceiver> object); |
| 48 Maybe<bool> CollectOwnElementIndices(Handle<JSReceiver> receiver, | 48 Maybe<bool> CollectOwnElementIndices(Handle<JSReceiver> receiver, |
| 49 Handle<JSObject> object); | 49 Handle<JSObject> object); |
| 50 Maybe<bool> CollectOwnPropertyNames(Handle<JSReceiver> receiver, | 50 Maybe<bool> CollectOwnPropertyNames(Handle<JSReceiver> receiver, |
| 51 Handle<JSObject> object); | 51 Handle<JSObject> object); |
| 52 Maybe<bool> CollectAccessCheckInterceptorKeys( |
| 53 Handle<AccessCheckInfo> access_check_info, Handle<JSReceiver> receiver, |
| 54 Handle<JSObject> object); |
| 52 | 55 |
| 53 static Handle<FixedArray> GetEnumPropertyKeys(Isolate* isolate, | 56 static Handle<FixedArray> GetEnumPropertyKeys(Isolate* isolate, |
| 54 Handle<JSObject> object); | 57 Handle<JSObject> object); |
| 55 | 58 |
| 56 void AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT); | 59 void AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT); |
| 57 void AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT); | 60 void AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT); |
| 58 void AddKeys(Handle<FixedArray> array, AddKeyConversion convert); | 61 void AddKeys(Handle<FixedArray> array, AddKeyConversion convert); |
| 59 void AddKeys(Handle<JSObject> array_like, AddKeyConversion convert); | 62 void AddKeys(Handle<JSObject> array_like, AddKeyConversion convert); |
| 60 | 63 |
| 61 // Jump to the next level, pushing the current |levelLength_| to | 64 // Jump to the next level, pushing the current |levelLength_| to |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool is_receiver_simple_enum_ = false; | 133 bool is_receiver_simple_enum_ = false; |
| 131 bool has_empty_prototype_ = false; | 134 bool has_empty_prototype_ = false; |
| 132 | 135 |
| 133 DISALLOW_COPY_AND_ASSIGN(FastKeyAccumulator); | 136 DISALLOW_COPY_AND_ASSIGN(FastKeyAccumulator); |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 } // namespace internal | 139 } // namespace internal |
| 137 } // namespace v8 | 140 } // namespace v8 |
| 138 | 141 |
| 139 #endif // V8_KEYS_H_ | 142 #endif // V8_KEYS_H_ |
| OLD | NEW |