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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 }; | 841 }; |
842 | 842 |
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); |
852 | 852 |
853 static void WeakCollectionInitialize( | 853 static void WeakCollectionInitialize( |
854 Isolate* isolate, Handle<JSWeakCollection> weak_collection); | 854 Isolate* isolate, Handle<JSWeakCollection> weak_collection); |
855 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, | 855 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, |
856 Handle<Object> key, Handle<Object> value); | 856 Handle<Object> key, Handle<Object> value); |
857 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 857 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
858 Handle<Object> key); | 858 Handle<Object> key); |
859 | 859 |
860 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 860 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
861 Handle<Object>); | 861 Handle<Object>); |
(...skipping 10 matching lines...) Expand all Loading... |
872 | 872 |
873 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 873 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
874 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 874 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
875 STATIC_ASSERT(LANGUAGE_END == 3); | 875 STATIC_ASSERT(LANGUAGE_END == 3); |
876 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 876 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
877 | 877 |
878 } // namespace internal | 878 } // namespace internal |
879 } // namespace v8 | 879 } // namespace v8 |
880 | 880 |
881 #endif // V8_RUNTIME_RUNTIME_H_ | 881 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |