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

Unified Diff: sdk/lib/typed_data/dart2js/typed_data_dart2js.dart

Issue 92713003: Use JSUInt32 and JSUInt31 in more places (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « sdk/lib/_internal/lib/js_array.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
diff --git a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
index 2495507a17d5740e412c3af3a6fca4c79e10618e..afb83b33fd9675545a3f56cfd5421eceba442b0c 100644
--- a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
+++ b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
@@ -10,7 +10,7 @@ library dart.typed_data;
import 'dart:collection';
import 'dart:_collection-dev';
-import 'dart:_interceptors' show JSIndexable;
+import 'dart:_interceptors' show JSIndexable, JSUInt31, JSUInt32;
import 'dart:_js_helper'
show Creates, JavaScriptIndexingBehavior, JSName, Null, Returns;
import 'dart:_foreign_helper' show JS, JS_CONST;
@@ -502,7 +502,7 @@ class Float32List
static const int BYTES_PER_ELEMENT = 4;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
num operator[](int index) {
_checkIndex(index, length);
@@ -577,7 +577,7 @@ class Float64List
static const int BYTES_PER_ELEMENT = 8;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
num operator[](int index) {
_checkIndex(index, length);
@@ -653,7 +653,7 @@ class Int16List
static const int BYTES_PER_ELEMENT = 2;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
@@ -726,7 +726,7 @@ class Int32List
static const int BYTES_PER_ELEMENT = 4;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
@@ -796,7 +796,7 @@ class Int8List
static const int BYTES_PER_ELEMENT = 1;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
@@ -870,11 +870,11 @@ class Uint16List
static const int BYTES_PER_ELEMENT = 2;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
- return JS("int", "#[#]", this, index);
+ return JS("JSUInt31", "#[#]", this, index);
}
void operator[]=(int index, int value) {
@@ -944,11 +944,11 @@ class Uint32List
static const int BYTES_PER_ELEMENT = 4;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
- return JS("int", "#[#]", this, index);
+ return JS("JSUInt32", "#[#]", this, index);
}
void operator[]=(int index, int value) {
@@ -1015,11 +1015,11 @@ class Uint8ClampedList extends TypedData with ListMixin<int>,
static const int BYTES_PER_ELEMENT = 1;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
- return JS("int", "#[#]", this, index);
+ return JS("JSUInt31", "#[#]", this, index);
}
void operator[]=(int index, int value) {
@@ -1091,11 +1091,11 @@ class Uint8List
static const int BYTES_PER_ELEMENT = 1;
- int get length => JS("int", '#.length', this);
+ int get length => JS("JSUInt32", '#.length', this);
int operator[](int index) {
_checkIndex(index, length);
- return JS("int", "#[#]", this, index);
+ return JS("JSUInt31", "#[#]", this, index);
}
void operator[]=(int index, int value) {
« no previous file with comments | « sdk/lib/_internal/lib/js_array.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698