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

Unified Diff: lib/runtime/dart/typed_data.js

Issue 1043003002: keep mixin and interface implementation info at runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/math.js ('k') | lib/runtime/dart_runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/typed_data.js
diff --git a/lib/runtime/dart/typed_data.js b/lib/runtime/dart/typed_data.js
index abc9906b9b8de7eb47fc0bc3ea3c0599be815efa..ff49c79b449a7edf73894b896a289d9eed98818f 100644
--- a/lib/runtime/dart/typed_data.js
+++ b/lib/runtime/dart/typed_data.js
@@ -32,6 +32,7 @@ var typed_data;
return buffer.asByteData(offsetInBytes, length);
}
}
+ ByteData[dart.implements] = [TypedData];
dart.defineNamedConstructor(ByteData, 'view');
class Int8List extends core.Object {
Int8List(length) {
@@ -48,6 +49,7 @@ var typed_data;
return buffer.asInt8List(offsetInBytes, length);
}
}
+ Int8List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Int8List, 'fromList');
dart.defineNamedConstructor(Int8List, 'view');
Int8List.BYTES_PER_ELEMENT = 1;
@@ -66,6 +68,7 @@ var typed_data;
return buffer.asUint8List(offsetInBytes, length);
}
}
+ Uint8List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Uint8List, 'fromList');
dart.defineNamedConstructor(Uint8List, 'view');
Uint8List.BYTES_PER_ELEMENT = 1;
@@ -84,6 +87,7 @@ var typed_data;
return buffer.asUint8ClampedList(offsetInBytes, length);
}
}
+ Uint8ClampedList[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Uint8ClampedList, 'fromList');
dart.defineNamedConstructor(Uint8ClampedList, 'view');
Uint8ClampedList.BYTES_PER_ELEMENT = 1;
@@ -102,6 +106,7 @@ var typed_data;
return buffer.asInt16List(offsetInBytes, length);
}
}
+ Int16List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Int16List, 'fromList');
dart.defineNamedConstructor(Int16List, 'view');
Int16List.BYTES_PER_ELEMENT = 2;
@@ -120,6 +125,7 @@ var typed_data;
return buffer.asUint16List(offsetInBytes, length);
}
}
+ Uint16List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Uint16List, 'fromList');
dart.defineNamedConstructor(Uint16List, 'view');
Uint16List.BYTES_PER_ELEMENT = 2;
@@ -138,6 +144,7 @@ var typed_data;
return buffer.asInt32List(offsetInBytes, length);
}
}
+ Int32List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Int32List, 'fromList');
dart.defineNamedConstructor(Int32List, 'view');
Int32List.BYTES_PER_ELEMENT = 4;
@@ -156,6 +163,7 @@ var typed_data;
return buffer.asUint32List(offsetInBytes, length);
}
}
+ Uint32List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Uint32List, 'fromList');
dart.defineNamedConstructor(Uint32List, 'view');
Uint32List.BYTES_PER_ELEMENT = 4;
@@ -174,6 +182,7 @@ var typed_data;
return buffer.asInt64List(offsetInBytes, length);
}
}
+ Int64List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Int64List, 'fromList');
dart.defineNamedConstructor(Int64List, 'view');
Int64List.BYTES_PER_ELEMENT = 8;
@@ -192,6 +201,7 @@ var typed_data;
return buffer.asUint64List(offsetInBytes, length);
}
}
+ Uint64List[dart.implements] = [core.List$(core.int), TypedData];
dart.defineNamedConstructor(Uint64List, 'fromList');
dart.defineNamedConstructor(Uint64List, 'view');
Uint64List.BYTES_PER_ELEMENT = 8;
@@ -210,6 +220,7 @@ var typed_data;
return buffer.asFloat32List(offsetInBytes, length);
}
}
+ Float32List[dart.implements] = [core.List$(core.double), TypedData];
dart.defineNamedConstructor(Float32List, 'fromList');
dart.defineNamedConstructor(Float32List, 'view');
Float32List.BYTES_PER_ELEMENT = 4;
@@ -228,6 +239,7 @@ var typed_data;
return buffer.asFloat64List(offsetInBytes, length);
}
}
+ Float64List[dart.implements] = [core.List$(core.double), TypedData];
dart.defineNamedConstructor(Float64List, 'fromList');
dart.defineNamedConstructor(Float64List, 'view');
Float64List.BYTES_PER_ELEMENT = 8;
@@ -246,6 +258,7 @@ var typed_data;
return buffer.asFloat32x4List(offsetInBytes, length);
}
}
+ Float32x4List[dart.implements] = [core.List$(Float32x4), TypedData];
dart.defineNamedConstructor(Float32x4List, 'fromList');
dart.defineNamedConstructor(Float32x4List, 'view');
Float32x4List.BYTES_PER_ELEMENT = 16;
@@ -264,6 +277,7 @@ var typed_data;
return buffer.asInt32x4List(offsetInBytes, length);
}
}
+ Int32x4List[dart.implements] = [core.List$(Int32x4), TypedData];
dart.defineNamedConstructor(Int32x4List, 'fromList');
dart.defineNamedConstructor(Int32x4List, 'view');
Int32x4List.BYTES_PER_ELEMENT = 16;
@@ -282,6 +296,7 @@ var typed_data;
return buffer.asFloat64x2List(offsetInBytes, length);
}
}
+ Float64x2List[dart.implements] = [core.List$(Float64x2), TypedData];
dart.defineNamedConstructor(Float64x2List, 'fromList');
dart.defineNamedConstructor(Float64x2List, 'view');
Float64x2List.BYTES_PER_ELEMENT = 16;
« no previous file with comments | « lib/runtime/dart/math.js ('k') | lib/runtime/dart_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698