/third_party/jerryscript/tests/jerry/ |
D | array-prototype-concat.js | 27 var new_array = obj.concat(arr1); variable 28 assert(new_array.length === 4); 29 assert(new_array[0] === obj); 30 assert(new_array[1] === "Apple"); 31 assert(new_array[2] === 6); 32 assert(new_array[3] === "Peach"); 34 var new_array = arr1.concat(arr2, obj, 1); 36 assert(new_array.length === 8); 37 assert(new_array[0] === "Apple"); 38 assert(new_array[1] === 6); [all …]
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-array-prototype.c | 225 ecma_value_t new_array = ecma_op_array_species_create (obj_p, 0); in ecma_builtin_array_prototype_object_concat() local 227 if (ECMA_IS_VALUE_ERROR (new_array)) in ecma_builtin_array_prototype_object_concat() 229 return new_array; in ecma_builtin_array_prototype_object_concat() 232 ecma_value_t new_array = ecma_op_create_array_object (NULL, 0, false); in ecma_builtin_array_prototype_object_concat() 233 JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (new_array)); in ecma_builtin_array_prototype_object_concat() 236 ecma_object_t *new_array_p = ecma_get_object_from_value (new_array); in ecma_builtin_array_prototype_object_concat() 273 return new_array; in ecma_builtin_array_prototype_object_concat() 871 ecma_value_t new_array = ecma_op_array_species_create (obj_p, copied_length); in ecma_builtin_array_prototype_object_slice() local 873 if (ECMA_IS_VALUE_ERROR (new_array)) in ecma_builtin_array_prototype_object_slice() 875 return new_array; in ecma_builtin_array_prototype_object_slice() [all …]
|
D | ecma-builtin-helpers.c | 299 …ecma_value_t new_array = ecma_op_create_array_object (props_p->buffer_p, props_p->item_count, fals… in ecma_builtin_helper_object_get_properties() local 302 return new_array; in ecma_builtin_helper_object_get_properties()
|
/third_party/node/deps/brotli/c/enc/ |
D | memory.h | 84 T* new_array; \ 86 new_array = BROTLI_ALLOC((M), T, _new_size); \ 87 if (!BROTLI_IS_OOM(M) && !BROTLI_IS_NULL(new_array) && C != 0) \ 88 memcpy(new_array, A, C * sizeof(T)); \ 90 A = new_array; \
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | memory.h | 84 T* new_array; \ 86 new_array = BROTLI_ALLOC((M), T, _new_size); \ 87 if (!BROTLI_IS_OOM(M) && !BROTLI_IS_NULL(new_array) && C != 0) \ 88 memcpy(new_array, A, C * sizeof(T)); \ 90 A = new_array; \
|
/third_party/node/deps/v8/src/deoptimizer/ |
D | materialized-object-store.cc | 77 Handle<FixedArray> new_array = in EnsureStackEntries() local 80 new_array->set(i, array->get(i)); in EnsureStackEntries() 84 new_array->set(i, undefined_value); in EnsureStackEntries() 86 isolate()->heap()->SetRootMaterializedObjects(*new_array); in EnsureStackEntries() 87 return new_array; in EnsureStackEntries()
|
/third_party/skia/third_party/externals/libpng/ |
D | pngmem.c | 145 png_voidp new_array = png_malloc_array_checked(png_ptr, variable 148 if (new_array != NULL) 154 memcpy(new_array, old_array, element_size*(unsigned)old_elements); 156 memset((char*)new_array + element_size*(unsigned)old_elements, 0, 159 return new_array;
|
/third_party/node/deps/v8/src/objects/ |
D | embedder-data-array.cc | 18 Handle<EmbedderDataArray> new_array = in EnsureCapacity() local 23 MemCopy(reinterpret_cast<void*>(new_array->slots_start()), in EnsureCapacity() 25 return new_array; in EnsureCapacity()
|
D | debug-objects.cc | 257 Handle<FixedArray> new_array = in ClearBreakPoint() local 265 new_array->set(i - found_count, old_array->get(i)); in ClearBreakPoint() 269 if (found_count > 0) break_point_info->set_break_points(*new_array); in ClearBreakPoint() 297 Handle<FixedArray> new_array = in SetBreakPoint() local 302 new_array->set(i, old_array->get(i)); in SetBreakPoint() 305 new_array->set(old_array->length(), *break_point); in SetBreakPoint() 306 break_point_info->set_break_points(*new_array); in SetBreakPoint()
|
D | feedback-vector.cc | 937 Handle<WeakFixedArray> new_array = CreateArrayOfSize( in ConfigureCloneObject() local 940 new_array->Set(j, array->Get(j)); in ConfigureCloneObject() 942 SetFeedback(*new_array); in ConfigureCloneObject() 943 array = new_array; in ConfigureCloneObject()
|
D | objects.cc | 3998 Handle<FixedArray> new_array = isolate->factory()->NewFixedArray(capacity); in SetAndGrow() local 3999 array->CopyTo(0, *new_array, 0, array->length()); in SetAndGrow() 4000 new_array->FillWithHoles(array->length(), new_array->length()); in SetAndGrow() 4001 new_array->set(index, *value); in SetAndGrow() 4002 return new_array; in SetAndGrow() 4121 auto new_array = Handle<ArrayList>::cast( in EnsureSpace() local 4123 DCHECK_EQ(array->Length(), new_array->Length()); in EnsureSpace() 4124 return new_array; in EnsureSpace() 4362 Handle<WeakArrayList> new_array = WeakArrayList::EnsureSpace( in Compact() local 4374 new_array->Set(copy_to++, element); in Compact() [all …]
|
D | value-serializer.cc | 2431 Handle<FixedArray> new_array = in AddObjectWithID() local 2435 if (!new_array.is_identical_to(id_map_)) { in AddObjectWithID() 2437 id_map_ = isolate_->global_handles()->Create(*new_array); in AddObjectWithID()
|
D | js-objects.cc | 4822 Handle<WeakArrayList> new_array = in LazyRegisterPrototypeUser() local 4825 if (!maybe_registry.is_identical_to(new_array)) { in LazyRegisterPrototypeUser() 4826 proto_info->set_prototype_users(*new_array); in LazyRegisterPrototypeUser()
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-iterator-object.c | 56 ecma_value_t new_array = ecma_op_create_array_object (NULL, 0, false); in ecma_create_array_from_iter_element() local 57 JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (new_array)); in ecma_create_array_from_iter_element() 58 ecma_object_t *new_array_p = ecma_get_object_from_value (new_array); in ecma_create_array_from_iter_element() 78 return new_array; in ecma_create_array_from_iter_element()
|
D | ecma-array-object.c | 728 ecma_value_t new_array = ecma_op_create_array_object (&length_val, 1, true); in ecma_op_array_species_create() local 731 return new_array; in ecma_op_array_species_create()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-vector.hh | 222 Type *new_array = nullptr; in alloc() local 228 new_array = (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); in alloc() 230 if (unlikely (!new_array)) in alloc() 236 arrayZ = new_array; in alloc()
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-iterator-gen.cc | 145 TNode<FixedArray> new_array = values.ToFixedArray(); in IterableToFixedArray() local 146 return new_array; in IterableToFixedArray()
|
/third_party/jerryscript/jerry-core/vm/ |
D | vm.c | 4344 ecma_value_t new_array = ecma_op_create_array_object (arg_p + arg_list_len, in vm_init_exec() local 4347 JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (new_array)); in vm_init_exec() 4348 VM_GET_REGISTER (frame_ctx_p, argument_end) = new_array; in vm_init_exec()
|
/third_party/node/deps/v8/src/heap/ |
D | heap.cc | 6263 Handle<WeakArrayList> new_array = WeakArrayList::EnsureSpace( in CompactWeakArrayList() local 6274 new_array->Set(copy_to++, element); in CompactWeakArrayList() 6276 new_array->set_length(copy_to); in CompactWeakArrayList() 6277 return new_array; in CompactWeakArrayList() 6301 WeakArrayList new_array = PrototypeUsers::Compact( in CompactWeakArrayLists() local 6304 prototype_info->set_prototype_users(new_array); in CompactWeakArrayLists()
|
/third_party/node/deps/v8/src/init/ |
D | bootstrapper.cc | 108 Handle<FixedArray> new_array = in Add() local 110 cache_.CopyTo(0, *new_array, 0, cache_.length()); in Add() 111 cache_ = *new_array; in Add()
|
/third_party/python/Objects/ |
D | unicodeobject.c | 2379 PyObject **new_array = PyMem_Realloc(ids->array, new_size * item_size); in _PyUnicode_FromId() local 2380 if (new_array == NULL) { in _PyUnicode_FromId() 2384 memset(&new_array[ids->size], 0, (new_size - ids->size) * item_size); in _PyUnicode_FromId() 2385 ids->array = new_array; in _PyUnicode_FromId()
|