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

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

Issue 1257223002: Revert of Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/ppc/lithium-ppc.cc ('k') | src/runtime/runtime-array.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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(HasFixedTypedArrayElements, 1, 1) \ 661 F(HasExternalArrayElements, 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) \
663 F(HasFixedUint8Elements, 1, 1) \ 672 F(HasFixedUint8Elements, 1, 1) \
664 F(HasFixedInt8Elements, 1, 1) \ 673 F(HasFixedInt8Elements, 1, 1) \
665 F(HasFixedUint16Elements, 1, 1) \ 674 F(HasFixedUint16Elements, 1, 1) \
666 F(HasFixedInt16Elements, 1, 1) \ 675 F(HasFixedInt16Elements, 1, 1) \
667 F(HasFixedUint32Elements, 1, 1) \ 676 F(HasFixedUint32Elements, 1, 1) \
668 F(HasFixedInt32Elements, 1, 1) \ 677 F(HasFixedInt32Elements, 1, 1) \
669 F(HasFixedFloat32Elements, 1, 1) \ 678 F(HasFixedFloat32Elements, 1, 1) \
670 F(HasFixedFloat64Elements, 1, 1) \ 679 F(HasFixedFloat64Elements, 1, 1) \
671 F(HasFixedUint8ClampedElements, 1, 1) 680 F(HasFixedUint8ClampedElements, 1, 1)
672 681
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 ARRAY_ID_UINT32 = 5, 920 ARRAY_ID_UINT32 = 5,
912 ARRAY_ID_INT32 = 6, 921 ARRAY_ID_INT32 = 6,
913 ARRAY_ID_FLOAT32 = 7, 922 ARRAY_ID_FLOAT32 = 7,
914 ARRAY_ID_FLOAT64 = 8, 923 ARRAY_ID_FLOAT64 = 8,
915 ARRAY_ID_UINT8_CLAMPED = 9, 924 ARRAY_ID_UINT8_CLAMPED = 9,
916 ARRAY_ID_FIRST = ARRAY_ID_UINT8, 925 ARRAY_ID_FIRST = ARRAY_ID_UINT8,
917 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED 926 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED
918 }; 927 };
919 928
920 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, 929 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type,
930 ElementsKind* external_elements_kind,
921 ElementsKind* fixed_elements_kind, 931 ElementsKind* fixed_elements_kind,
922 size_t* element_size); 932 size_t* element_size);
923 933
924 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 934 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
925 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( 935 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate(
926 Isolate* isolate, Handle<FixedArray> literals, 936 Isolate* isolate, Handle<FixedArray> literals,
927 Handle<FixedArray> elements, bool is_strong); 937 Handle<FixedArray> elements, bool is_strong);
928 938
929 939
930 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map); 940 static void JSMapInitialize(Isolate* isolate, Handle<JSMap> map);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 inline bool Runtime::AtomicIsLockFree(uint32_t size) { 992 inline bool Runtime::AtomicIsLockFree(uint32_t size) {
983 return size == 1 || size == 2 || size == 4; 993 return size == 1 || size == 2 || size == 4;
984 } 994 }
985 995
986 #endif 996 #endif
987 997
988 } // namespace internal 998 } // namespace internal
989 } // namespace v8 999 } // namespace v8
990 1000
991 #endif // V8_RUNTIME_RUNTIME_H_ 1001 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « 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