Home
last modified time | relevance | path

Searched refs:JSArray (Results 1 – 25 of 96) sorted by relevance

1234

/external/v8/src/objects/
Djs-array.h22 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 …]
Djs-array-inl.h18 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()
Dtemplate-objects.cc16 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()
Djs-list-format.cc262 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 …]
Djs-list-format.h45 Handle<JSArray> list);
48 V8_WARN_UNUSED_RESULT static MaybeHandle<JSArray> FormatListToParts(
50 Handle<JSArray> list);
Djs-regexp.h146 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/
Dbuiltins-array.cc55 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 …]
Dbuiltins-arguments-gen.cc93 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()
Dbase.tq38 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 …]
Dbuiltins-iterator-gen.cc198 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()
Dbuiltins-iterator-gen.h58 TNode<JSArray> IterableToList(TNode<Context> context, TNode<Object> iterable,
60 TNode<JSArray> IterableToList(TNode<Context> context, TNode<Object> iterable);
Dbuiltins-call-gen.cc136 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()
Dbuiltins-intl-gen.cc32 TNode<JSArray> AllocateEmptyJSArray(TNode<Context> context);
183 TNode<JSArray> x = iterator_assembler.IterableToList(context, list); in ListFormatCommon()
190 TNode<JSArray> IntlBuiltinsAssembler::AllocateEmptyJSArray( in AllocateEmptyJSArray()
Dgrowable-fixed-array-gen.cc36 TNode<JSArray> GrowableFixedArray::ToJSArray(TNode<Context> const context) { in ToJSArray()
59 TNode<JSArray> const result = in ToJSArray()
/external/v8/src/
Delements.h69 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,
Delements.cc576 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 …]
Daccessors.cc69 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()
Dvalue-serializer.h127 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;
Dstring-builder.cc159 Handle<JSArray> FixedArrayBuilder::ToJSArray(Handle<JSArray> target_array) { in ToJSArray()
160 JSArray::SetContent(target_array, array_); in ToJSArray()
Dvalue-serializer.cc491 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/
Dskottie_bindings.cpp52 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/
Dwasm-module.cc120 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()
Dwasm-module.h238 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/
Dskottie_bindings.cpp108 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/
Druntime-array.cc381 !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()

1234