8 #include "src/elements-kind.h" 10 #include "src/objects.h" 24 const char* name()
const {
return name_; }
28 DCHECK_LT(static_cast<int>(elements_kind), kElementsKindCount);
29 return elements_accessors_[elements_kind];
34 virtual void Validate(
JSObject* obj) = 0;
48 PropertyFilter filter = ALL_PROPERTIES) = 0;
51 PropertyFilter filter = ALL_PROPERTIES);
61 virtual bool HasAccessors(
JSObject* holder) = 0;
74 static const int kCopyToEnd = -1;
79 static const int kCopyToEndAndInitializeToHole = -2;
94 PropertyFilter filter = ALL_PROPERTIES) = 0;
99 PropertyFilter filter = ALL_PROPERTIES) = 0;
103 GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES);
107 AddKeyConversion convert) = 0;
117 static void InitializeOncePerProcess();
118 static void TearDown();
167 virtual void Reverse(
JSObject* receiver) = 0;
170 ElementsKind source_kind,
181 virtual void CopyTypedArrayElementsSlice(
JSTypedArray* source,
183 size_t start,
size_t end) = 0;
204 PropertyAttributes attributes) = 0;
214 ElementsKind source_kind,
216 uint32_t destination_start,
int copy_size) = 0;
226 bool allow_appending =
false);
232 void CopyFastNumberJSArrayElementsToTypedArray(Address raw_context,
237 void CopyTypedArrayElementsToTypedArray(
JSTypedArray* source,
247 #endif // V8_ELEMENTS_H_