Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: runtime/lib/byte_array.dart

Issue 12982010: Review changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/byte_array.cc ('k') | runtime/lib/scalarlist_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 int _getUint32(int byteOffset) native "ByteArray_getUint32"; 439 int _getUint32(int byteOffset) native "ByteArray_getUint32";
440 int _setUint32(int byteOffset, int value) native "ByteArray_setUint32"; 440 int _setUint32(int byteOffset, int value) native "ByteArray_setUint32";
441 441
442 int _getInt64(int byteOffset) native "ByteArray_getInt64"; 442 int _getInt64(int byteOffset) native "ByteArray_getInt64";
443 int _setInt64(int byteOffset, int value) native "ByteArray_setInt64"; 443 int _setInt64(int byteOffset, int value) native "ByteArray_setInt64";
444 444
445 int _getUint64(int byteOffset) native "ByteArray_getUint64"; 445 int _getUint64(int byteOffset) native "ByteArray_getUint64";
446 int _setUint64(int byteOffset, int value) native "ByteArray_setUint64"; 446 int _setUint64(int byteOffset, int value) native "ByteArray_setUint64";
447 447
448 Float32x4 _getFloat32x4(int byteOffset) native "ByteArray_getFloat32x4";
449 int _setFloat32x4(int byteOffset, Float32x4 value)
450 native "ByteArray_setFloat32x4";
451
452 double _getFloat32(int byteOffset) native "ByteArray_getFloat32"; 448 double _getFloat32(int byteOffset) native "ByteArray_getFloat32";
453 int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32"; 449 int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32";
454 450
455 double _getFloat64(int byteOffset) native "ByteArray_getFloat64"; 451 double _getFloat64(int byteOffset) native "ByteArray_getFloat64";
456 int _setFloat64(int byteOffset, double value) native "ByteArray_setFloat64"; 452 int _setFloat64(int byteOffset, double value) native "ByteArray_setFloat64";
457 } 453 }
458 454
459 455
460 int _toInt(int value, int mask) { 456 int _toInt(int value, int mask) {
461 value &= mask; 457 value &= mask;
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 return _array._setInt64(_offset + byteOffset, value); 1999 return _array._setInt64(_offset + byteOffset, value);
2004 } 2000 }
2005 2001
2006 int getUint64(int byteOffset) { 2002 int getUint64(int byteOffset) {
2007 return _array._getUint64(_offset + byteOffset); 2003 return _array._getUint64(_offset + byteOffset);
2008 } 2004 }
2009 int setUint64(int byteOffset, int value) { 2005 int setUint64(int byteOffset, int value) {
2010 return _array._setUint64(_offset + byteOffset, value); 2006 return _array._setUint64(_offset + byteOffset, value);
2011 } 2007 }
2012 2008
2013 Float32x4 getFloat32x4(int byteOffset) {
2014 return _array._getFloat32x4(_offset + byteOffset);
2015 }
2016 int setFloat32x4(int byteOffset, Float32x4 value) {
2017 return _array._setFloat32x4(_offset + byteOffset, value);
2018 }
2019
2020 double getFloat32(int byteOffset) { 2009 double getFloat32(int byteOffset) {
2021 return _array._getFloat32(_offset + byteOffset); 2010 return _array._getFloat32(_offset + byteOffset);
2022 } 2011 }
2023 int setFloat32(int byteOffset, double value) { 2012 int setFloat32(int byteOffset, double value) {
2024 return _array._setFloat32(_offset + byteOffset, value); 2013 return _array._setFloat32(_offset + byteOffset, value);
2025 } 2014 }
2026 2015
2027 double getFloat64(int byteOffset) { 2016 double getFloat64(int byteOffset) {
2028 return _array._getFloat64(_offset + byteOffset); 2017 return _array._getFloat64(_offset + byteOffset);
2029 } 2018 }
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 ByteArray asByteArray([int start = 0, int length]) { 2835 ByteArray asByteArray([int start = 0, int length]) {
2847 if (length == null) { 2836 if (length == null) {
2848 length = this.lengthInBytes(); 2837 length = this.lengthInBytes();
2849 } 2838 }
2850 _rangeCheck(this.length, start, length); 2839 _rangeCheck(this.length, start, length);
2851 return _array.subByteArray(_offset + start, length); 2840 return _array.subByteArray(_offset + start, length);
2852 } 2841 }
2853 2842
2854 static const int _BYTES_PER_ELEMENT = 8; 2843 static const int _BYTES_PER_ELEMENT = 8;
2855 } 2844 }
OLDNEW
« no previous file with comments | « runtime/lib/byte_array.cc ('k') | runtime/lib/scalarlist_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698