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

Side by Side Diff: lib/runtime/dart/typed_data.js

Issue 1355893003: Rewire DDC to use the analyzer task model (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix for identifiers Created 5 years, 3 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
OLDNEW
1 dart_library.library('dart/typed_data', null, /* Imports */[ 1 dart_library.library('dart/typed_data', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 'dart/_native_typed_data' 5 'dart/_native_typed_data'
6 ], function(exports, dart, core, _native_typed_data) { 6 ], function(exports, dart, core, _native_typed_data) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 class ByteBuffer extends core.Object {} 9 class ByteBuffer extends core.Object {}
10 class TypedData extends core.Object {} 10 class TypedData extends core.Object {}
11 let _littleEndian = Symbol('_littleEndian'); 11 let _littleEndian = Symbol('_littleEndian');
12 class Endianness extends core.Object { 12 class Endianness extends core.Object {
13 _(littleEndian) { 13 _(littleEndian) {
14 this[_littleEndian] = littleEndian; 14 this[_littleEndian] = littleEndian;
15 } 15 }
16 } 16 }
17 dart.defineNamedConstructor(Endianness, '_'); 17 dart.defineNamedConstructor(Endianness, '_');
18 dart.setSignature(Endianness, { 18 dart.setSignature(Endianness, {
19 constructors: () => ({_: [Endianness, [core.bool]]}) 19 constructors: () => ({_: [Endianness, [core.bool]]})
20 }); 20 });
21 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); 21 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
22 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); 22 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
23 dart.defineLazyProperties(Endianness, { 23 dart.defineLazyProperties(Endianness, {
24 get HOST_ENDIAN() { 24 get HOST_ENDIAN() {
25 return ByteData.view(Uint16List.fromList(dart.list([1], core.int)).buffer) .getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN; 25 return dart.dcall(ByteData.view(Uint16List.fromList(dart.list([1], core.in t)).buffer).getInt8, 0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN;
26 } 26 }
27 }); 27 });
28 class ByteData extends core.Object { 28 class ByteData extends core.Object {
29 static new(length) { 29 static new(length) {
30 return _native_typed_data.NativeByteData.new(length); 30 return _native_typed_data.NativeByteData.new(length);
31 } 31 }
32 static view(buffer, offsetInBytes, length) { 32 static view(buffer, offsetInBytes, length) {
33 if (offsetInBytes === void 0) 33 if (offsetInBytes === void 0)
34 offsetInBytes = 0; 34 offsetInBytes = 0;
35 if (length === void 0) 35 if (length === void 0)
36 length = null; 36 length = null;
37 return buffer.asByteData(offsetInBytes, length); 37 return dart.dcall(buffer.asByteData, offsetInBytes, length);
38 } 38 }
39 } 39 }
40 ByteData[dart.implements] = () => [TypedData]; 40 ByteData[dart.implements] = () => [TypedData];
41 dart.setSignature(ByteData, { 41 dart.setSignature(ByteData, {
42 constructors: () => ({ 42 constructors: () => ({
43 new: [ByteData, [core.int]], 43 new: [ByteData, [core.int]],
44 view: [ByteData, [ByteBuffer], [core.int, core.int]] 44 view: [ByteData, [ByteBuffer], [core.int, core.int]]
45 }) 45 })
46 }); 46 });
47 class Int8List extends core.Object { 47 class Int8List extends core.Object {
48 static new(length) { 48 static new(length) {
49 return _native_typed_data.NativeInt8List.new(length); 49 return _native_typed_data.NativeInt8List.new(length);
50 } 50 }
51 static fromList(elements) { 51 static fromList(elements) {
52 return _native_typed_data.NativeInt8List.fromList(elements); 52 return _native_typed_data.NativeInt8List.fromList(elements);
53 } 53 }
54 static view(buffer, offsetInBytes, length) { 54 static view(buffer, offsetInBytes, length) {
55 if (offsetInBytes === void 0) 55 if (offsetInBytes === void 0)
56 offsetInBytes = 0; 56 offsetInBytes = 0;
57 if (length === void 0) 57 if (length === void 0)
58 length = null; 58 length = null;
59 return buffer.asInt8List(offsetInBytes, length); 59 return dart.dcall(buffer.asInt8List, offsetInBytes, length);
60 } 60 }
61 } 61 }
62 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; 62 Int8List[dart.implements] = () => [core.List$(core.int), TypedData];
63 dart.setSignature(Int8List, { 63 dart.setSignature(Int8List, {
64 constructors: () => ({ 64 constructors: () => ({
65 new: [Int8List, [core.int]], 65 new: [Int8List, [core.int]],
66 fromList: [Int8List, [core.List$(core.int)]], 66 fromList: [Int8List, [core.List$(core.int)]],
67 view: [Int8List, [ByteBuffer], [core.int, core.int]] 67 view: [Int8List, [ByteBuffer], [core.int, core.int]]
68 }) 68 })
69 }); 69 });
70 Int8List.BYTES_PER_ELEMENT = 1; 70 Int8List.BYTES_PER_ELEMENT = 1;
71 class Uint8List extends core.Object { 71 class Uint8List extends core.Object {
72 static new(length) { 72 static new(length) {
73 return _native_typed_data.NativeUint8List.new(length); 73 return _native_typed_data.NativeUint8List.new(length);
74 } 74 }
75 static fromList(elements) { 75 static fromList(elements) {
76 return _native_typed_data.NativeUint8List.fromList(elements); 76 return _native_typed_data.NativeUint8List.fromList(elements);
77 } 77 }
78 static view(buffer, offsetInBytes, length) { 78 static view(buffer, offsetInBytes, length) {
79 if (offsetInBytes === void 0) 79 if (offsetInBytes === void 0)
80 offsetInBytes = 0; 80 offsetInBytes = 0;
81 if (length === void 0) 81 if (length === void 0)
82 length = null; 82 length = null;
83 return buffer.asUint8List(offsetInBytes, length); 83 return dart.dcall(buffer.asUint8List, offsetInBytes, length);
84 } 84 }
85 } 85 }
86 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; 86 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData];
87 dart.setSignature(Uint8List, { 87 dart.setSignature(Uint8List, {
88 constructors: () => ({ 88 constructors: () => ({
89 new: [Uint8List, [core.int]], 89 new: [Uint8List, [core.int]],
90 fromList: [Uint8List, [core.List$(core.int)]], 90 fromList: [Uint8List, [core.List$(core.int)]],
91 view: [Uint8List, [ByteBuffer], [core.int, core.int]] 91 view: [Uint8List, [ByteBuffer], [core.int, core.int]]
92 }) 92 })
93 }); 93 });
94 Uint8List.BYTES_PER_ELEMENT = 1; 94 Uint8List.BYTES_PER_ELEMENT = 1;
95 class Uint8ClampedList extends core.Object { 95 class Uint8ClampedList extends core.Object {
96 static new(length) { 96 static new(length) {
97 return _native_typed_data.NativeUint8ClampedList.new(length); 97 return _native_typed_data.NativeUint8ClampedList.new(length);
98 } 98 }
99 static fromList(elements) { 99 static fromList(elements) {
100 return _native_typed_data.NativeUint8ClampedList.fromList(elements); 100 return _native_typed_data.NativeUint8ClampedList.fromList(elements);
101 } 101 }
102 static view(buffer, offsetInBytes, length) { 102 static view(buffer, offsetInBytes, length) {
103 if (offsetInBytes === void 0) 103 if (offsetInBytes === void 0)
104 offsetInBytes = 0; 104 offsetInBytes = 0;
105 if (length === void 0) 105 if (length === void 0)
106 length = null; 106 length = null;
107 return buffer.asUint8ClampedList(offsetInBytes, length); 107 return dart.dcall(buffer.asUint8ClampedList, offsetInBytes, length);
108 } 108 }
109 } 109 }
110 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; 110 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData];
111 dart.setSignature(Uint8ClampedList, { 111 dart.setSignature(Uint8ClampedList, {
112 constructors: () => ({ 112 constructors: () => ({
113 new: [Uint8ClampedList, [core.int]], 113 new: [Uint8ClampedList, [core.int]],
114 fromList: [Uint8ClampedList, [core.List$(core.int)]], 114 fromList: [Uint8ClampedList, [core.List$(core.int)]],
115 view: [Uint8ClampedList, [ByteBuffer], [core.int, core.int]] 115 view: [Uint8ClampedList, [ByteBuffer], [core.int, core.int]]
116 }) 116 })
117 }); 117 });
118 Uint8ClampedList.BYTES_PER_ELEMENT = 1; 118 Uint8ClampedList.BYTES_PER_ELEMENT = 1;
119 class Int16List extends core.Object { 119 class Int16List extends core.Object {
120 static new(length) { 120 static new(length) {
121 return _native_typed_data.NativeInt16List.new(length); 121 return _native_typed_data.NativeInt16List.new(length);
122 } 122 }
123 static fromList(elements) { 123 static fromList(elements) {
124 return _native_typed_data.NativeInt16List.fromList(elements); 124 return _native_typed_data.NativeInt16List.fromList(elements);
125 } 125 }
126 static view(buffer, offsetInBytes, length) { 126 static view(buffer, offsetInBytes, length) {
127 if (offsetInBytes === void 0) 127 if (offsetInBytes === void 0)
128 offsetInBytes = 0; 128 offsetInBytes = 0;
129 if (length === void 0) 129 if (length === void 0)
130 length = null; 130 length = null;
131 return buffer.asInt16List(offsetInBytes, length); 131 return dart.dcall(buffer.asInt16List, offsetInBytes, length);
132 } 132 }
133 } 133 }
134 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; 134 Int16List[dart.implements] = () => [core.List$(core.int), TypedData];
135 dart.setSignature(Int16List, { 135 dart.setSignature(Int16List, {
136 constructors: () => ({ 136 constructors: () => ({
137 new: [Int16List, [core.int]], 137 new: [Int16List, [core.int]],
138 fromList: [Int16List, [core.List$(core.int)]], 138 fromList: [Int16List, [core.List$(core.int)]],
139 view: [Int16List, [ByteBuffer], [core.int, core.int]] 139 view: [Int16List, [ByteBuffer], [core.int, core.int]]
140 }) 140 })
141 }); 141 });
142 Int16List.BYTES_PER_ELEMENT = 2; 142 Int16List.BYTES_PER_ELEMENT = 2;
143 class Uint16List extends core.Object { 143 class Uint16List extends core.Object {
144 static new(length) { 144 static new(length) {
145 return _native_typed_data.NativeUint16List.new(length); 145 return _native_typed_data.NativeUint16List.new(length);
146 } 146 }
147 static fromList(elements) { 147 static fromList(elements) {
148 return _native_typed_data.NativeUint16List.fromList(elements); 148 return _native_typed_data.NativeUint16List.fromList(elements);
149 } 149 }
150 static view(buffer, offsetInBytes, length) { 150 static view(buffer, offsetInBytes, length) {
151 if (offsetInBytes === void 0) 151 if (offsetInBytes === void 0)
152 offsetInBytes = 0; 152 offsetInBytes = 0;
153 if (length === void 0) 153 if (length === void 0)
154 length = null; 154 length = null;
155 return buffer.asUint16List(offsetInBytes, length); 155 return dart.dcall(buffer.asUint16List, offsetInBytes, length);
156 } 156 }
157 } 157 }
158 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; 158 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData];
159 dart.setSignature(Uint16List, { 159 dart.setSignature(Uint16List, {
160 constructors: () => ({ 160 constructors: () => ({
161 new: [Uint16List, [core.int]], 161 new: [Uint16List, [core.int]],
162 fromList: [Uint16List, [core.List$(core.int)]], 162 fromList: [Uint16List, [core.List$(core.int)]],
163 view: [Uint16List, [ByteBuffer], [core.int, core.int]] 163 view: [Uint16List, [ByteBuffer], [core.int, core.int]]
164 }) 164 })
165 }); 165 });
166 Uint16List.BYTES_PER_ELEMENT = 2; 166 Uint16List.BYTES_PER_ELEMENT = 2;
167 class Int32List extends core.Object { 167 class Int32List extends core.Object {
168 static new(length) { 168 static new(length) {
169 return _native_typed_data.NativeInt32List.new(length); 169 return _native_typed_data.NativeInt32List.new(length);
170 } 170 }
171 static fromList(elements) { 171 static fromList(elements) {
172 return _native_typed_data.NativeInt32List.fromList(elements); 172 return _native_typed_data.NativeInt32List.fromList(elements);
173 } 173 }
174 static view(buffer, offsetInBytes, length) { 174 static view(buffer, offsetInBytes, length) {
175 if (offsetInBytes === void 0) 175 if (offsetInBytes === void 0)
176 offsetInBytes = 0; 176 offsetInBytes = 0;
177 if (length === void 0) 177 if (length === void 0)
178 length = null; 178 length = null;
179 return buffer.asInt32List(offsetInBytes, length); 179 return dart.dcall(buffer.asInt32List, offsetInBytes, length);
180 } 180 }
181 } 181 }
182 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; 182 Int32List[dart.implements] = () => [core.List$(core.int), TypedData];
183 dart.setSignature(Int32List, { 183 dart.setSignature(Int32List, {
184 constructors: () => ({ 184 constructors: () => ({
185 new: [Int32List, [core.int]], 185 new: [Int32List, [core.int]],
186 fromList: [Int32List, [core.List$(core.int)]], 186 fromList: [Int32List, [core.List$(core.int)]],
187 view: [Int32List, [ByteBuffer], [core.int, core.int]] 187 view: [Int32List, [ByteBuffer], [core.int, core.int]]
188 }) 188 })
189 }); 189 });
190 Int32List.BYTES_PER_ELEMENT = 4; 190 Int32List.BYTES_PER_ELEMENT = 4;
191 class Uint32List extends core.Object { 191 class Uint32List extends core.Object {
192 static new(length) { 192 static new(length) {
193 return _native_typed_data.NativeUint32List.new(length); 193 return _native_typed_data.NativeUint32List.new(length);
194 } 194 }
195 static fromList(elements) { 195 static fromList(elements) {
196 return _native_typed_data.NativeUint32List.fromList(elements); 196 return _native_typed_data.NativeUint32List.fromList(elements);
197 } 197 }
198 static view(buffer, offsetInBytes, length) { 198 static view(buffer, offsetInBytes, length) {
199 if (offsetInBytes === void 0) 199 if (offsetInBytes === void 0)
200 offsetInBytes = 0; 200 offsetInBytes = 0;
201 if (length === void 0) 201 if (length === void 0)
202 length = null; 202 length = null;
203 return buffer.asUint32List(offsetInBytes, length); 203 return dart.dcall(buffer.asUint32List, offsetInBytes, length);
204 } 204 }
205 } 205 }
206 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; 206 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData];
207 dart.setSignature(Uint32List, { 207 dart.setSignature(Uint32List, {
208 constructors: () => ({ 208 constructors: () => ({
209 new: [Uint32List, [core.int]], 209 new: [Uint32List, [core.int]],
210 fromList: [Uint32List, [core.List$(core.int)]], 210 fromList: [Uint32List, [core.List$(core.int)]],
211 view: [Uint32List, [ByteBuffer], [core.int, core.int]] 211 view: [Uint32List, [ByteBuffer], [core.int, core.int]]
212 }) 212 })
213 }); 213 });
214 Uint32List.BYTES_PER_ELEMENT = 4; 214 Uint32List.BYTES_PER_ELEMENT = 4;
215 class Int64List extends core.Object { 215 class Int64List extends core.Object {
216 static new(length) { 216 static new(length) {
217 dart.throw(new core.UnsupportedError("Int64List not supported by dart2js." )); 217 dart.throw(new core.UnsupportedError("Int64List not supported by dart2js." ));
218 } 218 }
219 static fromList(elements) { 219 static fromList(elements) {
220 dart.throw(new core.UnsupportedError("Int64List not supported by dart2js." )); 220 dart.throw(new core.UnsupportedError("Int64List not supported by dart2js." ));
221 } 221 }
222 static view(buffer, offsetInBytes, length) { 222 static view(buffer, offsetInBytes, length) {
223 if (offsetInBytes === void 0) 223 if (offsetInBytes === void 0)
224 offsetInBytes = 0; 224 offsetInBytes = 0;
225 if (length === void 0) 225 if (length === void 0)
226 length = null; 226 length = null;
227 return buffer.asInt64List(offsetInBytes, length); 227 return dart.dcall(buffer.asInt64List, offsetInBytes, length);
228 } 228 }
229 } 229 }
230 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; 230 Int64List[dart.implements] = () => [core.List$(core.int), TypedData];
231 dart.setSignature(Int64List, { 231 dart.setSignature(Int64List, {
232 constructors: () => ({ 232 constructors: () => ({
233 new: [Int64List, [core.int]], 233 new: [Int64List, [core.int]],
234 fromList: [Int64List, [core.List$(core.int)]], 234 fromList: [Int64List, [core.List$(core.int)]],
235 view: [Int64List, [ByteBuffer], [core.int, core.int]] 235 view: [Int64List, [ByteBuffer], [core.int, core.int]]
236 }) 236 })
237 }); 237 });
238 Int64List.BYTES_PER_ELEMENT = 8; 238 Int64List.BYTES_PER_ELEMENT = 8;
239 class Uint64List extends core.Object { 239 class Uint64List extends core.Object {
240 static new(length) { 240 static new(length) {
241 dart.throw(new core.UnsupportedError("Uint64List not supported by dart2js. ")); 241 dart.throw(new core.UnsupportedError("Uint64List not supported by dart2js. "));
242 } 242 }
243 static fromList(elements) { 243 static fromList(elements) {
244 dart.throw(new core.UnsupportedError("Uint64List not supported by dart2js. ")); 244 dart.throw(new core.UnsupportedError("Uint64List not supported by dart2js. "));
245 } 245 }
246 static view(buffer, offsetInBytes, length) { 246 static view(buffer, offsetInBytes, length) {
247 if (offsetInBytes === void 0) 247 if (offsetInBytes === void 0)
248 offsetInBytes = 0; 248 offsetInBytes = 0;
249 if (length === void 0) 249 if (length === void 0)
250 length = null; 250 length = null;
251 return buffer.asUint64List(offsetInBytes, length); 251 return dart.dcall(buffer.asUint64List, offsetInBytes, length);
252 } 252 }
253 } 253 }
254 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; 254 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData];
255 dart.setSignature(Uint64List, { 255 dart.setSignature(Uint64List, {
256 constructors: () => ({ 256 constructors: () => ({
257 new: [Uint64List, [core.int]], 257 new: [Uint64List, [core.int]],
258 fromList: [Uint64List, [core.List$(core.int)]], 258 fromList: [Uint64List, [core.List$(core.int)]],
259 view: [Uint64List, [ByteBuffer], [core.int, core.int]] 259 view: [Uint64List, [ByteBuffer], [core.int, core.int]]
260 }) 260 })
261 }); 261 });
262 Uint64List.BYTES_PER_ELEMENT = 8; 262 Uint64List.BYTES_PER_ELEMENT = 8;
263 class Float32List extends core.Object { 263 class Float32List extends core.Object {
264 static new(length) { 264 static new(length) {
265 return _native_typed_data.NativeFloat32List.new(length); 265 return _native_typed_data.NativeFloat32List.new(length);
266 } 266 }
267 static fromList(elements) { 267 static fromList(elements) {
268 return _native_typed_data.NativeFloat32List.fromList(elements); 268 return _native_typed_data.NativeFloat32List.fromList(elements);
269 } 269 }
270 static view(buffer, offsetInBytes, length) { 270 static view(buffer, offsetInBytes, length) {
271 if (offsetInBytes === void 0) 271 if (offsetInBytes === void 0)
272 offsetInBytes = 0; 272 offsetInBytes = 0;
273 if (length === void 0) 273 if (length === void 0)
274 length = null; 274 length = null;
275 return buffer.asFloat32List(offsetInBytes, length); 275 return dart.dcall(buffer.asFloat32List, offsetInBytes, length);
276 } 276 }
277 } 277 }
278 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; 278 Float32List[dart.implements] = () => [core.List$(core.double), TypedData];
279 dart.setSignature(Float32List, { 279 dart.setSignature(Float32List, {
280 constructors: () => ({ 280 constructors: () => ({
281 new: [Float32List, [core.int]], 281 new: [Float32List, [core.int]],
282 fromList: [Float32List, [core.List$(core.double)]], 282 fromList: [Float32List, [core.List$(core.double)]],
283 view: [Float32List, [ByteBuffer], [core.int, core.int]] 283 view: [Float32List, [ByteBuffer], [core.int, core.int]]
284 }) 284 })
285 }); 285 });
286 Float32List.BYTES_PER_ELEMENT = 4; 286 Float32List.BYTES_PER_ELEMENT = 4;
287 class Float64List extends core.Object { 287 class Float64List extends core.Object {
288 static new(length) { 288 static new(length) {
289 return _native_typed_data.NativeFloat64List.new(length); 289 return _native_typed_data.NativeFloat64List.new(length);
290 } 290 }
291 static fromList(elements) { 291 static fromList(elements) {
292 return _native_typed_data.NativeFloat64List.fromList(elements); 292 return _native_typed_data.NativeFloat64List.fromList(elements);
293 } 293 }
294 static view(buffer, offsetInBytes, length) { 294 static view(buffer, offsetInBytes, length) {
295 if (offsetInBytes === void 0) 295 if (offsetInBytes === void 0)
296 offsetInBytes = 0; 296 offsetInBytes = 0;
297 if (length === void 0) 297 if (length === void 0)
298 length = null; 298 length = null;
299 return buffer.asFloat64List(offsetInBytes, length); 299 return dart.dcall(buffer.asFloat64List, offsetInBytes, length);
300 } 300 }
301 } 301 }
302 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; 302 Float64List[dart.implements] = () => [core.List$(core.double), TypedData];
303 dart.setSignature(Float64List, { 303 dart.setSignature(Float64List, {
304 constructors: () => ({ 304 constructors: () => ({
305 new: [Float64List, [core.int]], 305 new: [Float64List, [core.int]],
306 fromList: [Float64List, [core.List$(core.double)]], 306 fromList: [Float64List, [core.List$(core.double)]],
307 view: [Float64List, [ByteBuffer], [core.int, core.int]] 307 view: [Float64List, [ByteBuffer], [core.int, core.int]]
308 }) 308 })
309 }); 309 });
310 Float64List.BYTES_PER_ELEMENT = 8; 310 Float64List.BYTES_PER_ELEMENT = 8;
311 class Float32x4List extends core.Object { 311 class Float32x4List extends core.Object {
312 static new(length) { 312 static new(length) {
313 return new _native_typed_data.NativeFloat32x4List(length); 313 return new _native_typed_data.NativeFloat32x4List(length);
314 } 314 }
315 static fromList(elements) { 315 static fromList(elements) {
316 return _native_typed_data.NativeFloat32x4List.fromList(elements); 316 return _native_typed_data.NativeFloat32x4List.fromList(elements);
317 } 317 }
318 static view(buffer, offsetInBytes, length) { 318 static view(buffer, offsetInBytes, length) {
319 if (offsetInBytes === void 0) 319 if (offsetInBytes === void 0)
320 offsetInBytes = 0; 320 offsetInBytes = 0;
321 if (length === void 0) 321 if (length === void 0)
322 length = null; 322 length = null;
323 return buffer.asFloat32x4List(offsetInBytes, length); 323 return dart.dcall(buffer.asFloat32x4List, offsetInBytes, length);
324 } 324 }
325 } 325 }
326 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; 326 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData];
327 dart.setSignature(Float32x4List, { 327 dart.setSignature(Float32x4List, {
328 constructors: () => ({ 328 constructors: () => ({
329 new: [Float32x4List, [core.int]], 329 new: [Float32x4List, [core.int]],
330 fromList: [Float32x4List, [core.List$(Float32x4)]], 330 fromList: [Float32x4List, [core.List$(Float32x4)]],
331 view: [Float32x4List, [ByteBuffer], [core.int, core.int]] 331 view: [Float32x4List, [ByteBuffer], [core.int, core.int]]
332 }) 332 })
333 }); 333 });
334 Float32x4List.BYTES_PER_ELEMENT = 16; 334 Float32x4List.BYTES_PER_ELEMENT = 16;
335 class Int32x4List extends core.Object { 335 class Int32x4List extends core.Object {
336 static new(length) { 336 static new(length) {
337 return new _native_typed_data.NativeInt32x4List(length); 337 return new _native_typed_data.NativeInt32x4List(length);
338 } 338 }
339 static fromList(elements) { 339 static fromList(elements) {
340 return _native_typed_data.NativeInt32x4List.fromList(elements); 340 return _native_typed_data.NativeInt32x4List.fromList(elements);
341 } 341 }
342 static view(buffer, offsetInBytes, length) { 342 static view(buffer, offsetInBytes, length) {
343 if (offsetInBytes === void 0) 343 if (offsetInBytes === void 0)
344 offsetInBytes = 0; 344 offsetInBytes = 0;
345 if (length === void 0) 345 if (length === void 0)
346 length = null; 346 length = null;
347 return buffer.asInt32x4List(offsetInBytes, length); 347 return dart.dcall(buffer.asInt32x4List, offsetInBytes, length);
348 } 348 }
349 } 349 }
350 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; 350 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData];
351 dart.setSignature(Int32x4List, { 351 dart.setSignature(Int32x4List, {
352 constructors: () => ({ 352 constructors: () => ({
353 new: [Int32x4List, [core.int]], 353 new: [Int32x4List, [core.int]],
354 fromList: [Int32x4List, [core.List$(Int32x4)]], 354 fromList: [Int32x4List, [core.List$(Int32x4)]],
355 view: [Int32x4List, [ByteBuffer], [core.int, core.int]] 355 view: [Int32x4List, [ByteBuffer], [core.int, core.int]]
356 }) 356 })
357 }); 357 });
358 Int32x4List.BYTES_PER_ELEMENT = 16; 358 Int32x4List.BYTES_PER_ELEMENT = 16;
359 class Float64x2List extends core.Object { 359 class Float64x2List extends core.Object {
360 static new(length) { 360 static new(length) {
361 return new _native_typed_data.NativeFloat64x2List(length); 361 return new _native_typed_data.NativeFloat64x2List(length);
362 } 362 }
363 static fromList(elements) { 363 static fromList(elements) {
364 return _native_typed_data.NativeFloat64x2List.fromList(elements); 364 return _native_typed_data.NativeFloat64x2List.fromList(elements);
365 } 365 }
366 static view(buffer, offsetInBytes, length) { 366 static view(buffer, offsetInBytes, length) {
367 if (offsetInBytes === void 0) 367 if (offsetInBytes === void 0)
368 offsetInBytes = 0; 368 offsetInBytes = 0;
369 if (length === void 0) 369 if (length === void 0)
370 length = null; 370 length = null;
371 return buffer.asFloat64x2List(offsetInBytes, length); 371 return dart.dcall(buffer.asFloat64x2List, offsetInBytes, length);
372 } 372 }
373 } 373 }
374 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; 374 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData];
375 dart.setSignature(Float64x2List, { 375 dart.setSignature(Float64x2List, {
376 constructors: () => ({ 376 constructors: () => ({
377 new: [Float64x2List, [core.int]], 377 new: [Float64x2List, [core.int]],
378 fromList: [Float64x2List, [core.List$(Float64x2)]], 378 fromList: [Float64x2List, [core.List$(Float64x2)]],
379 view: [Float64x2List, [ByteBuffer], [core.int, core.int]] 379 view: [Float64x2List, [ByteBuffer], [core.int, core.int]]
380 }) 380 })
381 }); 381 });
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 exports.Uint64List = Uint64List; 974 exports.Uint64List = Uint64List;
975 exports.Float32List = Float32List; 975 exports.Float32List = Float32List;
976 exports.Float64List = Float64List; 976 exports.Float64List = Float64List;
977 exports.Float32x4List = Float32x4List; 977 exports.Float32x4List = Float32x4List;
978 exports.Int32x4List = Int32x4List; 978 exports.Int32x4List = Int32x4List;
979 exports.Float64x2List = Float64x2List; 979 exports.Float64x2List = Float64x2List;
980 exports.Float32x4 = Float32x4; 980 exports.Float32x4 = Float32x4;
981 exports.Int32x4 = Int32x4; 981 exports.Int32x4 = Int32x4;
982 exports.Float64x2 = Float64x2; 982 exports.Float64x2 = Float64x2;
983 }); 983 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698