| 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 patch class Int8List { | 5 patch class Int8List { |
| 6 /* patch */ factory Int8List(int length) { | 6 /* patch */ factory Int8List(int length) { |
| 7 return new _Int8Array(length); | 7 return new _Int8Array(length); |
| 8 } | 8 } |
| 9 | 9 |
| 10 /* patch */ factory Int8List.transferable(int length) { | 10 /* patch */ factory Int8List.transferable(int length) { |
| (...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1984 void clear() { | 1984 void clear() { |
| 1985 throw new UnsupportedError( | 1985 throw new UnsupportedError( |
| 1986 "Cannot remove from a non-extendable array"); | 1986 "Cannot remove from a non-extendable array"); |
| 1987 } | 1987 } |
| 1988 | 1988 |
| 1989 int removeLast() { | 1989 int removeLast() { |
| 1990 throw new UnsupportedError( | 1990 throw new UnsupportedError( |
| 1991 "Cannot remove from a non-extendable array"); | 1991 "Cannot remove from a non-extendable array"); |
| 1992 } | 1992 } |
| 1993 | 1993 |
| 1994 void insertAt(int index, int element) { |
| 1995 throw new UnsupportedError( |
| 1996 "Cannot add to a non-extendable array"); |
| 1997 } |
| 1998 |
| 1994 int removeAt(int index) { | 1999 int removeAt(int index) { |
| 1995 throw new UnsupportedError( | 2000 throw new UnsupportedError( |
| 1996 "Cannot remove from a non-extendable array"); | 2001 "Cannot remove from a non-extendable array"); |
| 1997 } | 2002 } |
| 1998 | 2003 |
| 1999 void remove(Object element) { | 2004 void remove(Object element) { |
| 2000 throw new UnsupportedError( | 2005 throw new UnsupportedError( |
| 2001 "Cannot remove from a non-extendable array"); | 2006 "Cannot remove from a non-extendable array"); |
| 2002 } | 2007 } |
| 2003 | 2008 |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2684 ByteArray asByteArray([int start = 0, int length]) { | 2689 ByteArray asByteArray([int start = 0, int length]) { |
| 2685 if (length == null) { | 2690 if (length == null) { |
| 2686 length = this.lengthInBytes(); | 2691 length = this.lengthInBytes(); |
| 2687 } | 2692 } |
| 2688 _rangeCheck(this.length, start, length); | 2693 _rangeCheck(this.length, start, length); |
| 2689 return _array.subByteArray(_offset + start, length); | 2694 return _array.subByteArray(_offset + start, length); |
| 2690 } | 2695 } |
| 2691 | 2696 |
| 2692 static const int _BYTES_PER_ELEMENT = 8; | 2697 static const int _BYTES_PER_ELEMENT = 8; |
| 2693 } | 2698 } |
| OLD | NEW |