| Index: runtime/lib/array.cc
|
| diff --git a/runtime/lib/array.cc b/runtime/lib/array.cc
|
| index 9d43816ae508e5b6d46597fe8f27f16c3dcee62e..1a9217b2c69ed531ed0ffb56b716dede3a89020f 100644
|
| --- a/runtime/lib/array.cc
|
| +++ b/runtime/lib/array.cc
|
| @@ -3,8 +3,8 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| #include "platform/assert.h"
|
| -#include "vm/bootstrap_natives.h"
|
| #include "vm/assembler.h"
|
| +#include "vm/bootstrap_natives.h"
|
| #include "vm/exceptions.h"
|
| #include "vm/native_entry.h"
|
| #include "vm/object.h"
|
| @@ -17,7 +17,6 @@ DEFINE_NATIVE_ENTRY(List_allocate, 2) {
|
| return Object::null();
|
| }
|
|
|
| -
|
| DEFINE_NATIVE_ENTRY(List_getIndexed, 2) {
|
| const Array& array = Array::CheckedHandle(arguments->NativeArgAt(0));
|
| GET_NON_NULL_NATIVE_ARGUMENT(Smi, index, arguments->NativeArgAt(1));
|
| @@ -27,7 +26,6 @@ DEFINE_NATIVE_ENTRY(List_getIndexed, 2) {
|
| return array.At(index.Value());
|
| }
|
|
|
| -
|
| DEFINE_NATIVE_ENTRY(List_setIndexed, 3) {
|
| const Array& array = Array::CheckedHandle(arguments->NativeArgAt(0));
|
| GET_NON_NULL_NATIVE_ARGUMENT(Smi, index, arguments->NativeArgAt(1));
|
| @@ -39,13 +37,11 @@ DEFINE_NATIVE_ENTRY(List_setIndexed, 3) {
|
| return Object::null();
|
| }
|
|
|
| -
|
| DEFINE_NATIVE_ENTRY(List_getLength, 1) {
|
| const Array& array = Array::CheckedHandle(arguments->NativeArgAt(0));
|
| return Smi::New(array.Length());
|
| }
|
|
|
| -
|
| // ObjectArray src, int start, int count, bool needTypeArgument.
|
| DEFINE_NATIVE_ENTRY(List_slice, 4) {
|
| const Array& src = Array::CheckedHandle(arguments->NativeArgAt(0));
|
| @@ -67,7 +63,6 @@ DEFINE_NATIVE_ENTRY(List_slice, 4) {
|
| return src.Slice(istart, icount, needs_type_arg.value());
|
| }
|
|
|
| -
|
| // Private factory, expects correct arguments.
|
| DEFINE_NATIVE_ENTRY(ImmutableList_from, 4) {
|
| // Ignore first argument of a thsi factory (type argument).
|
|
|