Lines Matching defs:source

2 // Use of this source code is governed by a BSD-style license that can be
190 // CopyElements, it copies all of elements from source after source_start to
1008 void CopyElements(Isolate* isolate, Handle<FixedArrayBase> source,
1011 Subclass::CopyElementsImpl(isolate, *source, 0, *destination, source_kind,
1015 void CopyTypedArrayElementsSlice(JSTypedArray source,
1018 Subclass::CopyTypedArrayElementsSliceImpl(source, destination, start, end);
1021 static void CopyTypedArrayElementsSliceImpl(JSTypedArray source,
1027 Object CopyElements(Handle<Object> source, Handle<JSObject> destination,
1029 return Subclass::CopyElementsHandleImpl(source, destination, length,
1033 static Object CopyElementsHandleImpl(Handle<Object> source,
3567 static void CopyTypedArrayElementsSliceImpl(JSTypedArray source,
3572 CHECK(!source.IsDetachedOrOutOfBounds());
3575 DCHECK_LE(end, source.GetLength());
3580 source.buffer().is_shared() || destination.buffer().is_shared()
3583 switch (source.GetElementsKind()) {
3586 ctype* source_data = reinterpret_cast<ctype*>(source.DataPtr()) + start; \
3596 ctype* source_data = reinterpret_cast<ctype*>(source.DataPtr()) + start; \
3631 static void CopyElementsFromTypedArray(JSTypedArray source,
3634 // The source is a typed array, so we know we don't need to do ToNumber
3635 // side-effects, as the source elements will always be a number.
3638 CHECK(!source.IsDetachedOrOutOfBounds());
3643 DCHECK_LE(length, source.GetLength());
3645 ExternalArrayType source_type = source.type();
3649 bool same_size = source.element_size() == destination.element_size();
3653 uint8_t* source_data = static_cast<uint8_t*>(source.DataPtr());
3655 size_t source_byte_length = source.byte_length();
3658 bool source_shared = source.buffer().is_shared();
3666 size_t element_size = source.element_size();
3679 // If the typedarrays are overlapped, clone the source.
3695 switch (source.GetElementsKind()) {
3714 JSArray source) {
3722 Object source_proto = source.map().prototype();
3736 static bool TryCopyElementsFastNumber(Context context, JSArray source,
3740 Isolate* isolate = source.GetIsolate();
3750 DCHECK(source.length().IsNumber() &&
3751 TryNumberToSize(source.length(), &current_length) &&
3759 ElementsKind kind = source.GetElementsKind();
3769 if (HoleyPrototypeLookupRequired(isolate, context, source)) return false;
3777 FixedArray source_store = FixedArray::cast(source.elements());
3786 FixedArray source_store = FixedArray::cast(source.elements());
3800 FixedDoubleArray source_store = FixedDoubleArray::cast(source.elements());
3810 FixedDoubleArray source_store = FixedDoubleArray::cast(source.elements());
3825 static Object CopyElementsHandleSlow(Handle<Object> source,
3835 LookupIterator it(isolate, source, i);
3862 // Proceed with the loop so that we call get getters for the source even
3874 // filled. The caller must do this by passing a source with equal length, if
3876 static Object CopyElementsHandleImpl(Handle<Object> source,
3886 if (source->IsJSTypedArray()) {
3892 Handle<JSTypedArray> source_ta = Handle<JSTypedArray>::cast(source);
3898 // If we have to copy more elements than we have in the source, we need to
3905 } else if (source->IsJSArray()) {
3912 Handle<JSArray> source_js_array = Handle<JSArray>::cast(source);
3917 Handle<JSArray> source_array = Handle<JSArray>::cast(source);
3927 return CopyElementsHandleSlow(source, destination_ta, length, offset);
5227 JSArray source = JSArray::cast(Object(raw_source));
5234 context, source, destination, length, offset)); \
5247 JSTypedArray source = JSTypedArray::cast(Object(raw_source));
5253 Type##ElementsAccessor::CopyElementsFromTypedArray(source, destination, \
5266 JSTypedArray source = JSTypedArray::cast(Object(raw_source));
5270 source, destination, start, end);