20 const Array& array = Array::CheckedHandle(zone, arguments->NativeArgAt(0));
23 Instance::CheckedHandle(zone, arguments->NativeArgAt(2));
24 if ((index.Value() < 0) || (index.Value() >= array.
Length())) {
32 const Array& array = Array::CheckedHandle(zone, arguments->NativeArgAt(0));
38 const Array&
src = Array::CheckedHandle(zone, arguments->NativeArgAt(0));
42 intptr_t istart =
start.Value();
43 if ((istart < 0) || (istart >
src.Length())) {
46 intptr_t icount =
count.Value();
48 if ((icount <= 0) || (icount >
src.Length())) {
51 src.Length() - istart);
54 return src.Slice(istart, icount, needs_type_arg.value());
60 const Array& from_array =
61 Array::CheckedHandle(zone, arguments->NativeArgAt(1));
62 const Smi& smi_offset = Smi::CheckedHandle(zone, arguments->NativeArgAt(2));
63 const Smi& smi_length = Smi::CheckedHandle(zone, arguments->NativeArgAt(3));
static ArrayPtr New(intptr_t len, Heap::Space space=Heap::kNew)
ObjectPtr At(intptr_t index) const
void SetAt(intptr_t index, const Object &value) const
static DART_NORETURN void ThrowRangeError(const char *argument_name, const Integer &argument_value, intptr_t expected_from, intptr_t expected_to)
static SmiPtr New(intptr_t value)
DEFINE_NATIVE_ENTRY(List_allocate, 0, 2)
#define GET_NON_NULL_NATIVE_ARGUMENT(type, name, value)