| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/assert.h" | 5 #include "platform/assert.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/bootstrap_natives.h" | 8 #include "vm/bootstrap_natives.h" |
| 9 #include "vm/exceptions.h" | 9 #include "vm/exceptions.h" |
| 10 #include "vm/native_entry.h" | 10 #include "vm/native_entry.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 return Object::null(); | 88 return Object::null(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 | 91 |
| 92 DEFINE_NATIVE_ENTRY(Internal_makeListFixedLength, 1) { | 92 DEFINE_NATIVE_ENTRY(Internal_makeListFixedLength, 1) { |
| 93 GET_NON_NULL_NATIVE_ARGUMENT(GrowableObjectArray, array, | 93 GET_NON_NULL_NATIVE_ARGUMENT(GrowableObjectArray, array, |
| 94 arguments->NativeArgAt(0)); | 94 arguments->NativeArgAt(0)); |
| 95 return Array::MakeArray(array); | 95 return Array::MakeArray(array); |
| 96 } | 96 } |
| 97 | 97 |
| 98 |
| 98 DEFINE_NATIVE_ENTRY(Internal_makeFixedListUnmodifiable, 1) { | 99 DEFINE_NATIVE_ENTRY(Internal_makeFixedListUnmodifiable, 1) { |
| 99 GET_NON_NULL_NATIVE_ARGUMENT(Array, array, arguments->NativeArgAt(0)); | 100 GET_NON_NULL_NATIVE_ARGUMENT(Array, array, arguments->NativeArgAt(0)); |
| 100 array.MakeImmutable(); | 101 array.MakeImmutable(); |
| 101 return array.raw(); | 102 return array.raw(); |
| 102 } | 103 } |
| 103 | 104 |
| 104 } // namespace dart | 105 } // namespace dart |
| OLD | NEW |