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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 F(TraceEnter, 0, 1) \ | 651 F(TraceEnter, 0, 1) \ |
652 F(TraceExit, 1, 1) \ | 652 F(TraceExit, 1, 1) \ |
653 F(HaveSameMap, 2, 1) \ | 653 F(HaveSameMap, 2, 1) \ |
654 F(HasFastSmiElements, 1, 1) \ | 654 F(HasFastSmiElements, 1, 1) \ |
655 F(HasFastObjectElements, 1, 1) \ | 655 F(HasFastObjectElements, 1, 1) \ |
656 F(HasFastSmiOrObjectElements, 1, 1) \ | 656 F(HasFastSmiOrObjectElements, 1, 1) \ |
657 F(HasFastDoubleElements, 1, 1) \ | 657 F(HasFastDoubleElements, 1, 1) \ |
658 F(HasFastHoleyElements, 1, 1) \ | 658 F(HasFastHoleyElements, 1, 1) \ |
659 F(HasDictionaryElements, 1, 1) \ | 659 F(HasDictionaryElements, 1, 1) \ |
660 F(HasSloppyArgumentsElements, 1, 1) \ | 660 F(HasSloppyArgumentsElements, 1, 1) \ |
661 F(HasExternalArrayElements, 1, 1) \ | 661 F(HasFixedTypedArrayElements, 1, 1) \ |
662 F(HasFastProperties, 1, 1) \ | 662 F(HasFastProperties, 1, 1) \ |
663 F(HasExternalUint8Elements, 1, 1) \ | |
664 F(HasExternalInt8Elements, 1, 1) \ | |
665 F(HasExternalUint16Elements, 1, 1) \ | |
666 F(HasExternalInt16Elements, 1, 1) \ | |
667 F(HasExternalUint32Elements, 1, 1) \ | |
668 F(HasExternalInt32Elements, 1, 1) \ | |
669 F(HasExternalFloat32Elements, 1, 1) \ | |
670 F(HasExternalFloat64Elements, 1, 1) \ | |
671 F(HasExternalUint8ClampedElements, 1, 1) \ | |
672 F(HasFixedUint8Elements, 1, 1) \ | 663 F(HasFixedUint8Elements, 1, 1) \ |
673 F(HasFixedInt8Elements, 1, 1) \ | 664 F(HasFixedInt8Elements, 1, 1) \ |
674 F(HasFixedUint16Elements, 1, 1) \ | 665 F(HasFixedUint16Elements, 1, 1) \ |
675 F(HasFixedInt16Elements, 1, 1) \ | 666 F(HasFixedInt16Elements, 1, 1) \ |
676 F(HasFixedUint32Elements, 1, 1) \ | 667 F(HasFixedUint32Elements, 1, 1) \ |
677 F(HasFixedInt32Elements, 1, 1) \ | 668 F(HasFixedInt32Elements, 1, 1) \ |
678 F(HasFixedFloat32Elements, 1, 1) \ | 669 F(HasFixedFloat32Elements, 1, 1) \ |
679 F(HasFixedFloat64Elements, 1, 1) \ | 670 F(HasFixedFloat64Elements, 1, 1) \ |
680 F(HasFixedUint8ClampedElements, 1, 1) | 671 F(HasFixedUint8ClampedElements, 1, 1) |
681 | 672 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 ARRAY_ID_UINT32 = 5, | 911 ARRAY_ID_UINT32 = 5, |
921 ARRAY_ID_INT32 = 6, | 912 ARRAY_ID_INT32 = 6, |
922 ARRAY_ID_FLOAT32 = 7, | 913 ARRAY_ID_FLOAT32 = 7, |
923 ARRAY_ID_FLOAT64 = 8, | 914 ARRAY_ID_FLOAT64 = 8, |
924 ARRAY_ID_UINT8_CLAMPED = 9, | 915 ARRAY_ID_UINT8_CLAMPED = 9, |
925 ARRAY_ID_FIRST = ARRAY_ID_UINT8, | 916 ARRAY_ID_FIRST = ARRAY_ID_UINT8, |
926 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED | 917 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED |
927 }; | 918 }; |
928 | 919 |
929 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 920 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
930 ElementsKind* external_elements_kind, | |
931 ElementsKind* fixed_elements_kind, | 921 ElementsKind* fixed_elements_kind, |
932 size_t* element_size); | 922 size_t* element_size); |
933 | 923 |
934 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 924 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
935 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 925 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
936 Isolate* isolate, Handle<FixedArray> literals, | 926 Isolate* isolate, Handle<FixedArray> literals, |
937 Handle<FixedArray> elements, bool is_strong); | 927 Handle<FixedArray> elements, bool is_strong); |
938 | 928 |
939 | 929 |
940 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); | 930 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 982 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
993 return size == 1 || size == 2 || size == 4; | 983 return size == 1 || size == 2 || size == 4; |
994 } | 984 } |
995 | 985 |
996 #endif | 986 #endif |
997 | 987 |
998 } // namespace internal | 988 } // namespace internal |
999 } // namespace v8 | 989 } // namespace v8 |
1000 | 990 |
1001 #endif // V8_RUNTIME_RUNTIME_H_ | 991 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |