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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 ElementsKind* fixed_elements_kind, | 865 ElementsKind* fixed_elements_kind, |
866 size_t* element_size); | 866 size_t* element_size); |
867 | 867 |
868 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 868 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
869 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 869 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
870 Isolate* isolate, Handle<FixedArray> literals, | 870 Isolate* isolate, Handle<FixedArray> literals, |
871 Handle<FixedArray> elements, bool is_strong); | 871 Handle<FixedArray> elements, bool is_strong); |
872 | 872 |
873 | 873 |
874 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); | 874 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); |
| 875 static void JSMapClear(Isolate* isolate, Handle<JSMap> map); |
875 static void JSSetInitialize(Isolate* isolate, Handle<JSSet> set); | 876 static void JSSetInitialize(Isolate* isolate, Handle<JSSet> set); |
| 877 static void JSSetClear(Isolate* isolate, Handle<JSSet> set); |
876 | 878 |
877 static void WeakCollectionInitialize( | 879 static void WeakCollectionInitialize( |
878 Isolate* isolate, Handle<JSWeakCollection> weak_collection); | 880 Isolate* isolate, Handle<JSWeakCollection> weak_collection); |
879 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, | 881 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, |
880 Handle<Object> key, Handle<Object> value, | 882 Handle<Object> key, Handle<Object> value, |
881 int32_t hash); | 883 int32_t hash); |
882 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 884 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
883 Handle<Object> key); | 885 Handle<Object> key); |
884 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 886 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
885 Handle<Object> key, int32_t hash); | 887 Handle<Object> key, int32_t hash); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 926 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
925 return size == 1 || size == 2 || size == 4; | 927 return size == 1 || size == 2 || size == 4; |
926 } | 928 } |
927 | 929 |
928 #endif | 930 #endif |
929 | 931 |
930 } // namespace internal | 932 } // namespace internal |
931 } // namespace v8 | 933 } // namespace v8 |
932 | 934 |
933 #endif // V8_RUNTIME_RUNTIME_H_ | 935 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |