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

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

Issue 1254623002: Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 4 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
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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 F(TraceEnter, 0, 1) \ 649 F(TraceEnter, 0, 1) \
650 F(TraceExit, 1, 1) \ 650 F(TraceExit, 1, 1) \
651 F(HaveSameMap, 2, 1) \ 651 F(HaveSameMap, 2, 1) \
652 F(HasFastSmiElements, 1, 1) \ 652 F(HasFastSmiElements, 1, 1) \
653 F(HasFastObjectElements, 1, 1) \ 653 F(HasFastObjectElements, 1, 1) \
654 F(HasFastSmiOrObjectElements, 1, 1) \ 654 F(HasFastSmiOrObjectElements, 1, 1) \
655 F(HasFastDoubleElements, 1, 1) \ 655 F(HasFastDoubleElements, 1, 1) \
656 F(HasFastHoleyElements, 1, 1) \ 656 F(HasFastHoleyElements, 1, 1) \
657 F(HasDictionaryElements, 1, 1) \ 657 F(HasDictionaryElements, 1, 1) \
658 F(HasSloppyArgumentsElements, 1, 1) \ 658 F(HasSloppyArgumentsElements, 1, 1) \
659 F(HasExternalArrayElements, 1, 1) \ 659 F(HasFixedTypedArrayElements, 1, 1) \
660 F(HasFastProperties, 1, 1) \ 660 F(HasFastProperties, 1, 1) \
661 F(HasExternalUint8Elements, 1, 1) \
662 F(HasExternalInt8Elements, 1, 1) \
663 F(HasExternalUint16Elements, 1, 1) \
664 F(HasExternalInt16Elements, 1, 1) \
665 F(HasExternalUint32Elements, 1, 1) \
666 F(HasExternalInt32Elements, 1, 1) \
667 F(HasExternalFloat32Elements, 1, 1) \
668 F(HasExternalFloat64Elements, 1, 1) \
669 F(HasExternalUint8ClampedElements, 1, 1) \
670 F(HasFixedUint8Elements, 1, 1) \ 661 F(HasFixedUint8Elements, 1, 1) \
671 F(HasFixedInt8Elements, 1, 1) \ 662 F(HasFixedInt8Elements, 1, 1) \
672 F(HasFixedUint16Elements, 1, 1) \ 663 F(HasFixedUint16Elements, 1, 1) \
673 F(HasFixedInt16Elements, 1, 1) \ 664 F(HasFixedInt16Elements, 1, 1) \
674 F(HasFixedUint32Elements, 1, 1) \ 665 F(HasFixedUint32Elements, 1, 1) \
675 F(HasFixedInt32Elements, 1, 1) \ 666 F(HasFixedInt32Elements, 1, 1) \
676 F(HasFixedFloat32Elements, 1, 1) \ 667 F(HasFixedFloat32Elements, 1, 1) \
677 F(HasFixedFloat64Elements, 1, 1) \ 668 F(HasFixedFloat64Elements, 1, 1) \
678 F(HasFixedUint8ClampedElements, 1, 1) 669 F(HasFixedUint8ClampedElements, 1, 1)
679 670
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 ARRAY_ID_UINT32 = 5, 873 ARRAY_ID_UINT32 = 5,
883 ARRAY_ID_INT32 = 6, 874 ARRAY_ID_INT32 = 6,
884 ARRAY_ID_FLOAT32 = 7, 875 ARRAY_ID_FLOAT32 = 7,
885 ARRAY_ID_FLOAT64 = 8, 876 ARRAY_ID_FLOAT64 = 8,
886 ARRAY_ID_UINT8_CLAMPED = 9, 877 ARRAY_ID_UINT8_CLAMPED = 9,
887 ARRAY_ID_FIRST = ARRAY_ID_UINT8, 878 ARRAY_ID_FIRST = ARRAY_ID_UINT8,
888 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED 879 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED
889 }; 880 };
890 881
891 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, 882 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type,
892 ElementsKind* external_elements_kind,
893 ElementsKind* fixed_elements_kind, 883 ElementsKind* fixed_elements_kind,
894 size_t* element_size); 884 size_t* element_size);
895 885
896 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 886 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
897 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( 887 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate(
898 Isolate* isolate, Handle<FixedArray> literals, 888 Isolate* isolate, Handle<FixedArray> literals,
899 Handle<FixedArray> elements, bool is_strong); 889 Handle<FixedArray> elements, bool is_strong);
900 890
901 891
902 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); 892 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 inline bool Runtime::AtomicIsLockFree(uint32_t size) { 944 inline bool Runtime::AtomicIsLockFree(uint32_t size) {
955 return size == 1 || size == 2 || size == 4; 945 return size == 1 || size == 2 || size == 4;
956 } 946 }
957 947
958 #endif 948 #endif
959 949
960 } // namespace internal 950 } // namespace internal
961 } // namespace v8 951 } // namespace v8
962 952
963 #endif // V8_RUNTIME_RUNTIME_H_ 953 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« src/heap/heap.cc ('K') | « src/ppc/lithium-ppc.cc ('k') | src/runtime/runtime-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698