/external/v8/src/objects/ |
D | js-array.h | 22 class JSArray : public JSObject { 31 static bool HasReadOnlyLength(Handle<JSArray> array); 32 static bool WouldChangeReadOnlyLength(Handle<JSArray> array, uint32_t index); 37 static void Initialize(Handle<JSArray> array, int capacity, int length = 0); 47 static void SetLength(Handle<JSArray> array, uint32_t length); 50 static inline void SetContent(Handle<JSArray> array, 55 Isolate* isolate, Handle<JSArray> o, Handle<Object> name, 62 Isolate* isolate, Handle<JSArray> a, PropertyDescriptor* desc, 71 DECL_CAST(JSArray) 74 DECL_PRINTER(JSArray) [all …]
|
D | js-array-inl.h | 18 CAST_ACCESSOR(JSArray) 21 ACCESSORS(JSArray, length, Object, kLengthOffset) in CAST_ACCESSOR() 23 void JSArray::set_length(Smi* length) { in CAST_ACCESSOR() 28 bool JSArray::SetLengthWouldNormalize(Heap* heap, uint32_t new_length) { in SetLengthWouldNormalize() 32 bool JSArray::AllowsSetLength() { in AllowsSetLength() 38 void JSArray::SetContent(Handle<JSArray> array, in SetContent() 54 bool JSArray::HasArrayPrototype(Isolate* isolate) { in HasArrayPrototype()
|
D | template-objects.cc | 16 Handle<JSArray> TemplateObjectDescription::CreateTemplateObject( in CreateTemplateObject() 20 Handle<JSArray> raw_object = isolate->factory()->NewJSArrayWithElements( in CreateTemplateObject() 25 Handle<JSArray> template_object = isolate->factory()->NewJSArrayWithElements( in CreateTemplateObject() 37 JSArray::DefineOwnProperty(isolate, template_object, in CreateTemplateObject()
|
D | js-list-format.cc | 262 MaybeHandle<JSArray> GenerateListFormatParts( in GenerateListFormatParts() 267 Handle<JSArray> array = factory->NewJSArray(estimate_size); in GenerateListFormatParts() 277 Intl::ToString(isolate, formatted, last_pos, found), JSArray); in GenerateListFormatParts() 285 JSArray); in GenerateListFormatParts() 294 JSArray); in GenerateListFormatParts() 302 Maybe<bool> ToUnicodeStringArray(Isolate* isolate, Handle<JSArray> array, in ToUnicodeStringArray() 350 Handle<JSArray> list, in FormatListCommon() 377 Handle<JSArray> list) { in FormatList() 388 MaybeHandle<JSArray> JSListFormat::FormatListToParts( in FormatListToParts() 390 Handle<JSArray> list) { in FormatListToParts() [all …]
|
D | js-list-format.h | 45 Handle<JSArray> list); 48 V8_WARN_UNUSED_RESULT static MaybeHandle<JSArray> FormatListToParts( 50 Handle<JSArray> list);
|
D | js-regexp.h | 146 class JSRegExpResult : public JSArray { in DEFINE_OPERATORS_FOR_FLAGS() 154 DEFINE_FIELD_OFFSET_CONSTANTS(JSArray::kSize, REG_EXP_RESULT_FIELDS) in DEFINE_OPERATORS_FOR_FLAGS()
|
/external/v8/src/builtins/ |
D | builtins-array.cc | 55 JSArray* receiver) { in IsJSArrayFastElementMovingAllowed() 92 Handle<JSArray> array = Handle<JSArray>::cast(receiver); in EnsureJSArrayWithWritableFastElements() 178 Handle<JSArray> array = Handle<JSArray>::cast(receiver); in GetLengthProperty() 227 Handle<JSArray> array = Handle<JSArray>::cast(receiver); in TryFastArrayFill() 342 if (length <= static_cast<double>(JSArray::kMaxArrayIndex)) { in GenericArrayPush() 383 Handle<JSArray> array = Handle<JSArray>::cast(receiver); in BUILTIN() 390 if (JSArray::HasReadOnlyLength(array)) { in BUILTIN() 464 Handle<JSArray> array = Handle<JSArray>::cast(receiver); in BUILTIN() 469 if (JSArray::HasReadOnlyLength(array)) { in BUILTIN() 474 if (IsJSArrayFastElementMovingAllowed(isolate, JSArray::cast(*receiver))) { in BUILTIN() [all …]
|
D | builtins-arguments-gen.cc | 93 StoreObjectField(result, JSArray::kPropertiesOrHashOffset, empty_fixed_array); in AllocateArgumentsObject() 95 StoreObjectFieldNoWriteBarrier(result, JSArray::kLengthOffset, in AllocateArgumentsObject() 110 StoreObjectFieldNoWriteBarrier(result, JSArray::kElementsOffset, in AllocateArgumentsObject() 120 StoreObjectFieldNoWriteBarrier(result, JSArray::kElementsOffset, in AllocateArgumentsObject() 123 StoreObjectFieldNoWriteBarrier(result, JSArray::kElementsOffset, in AllocateArgumentsObject() 181 rest_count, &runtime, JSArray::kSize + FixedArray::kHeaderSize, mode); in EmitFastNewRestParameter() 187 mode, JSArray::kSize)); in EmitFastNewRestParameter() 196 AllocateArgumentsObject(array_map, zero, nullptr, mode, JSArray::kSize); in EmitFastNewRestParameter()
|
D | base.tq | 38 type JSArray extends JSObject generates 'TNode<JSArray>'; 335 extern macro HeapObjectToJSArray(HeapObject): JSArray labels CastError; 357 cast_HeapObject<JSArray>(o: HeapObject): JSArray labels CastError { 549 extern macro UnsafeCastObjectToJSArray(Object): JSArray; 582 unsafe_cast<JSArray>(o: Object): JSArray { 631 extern operator '.length' macro LoadJSArrayLength(JSArray): Number; 632 extern operator '.length_fast' macro LoadFastJSArrayLength(JSArray): Smi; 633 extern operator '.length=' macro StoreJSArrayLength(JSArray, Smi); 685 extern macro AllocateJSArray(constexpr ElementsKind, Map, intptr, Smi): JSArray; 686 extern macro AllocateJSArray(constexpr ElementsKind, Map, Smi, Smi): JSArray; [all …]
|
D | builtins-iterator-gen.cc | 198 TNode<JSArray> IteratorBuiltinsAssembler::IterableToList( in IterableToList() 202 TVARIABLE(JSArray, created_list); in IterableToList() 210 TNode<JSArray> input_array = CAST(iterable); in IterableToList() 252 TNode<JSArray> IteratorBuiltinsAssembler::IterableToList( in IterableToList()
|
D | builtins-iterator-gen.h | 58 TNode<JSArray> IterableToList(TNode<Context> context, TNode<Object> iterable, 60 TNode<JSArray> IterableToList(TNode<Context> context, TNode<Object> iterable);
|
D | builtins-call-gen.cc | 136 LoadAndUntagToWord32ObjectField(arguments_list, JSArray::kLengthOffset); in CallOrConstructWithArrayLike() 291 TNode<JSArray> spread_array = CAST(spread); in CallOrConstructWithSpread() 311 LoadAndUntagToWord32ObjectField(spread_array, JSArray::kLengthOffset); in CallOrConstructWithSpread() 328 TNode<JSArray> list = CAST( in CallOrConstructWithSpread() 330 var_length = LoadAndUntagToWord32ObjectField(list, JSArray::kLengthOffset); in CallOrConstructWithSpread()
|
D | builtins-intl-gen.cc | 32 TNode<JSArray> AllocateEmptyJSArray(TNode<Context> context); 183 TNode<JSArray> x = iterator_assembler.IterableToList(context, list); in ListFormatCommon() 190 TNode<JSArray> IntlBuiltinsAssembler::AllocateEmptyJSArray( in AllocateEmptyJSArray()
|
D | growable-fixed-array-gen.cc | 36 TNode<JSArray> GrowableFixedArray::ToJSArray(TNode<Context> const context) { in ToJSArray() 59 TNode<JSArray> const result = in ToJSArray()
|
/external/v8/src/ |
D | elements.h | 69 virtual void SetLength(Handle<JSArray> holder, uint32_t new_length) = 0; 126 static Handle<JSArray> Concat(Isolate* isolate, Arguments* args, 129 virtual uint32_t Push(Handle<JSArray> receiver, Arguments* args, 132 virtual uint32_t Unshift(Handle<JSArray> receiver, Arguments* args, 138 virtual Handle<JSArray> Splice(Handle<JSArray> receiver, 142 virtual Handle<Object> Pop(Handle<JSArray> receiver) = 0; 144 virtual Handle<Object> Shift(Handle<JSArray> receiver) = 0; 233 Handle<JSArray> array, Arguments* args); 237 JSArray* source,
|
D | elements.cc | 576 Object* length_obj = JSArray::cast(holder)->length(); in ValidateImpl() 605 static void TryTransitionResultArrayToPacked(Handle<JSArray> array) { in TryTransitionResultArrayToPacked() 697 uint32_t Push(Handle<JSArray> receiver, Arguments* args, in Push() 702 static uint32_t PushImpl(Handle<JSArray> receiver, Arguments* args, in PushImpl() 707 uint32_t Unshift(Handle<JSArray> receiver, Arguments* args, in Unshift() 712 static uint32_t UnshiftImpl(Handle<JSArray> receiver, Arguments* args, in UnshiftImpl() 727 Handle<JSArray> Splice(Handle<JSArray> receiver, uint32_t start, in Splice() 733 static Handle<JSArray> SpliceImpl(Handle<JSArray> receiver, in SpliceImpl() 739 Handle<Object> Pop(Handle<JSArray> receiver) final { in Pop() 743 static Handle<Object> PopImpl(Handle<JSArray> receiver) { in PopImpl() [all …]
|
D | accessors.cc | 69 JSArray::kLengthOffset, FieldIndex::kTagged, index); in IsJSObjectFieldAccessor() 158 JSArray* holder = JSArray::cast(*Utils::OpenHandle(*info.Holder())); in ArrayLengthGetter() 175 Handle<JSArray> array = Handle<JSArray>::cast(object); in ArrayLengthSetter() 178 bool was_readonly = JSArray::HasReadOnlyLength(array); in ArrayLengthSetter() 181 if (!JSArray::AnythingToArrayLength(isolate, length_obj, &length)) { in ArrayLengthSetter() 186 if (!was_readonly && V8_UNLIKELY(JSArray::HasReadOnlyLength(array)) && in ArrayLengthSetter() 204 JSArray::SetLength(array, length); in ArrayLengthSetter()
|
D | value-serializer.h | 127 Maybe<bool> WriteJSArray(Handle<JSArray> array) V8_WARN_UNUSED_RESULT; 270 MaybeHandle<JSArray> ReadSparseJSArray() V8_WARN_UNUSED_RESULT; 271 MaybeHandle<JSArray> ReadDenseJSArray() V8_WARN_UNUSED_RESULT;
|
D | string-builder.cc | 159 Handle<JSArray> FixedArrayBuilder::ToJSArray(Handle<JSArray> target_array) { in ToJSArray() 160 JSArray::SetContent(target_array, array_); in ToJSArray()
|
D | value-serializer.cc | 491 return WriteJSArray(Handle<JSArray>::cast(receiver)); in WriteJSReceiver() 605 Maybe<bool> ValueSerializer::WriteJSArray(Handle<JSArray> array) { in WriteJSArray() 1410 MaybeHandle<JSArray> ValueDeserializer::ReadSparseJSArray() { in ReadSparseJSArray() 1412 STACK_CHECK(isolate_, MaybeHandle<JSArray>()); in ReadSparseJSArray() 1415 if (!ReadVarint<uint32_t>().To(&length)) return MaybeHandle<JSArray>(); in ReadSparseJSArray() 1419 Handle<JSArray> array = isolate_->factory()->NewJSArray( in ReadSparseJSArray() 1421 JSArray::SetLength(array, length); in ReadSparseJSArray() 1432 return MaybeHandle<JSArray>(); in ReadSparseJSArray() 1439 MaybeHandle<JSArray> ValueDeserializer::ReadDenseJSArray() { in ReadDenseJSArray() 1441 STACK_CHECK(isolate_, MaybeHandle<JSArray>()); in ReadDenseJSArray() [all …]
|
/external/skqp/experimental/canvaskit/ |
D | skottie_bindings.cpp | 52 JSArray getColorProps() const { in getColorProps() 53 JSArray props = emscripten::val::array(); in getColorProps() 65 JSArray getOpacityProps() const { in getOpacityProps() 66 JSArray props = emscripten::val::array(); in getOpacityProps() 86 JSArray getMarkers() const { in getMarkers() 87 JSArray markers = emscripten::val::array(); in getMarkers()
|
/external/v8/src/wasm/ |
D | wasm-module.cc | 120 Handle<JSArray> GetImports(Isolate* isolate, in GetImports() 136 Handle<JSArray> array_object = factory->NewJSArray(PACKED_ELEMENTS, 0, 0); in GetImports() 138 JSArray::SetContent(array_object, storage); in GetImports() 188 Handle<JSArray> GetExports(Isolate* isolate, in GetExports() 203 Handle<JSArray> array_object = factory->NewJSArray(PACKED_ELEMENTS, 0, 0); in GetExports() 205 JSArray::SetContent(array_object, storage); in GetExports() 249 Handle<JSArray> GetCustomSections(Isolate* isolate, in GetCustomSections() 276 return Handle<JSArray>(); in GetCustomSections() 288 Handle<JSArray> array_object = factory->NewJSArray(PACKED_ELEMENTS, 0, 0); in GetCustomSections() 290 JSArray::SetContent(array_object, storage); in GetCustomSections()
|
D | wasm-module.h | 238 V8_EXPORT_PRIVATE Handle<JSArray> GetImports(Isolate* isolate, 240 V8_EXPORT_PRIVATE Handle<JSArray> GetExports(Isolate* isolate, 242 V8_EXPORT_PRIVATE Handle<JSArray> GetCustomSections(
|
/external/skia/modules/canvaskit/ |
D | skottie_bindings.cpp | 108 JSArray getColorProps() const { in getColorProps() 109 JSArray props = emscripten::val::array(); in getColorProps() 121 JSArray getOpacityProps() const { in getOpacityProps() 122 JSArray props = emscripten::val::array(); in getOpacityProps() 142 JSArray getMarkers() const { in getMarkers() 143 JSArray markers = emscripten::val::array(); in getMarkers()
|
/external/v8/src/runtime/ |
D | runtime-array.cc | 381 !Handle<JSArray>::cast(object)->HasFastPackedElements()) { in RUNTIME_FUNCTION() 402 CONVERT_ARG_HANDLE_CHECKED(JSArray, from, 0); in RUNTIME_FUNCTION() 403 CONVERT_ARG_HANDLE_CHECKED(JSArray, to, 1); in RUNTIME_FUNCTION() 426 CONVERT_ARG_CHECKED(JSArray, array, 0); in RUNTIME_FUNCTION() 524 !JSArray::cast(*receiver)->HasArrayPrototype(isolate)) { in RUNTIME_FUNCTION() 581 JSArray::SetLengthWouldNormalize(isolate->heap(), value)) { in RUNTIME_FUNCTION() 586 if (value >= JSArray::kInitialMaxFastElementArray) { in RUNTIME_FUNCTION() 621 Handle<JSArray> array = Handle<JSArray>::cast( in RUNTIME_FUNCTION() 741 bool success = JSArray::cast(*object)->length()->ToArrayLength(&len32); in RUNTIME_FUNCTION() 843 bool success = JSArray::cast(*object)->length()->ToArrayLength(&len32); in RUNTIME_FUNCTION()
|