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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 843 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
844 ElementsKind* external_elements_kind, | 844 ElementsKind* external_elements_kind, |
845 ElementsKind* fixed_elements_kind, | 845 ElementsKind* fixed_elements_kind, |
846 size_t* element_size); | 846 size_t* element_size); |
847 | 847 |
848 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 848 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
849 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 849 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
850 Isolate* isolate, Handle<FixedArray> literals, | 850 Isolate* isolate, Handle<FixedArray> literals, |
851 Handle<FixedArray> elements, bool is_strong); | 851 Handle<FixedArray> elements, bool is_strong); |
852 | 852 |
| 853 |
| 854 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); |
| 855 static void JSSetInitialize(Isolate* isolate, Handle<JSSet> set); |
| 856 |
853 static void WeakCollectionInitialize( | 857 static void WeakCollectionInitialize( |
854 Isolate* isolate, Handle<JSWeakCollection> weak_collection); | 858 Isolate* isolate, Handle<JSWeakCollection> weak_collection); |
855 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, | 859 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, |
856 Handle<Object> key, Handle<Object> value); | 860 Handle<Object> key, Handle<Object> value); |
857 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 861 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
858 Handle<Object> key); | 862 Handle<Object> key); |
859 | 863 |
860 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 864 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
861 Handle<Object>); | 865 Handle<Object>); |
862 }; | 866 }; |
863 | 867 |
864 | 868 |
865 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); | 869 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); |
866 | 870 |
867 //--------------------------------------------------------------------------- | 871 //--------------------------------------------------------------------------- |
868 // Constants used by interface to runtime functions. | 872 // Constants used by interface to runtime functions. |
869 | 873 |
870 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 874 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
871 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 875 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
872 | 876 |
873 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 877 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
874 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 878 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
875 STATIC_ASSERT(LANGUAGE_END == 3); | 879 STATIC_ASSERT(LANGUAGE_END == 3); |
876 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 880 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
877 | 881 |
878 } // namespace internal | 882 } // namespace internal |
879 } // namespace v8 | 883 } // namespace v8 |
880 | 884 |
881 #endif // V8_RUNTIME_RUNTIME_H_ | 885 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |