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

Unified Diff: runtime/lib/byte_array.dart

Issue 10383023: Fix breakage in the JavaScript compilers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/tools/mini_parser.dart ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index df48640e32f15118b38d1e9b24ad0f4c5805f81a..a08cfbaf799bb9709edfdff19b5a258576e45314 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -54,7 +54,7 @@ interface ByteArrayViewable {
int lengthInBytes();
- ByteArray asByteArray([int offsetInBytes, int lengthInBytes]);
+ ByteArray asByteArray([int start, int length]);
}
@@ -284,11 +284,11 @@ abstract class _ByteArrayBase {
"Cannot remove from a non-extendable array");
}
- ByteArray asByteArray([int offsetInBytes = 0, int lengthInBytes]) {
- if (lengthInBytes === null) {
- lengthInBytes = this.lengthInBytes();
+ ByteArray asByteArray([int start = 0, int length]) {
+ if (length === null) {
+ length = this.lengthInBytes();
}
- return new _ByteArrayView(this, offsetInBytes, lengthInBytes);
+ return new _ByteArrayView(this, start, length);
}
int _length() native "ByteArray_getLength";
« no previous file with comments | « lib/compiler/implementation/tools/mini_parser.dart ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698