Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: src/runtime/runtime.h

Issue 1204623002: Expose Map/Set methods through the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/contexts.h ('k') | src/runtime/runtime-collections.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/runtime/runtime-collections.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698