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

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

Issue 1138793002: Tag closures with their types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: More comment fixes Created 5 years, 7 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
« no previous file with comments | « lib/runtime/dart/math.js ('k') | lib/runtime/dart_runtime.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var typed_data = dart.defineLibrary(typed_data, {}); 1 var typed_data = dart.defineLibrary(typed_data, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 var _native_typed_data = dart.lazyImport(_native_typed_data); 3 var _native_typed_data = dart.lazyImport(_native_typed_data);
4 (function(exports, core, _native_typed_data) { 4 (function(exports, core, _native_typed_data) {
5 'use strict'; 5 'use strict';
6 class ByteBuffer extends core.Object {} 6 class ByteBuffer extends core.Object {}
7 dart.setSignature(ByteBuffer, {});
7 class TypedData extends core.Object {} 8 class TypedData extends core.Object {}
9 dart.setSignature(TypedData, {});
8 let _littleEndian = Symbol('_littleEndian'); 10 let _littleEndian = Symbol('_littleEndian');
9 class Endianness extends core.Object { 11 class Endianness extends core.Object {
10 _(littleEndian) { 12 _(littleEndian) {
11 this[_littleEndian] = littleEndian; 13 this[_littleEndian] = littleEndian;
12 } 14 }
13 } 15 }
14 dart.defineNamedConstructor(Endianness, '_'); 16 dart.defineNamedConstructor(Endianness, '_');
17 dart.setSignature(Endianness, {});
15 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); 18 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
16 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); 19 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
17 dart.defineLazyProperties(Endianness, { 20 dart.defineLazyProperties(Endianness, {
18 get HOST_ENDIAN() { 21 get HOST_ENDIAN() {
19 return new ByteData.view(new Uint16List.fromList(dart.setType([1], core.Li st$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness. BIG_ENDIAN; 22 return new ByteData.view(new Uint16List.fromList(dart.setType([1], core.Li st$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness. BIG_ENDIAN;
20 } 23 }
21 }); 24 });
22 class ByteData extends core.Object { 25 class ByteData extends core.Object {
23 ByteData(length) { 26 ByteData(length) {
24 return new _native_typed_data.NativeByteData(length); 27 return new _native_typed_data.NativeByteData(length);
25 } 28 }
26 view(buffer, offsetInBytes, length) { 29 view(buffer, offsetInBytes, length) {
27 if (offsetInBytes === void 0) 30 if (offsetInBytes === void 0)
28 offsetInBytes = 0; 31 offsetInBytes = 0;
29 if (length === void 0) 32 if (length === void 0)
30 length = null; 33 length = null;
31 return buffer.asByteData(offsetInBytes, length); 34 return buffer.asByteData(offsetInBytes, length);
32 } 35 }
33 } 36 }
34 ByteData[dart.implements] = () => [TypedData]; 37 ByteData[dart.implements] = () => [TypedData];
35 dart.defineNamedConstructor(ByteData, 'view'); 38 dart.defineNamedConstructor(ByteData, 'view');
39 dart.setSignature(ByteData, {});
36 class Int8List extends core.Object { 40 class Int8List extends core.Object {
37 Int8List(length) { 41 Int8List(length) {
38 return new _native_typed_data.NativeInt8List(length); 42 return new _native_typed_data.NativeInt8List(length);
39 } 43 }
40 fromList(elements) { 44 fromList(elements) {
41 return new _native_typed_data.NativeInt8List.fromList(elements); 45 return new _native_typed_data.NativeInt8List.fromList(elements);
42 } 46 }
43 view(buffer, offsetInBytes, length) { 47 view(buffer, offsetInBytes, length) {
44 if (offsetInBytes === void 0) 48 if (offsetInBytes === void 0)
45 offsetInBytes = 0; 49 offsetInBytes = 0;
46 if (length === void 0) 50 if (length === void 0)
47 length = null; 51 length = null;
48 return buffer.asInt8List(offsetInBytes, length); 52 return buffer.asInt8List(offsetInBytes, length);
49 } 53 }
50 } 54 }
51 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; 55 Int8List[dart.implements] = () => [core.List$(core.int), TypedData];
52 dart.defineNamedConstructor(Int8List, 'fromList'); 56 dart.defineNamedConstructor(Int8List, 'fromList');
53 dart.defineNamedConstructor(Int8List, 'view'); 57 dart.defineNamedConstructor(Int8List, 'view');
58 dart.setSignature(Int8List, {});
54 Int8List.BYTES_PER_ELEMENT = 1; 59 Int8List.BYTES_PER_ELEMENT = 1;
55 class Uint8List extends core.Object { 60 class Uint8List extends core.Object {
56 Uint8List(length) { 61 Uint8List(length) {
57 return new _native_typed_data.NativeUint8List(length); 62 return new _native_typed_data.NativeUint8List(length);
58 } 63 }
59 fromList(elements) { 64 fromList(elements) {
60 return new _native_typed_data.NativeUint8List.fromList(elements); 65 return new _native_typed_data.NativeUint8List.fromList(elements);
61 } 66 }
62 view(buffer, offsetInBytes, length) { 67 view(buffer, offsetInBytes, length) {
63 if (offsetInBytes === void 0) 68 if (offsetInBytes === void 0)
64 offsetInBytes = 0; 69 offsetInBytes = 0;
65 if (length === void 0) 70 if (length === void 0)
66 length = null; 71 length = null;
67 return buffer.asUint8List(offsetInBytes, length); 72 return buffer.asUint8List(offsetInBytes, length);
68 } 73 }
69 } 74 }
70 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; 75 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData];
71 dart.defineNamedConstructor(Uint8List, 'fromList'); 76 dart.defineNamedConstructor(Uint8List, 'fromList');
72 dart.defineNamedConstructor(Uint8List, 'view'); 77 dart.defineNamedConstructor(Uint8List, 'view');
78 dart.setSignature(Uint8List, {});
73 Uint8List.BYTES_PER_ELEMENT = 1; 79 Uint8List.BYTES_PER_ELEMENT = 1;
74 class Uint8ClampedList extends core.Object { 80 class Uint8ClampedList extends core.Object {
75 Uint8ClampedList(length) { 81 Uint8ClampedList(length) {
76 return new _native_typed_data.NativeUint8ClampedList(length); 82 return new _native_typed_data.NativeUint8ClampedList(length);
77 } 83 }
78 fromList(elements) { 84 fromList(elements) {
79 return new _native_typed_data.NativeUint8ClampedList.fromList(elements); 85 return new _native_typed_data.NativeUint8ClampedList.fromList(elements);
80 } 86 }
81 view(buffer, offsetInBytes, length) { 87 view(buffer, offsetInBytes, length) {
82 if (offsetInBytes === void 0) 88 if (offsetInBytes === void 0)
83 offsetInBytes = 0; 89 offsetInBytes = 0;
84 if (length === void 0) 90 if (length === void 0)
85 length = null; 91 length = null;
86 return buffer.asUint8ClampedList(offsetInBytes, length); 92 return buffer.asUint8ClampedList(offsetInBytes, length);
87 } 93 }
88 } 94 }
89 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; 95 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData];
90 dart.defineNamedConstructor(Uint8ClampedList, 'fromList'); 96 dart.defineNamedConstructor(Uint8ClampedList, 'fromList');
91 dart.defineNamedConstructor(Uint8ClampedList, 'view'); 97 dart.defineNamedConstructor(Uint8ClampedList, 'view');
98 dart.setSignature(Uint8ClampedList, {});
92 Uint8ClampedList.BYTES_PER_ELEMENT = 1; 99 Uint8ClampedList.BYTES_PER_ELEMENT = 1;
93 class Int16List extends core.Object { 100 class Int16List extends core.Object {
94 Int16List(length) { 101 Int16List(length) {
95 return new _native_typed_data.NativeInt16List(length); 102 return new _native_typed_data.NativeInt16List(length);
96 } 103 }
97 fromList(elements) { 104 fromList(elements) {
98 return new _native_typed_data.NativeInt16List.fromList(elements); 105 return new _native_typed_data.NativeInt16List.fromList(elements);
99 } 106 }
100 view(buffer, offsetInBytes, length) { 107 view(buffer, offsetInBytes, length) {
101 if (offsetInBytes === void 0) 108 if (offsetInBytes === void 0)
102 offsetInBytes = 0; 109 offsetInBytes = 0;
103 if (length === void 0) 110 if (length === void 0)
104 length = null; 111 length = null;
105 return buffer.asInt16List(offsetInBytes, length); 112 return buffer.asInt16List(offsetInBytes, length);
106 } 113 }
107 } 114 }
108 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; 115 Int16List[dart.implements] = () => [core.List$(core.int), TypedData];
109 dart.defineNamedConstructor(Int16List, 'fromList'); 116 dart.defineNamedConstructor(Int16List, 'fromList');
110 dart.defineNamedConstructor(Int16List, 'view'); 117 dart.defineNamedConstructor(Int16List, 'view');
118 dart.setSignature(Int16List, {});
111 Int16List.BYTES_PER_ELEMENT = 2; 119 Int16List.BYTES_PER_ELEMENT = 2;
112 class Uint16List extends core.Object { 120 class Uint16List extends core.Object {
113 Uint16List(length) { 121 Uint16List(length) {
114 return new _native_typed_data.NativeUint16List(length); 122 return new _native_typed_data.NativeUint16List(length);
115 } 123 }
116 fromList(elements) { 124 fromList(elements) {
117 return new _native_typed_data.NativeUint16List.fromList(elements); 125 return new _native_typed_data.NativeUint16List.fromList(elements);
118 } 126 }
119 view(buffer, offsetInBytes, length) { 127 view(buffer, offsetInBytes, length) {
120 if (offsetInBytes === void 0) 128 if (offsetInBytes === void 0)
121 offsetInBytes = 0; 129 offsetInBytes = 0;
122 if (length === void 0) 130 if (length === void 0)
123 length = null; 131 length = null;
124 return buffer.asUint16List(offsetInBytes, length); 132 return buffer.asUint16List(offsetInBytes, length);
125 } 133 }
126 } 134 }
127 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; 135 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData];
128 dart.defineNamedConstructor(Uint16List, 'fromList'); 136 dart.defineNamedConstructor(Uint16List, 'fromList');
129 dart.defineNamedConstructor(Uint16List, 'view'); 137 dart.defineNamedConstructor(Uint16List, 'view');
138 dart.setSignature(Uint16List, {});
130 Uint16List.BYTES_PER_ELEMENT = 2; 139 Uint16List.BYTES_PER_ELEMENT = 2;
131 class Int32List extends core.Object { 140 class Int32List extends core.Object {
132 Int32List(length) { 141 Int32List(length) {
133 return new _native_typed_data.NativeInt32List(length); 142 return new _native_typed_data.NativeInt32List(length);
134 } 143 }
135 fromList(elements) { 144 fromList(elements) {
136 return new _native_typed_data.NativeInt32List.fromList(elements); 145 return new _native_typed_data.NativeInt32List.fromList(elements);
137 } 146 }
138 view(buffer, offsetInBytes, length) { 147 view(buffer, offsetInBytes, length) {
139 if (offsetInBytes === void 0) 148 if (offsetInBytes === void 0)
140 offsetInBytes = 0; 149 offsetInBytes = 0;
141 if (length === void 0) 150 if (length === void 0)
142 length = null; 151 length = null;
143 return buffer.asInt32List(offsetInBytes, length); 152 return buffer.asInt32List(offsetInBytes, length);
144 } 153 }
145 } 154 }
146 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; 155 Int32List[dart.implements] = () => [core.List$(core.int), TypedData];
147 dart.defineNamedConstructor(Int32List, 'fromList'); 156 dart.defineNamedConstructor(Int32List, 'fromList');
148 dart.defineNamedConstructor(Int32List, 'view'); 157 dart.defineNamedConstructor(Int32List, 'view');
158 dart.setSignature(Int32List, {});
149 Int32List.BYTES_PER_ELEMENT = 4; 159 Int32List.BYTES_PER_ELEMENT = 4;
150 class Uint32List extends core.Object { 160 class Uint32List extends core.Object {
151 Uint32List(length) { 161 Uint32List(length) {
152 return new _native_typed_data.NativeUint32List(length); 162 return new _native_typed_data.NativeUint32List(length);
153 } 163 }
154 fromList(elements) { 164 fromList(elements) {
155 return new _native_typed_data.NativeUint32List.fromList(elements); 165 return new _native_typed_data.NativeUint32List.fromList(elements);
156 } 166 }
157 view(buffer, offsetInBytes, length) { 167 view(buffer, offsetInBytes, length) {
158 if (offsetInBytes === void 0) 168 if (offsetInBytes === void 0)
159 offsetInBytes = 0; 169 offsetInBytes = 0;
160 if (length === void 0) 170 if (length === void 0)
161 length = null; 171 length = null;
162 return buffer.asUint32List(offsetInBytes, length); 172 return buffer.asUint32List(offsetInBytes, length);
163 } 173 }
164 } 174 }
165 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; 175 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData];
166 dart.defineNamedConstructor(Uint32List, 'fromList'); 176 dart.defineNamedConstructor(Uint32List, 'fromList');
167 dart.defineNamedConstructor(Uint32List, 'view'); 177 dart.defineNamedConstructor(Uint32List, 'view');
178 dart.setSignature(Uint32List, {});
168 Uint32List.BYTES_PER_ELEMENT = 4; 179 Uint32List.BYTES_PER_ELEMENT = 4;
169 class Int64List extends core.Object { 180 class Int64List extends core.Object {
170 Int64List(length) { 181 Int64List(length) {
171 throw new core.UnsupportedError("Int64List not supported by dart2js."); 182 throw new core.UnsupportedError("Int64List not supported by dart2js.");
172 } 183 }
173 fromList(elements) { 184 fromList(elements) {
174 throw new core.UnsupportedError("Int64List not supported by dart2js."); 185 throw new core.UnsupportedError("Int64List not supported by dart2js.");
175 } 186 }
176 view(buffer, offsetInBytes, length) { 187 view(buffer, offsetInBytes, length) {
177 if (offsetInBytes === void 0) 188 if (offsetInBytes === void 0)
178 offsetInBytes = 0; 189 offsetInBytes = 0;
179 if (length === void 0) 190 if (length === void 0)
180 length = null; 191 length = null;
181 return buffer.asInt64List(offsetInBytes, length); 192 return buffer.asInt64List(offsetInBytes, length);
182 } 193 }
183 } 194 }
184 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; 195 Int64List[dart.implements] = () => [core.List$(core.int), TypedData];
185 dart.defineNamedConstructor(Int64List, 'fromList'); 196 dart.defineNamedConstructor(Int64List, 'fromList');
186 dart.defineNamedConstructor(Int64List, 'view'); 197 dart.defineNamedConstructor(Int64List, 'view');
198 dart.setSignature(Int64List, {});
187 Int64List.BYTES_PER_ELEMENT = 8; 199 Int64List.BYTES_PER_ELEMENT = 8;
188 class Uint64List extends core.Object { 200 class Uint64List extends core.Object {
189 Uint64List(length) { 201 Uint64List(length) {
190 throw new core.UnsupportedError("Uint64List not supported by dart2js."); 202 throw new core.UnsupportedError("Uint64List not supported by dart2js.");
191 } 203 }
192 fromList(elements) { 204 fromList(elements) {
193 throw new core.UnsupportedError("Uint64List not supported by dart2js."); 205 throw new core.UnsupportedError("Uint64List not supported by dart2js.");
194 } 206 }
195 view(buffer, offsetInBytes, length) { 207 view(buffer, offsetInBytes, length) {
196 if (offsetInBytes === void 0) 208 if (offsetInBytes === void 0)
197 offsetInBytes = 0; 209 offsetInBytes = 0;
198 if (length === void 0) 210 if (length === void 0)
199 length = null; 211 length = null;
200 return buffer.asUint64List(offsetInBytes, length); 212 return buffer.asUint64List(offsetInBytes, length);
201 } 213 }
202 } 214 }
203 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; 215 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData];
204 dart.defineNamedConstructor(Uint64List, 'fromList'); 216 dart.defineNamedConstructor(Uint64List, 'fromList');
205 dart.defineNamedConstructor(Uint64List, 'view'); 217 dart.defineNamedConstructor(Uint64List, 'view');
218 dart.setSignature(Uint64List, {});
206 Uint64List.BYTES_PER_ELEMENT = 8; 219 Uint64List.BYTES_PER_ELEMENT = 8;
207 class Float32List extends core.Object { 220 class Float32List extends core.Object {
208 Float32List(length) { 221 Float32List(length) {
209 return new _native_typed_data.NativeFloat32List(length); 222 return new _native_typed_data.NativeFloat32List(length);
210 } 223 }
211 fromList(elements) { 224 fromList(elements) {
212 return new _native_typed_data.NativeFloat32List.fromList(elements); 225 return new _native_typed_data.NativeFloat32List.fromList(elements);
213 } 226 }
214 view(buffer, offsetInBytes, length) { 227 view(buffer, offsetInBytes, length) {
215 if (offsetInBytes === void 0) 228 if (offsetInBytes === void 0)
216 offsetInBytes = 0; 229 offsetInBytes = 0;
217 if (length === void 0) 230 if (length === void 0)
218 length = null; 231 length = null;
219 return buffer.asFloat32List(offsetInBytes, length); 232 return buffer.asFloat32List(offsetInBytes, length);
220 } 233 }
221 } 234 }
222 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; 235 Float32List[dart.implements] = () => [core.List$(core.double), TypedData];
223 dart.defineNamedConstructor(Float32List, 'fromList'); 236 dart.defineNamedConstructor(Float32List, 'fromList');
224 dart.defineNamedConstructor(Float32List, 'view'); 237 dart.defineNamedConstructor(Float32List, 'view');
238 dart.setSignature(Float32List, {});
225 Float32List.BYTES_PER_ELEMENT = 4; 239 Float32List.BYTES_PER_ELEMENT = 4;
226 class Float64List extends core.Object { 240 class Float64List extends core.Object {
227 Float64List(length) { 241 Float64List(length) {
228 return new _native_typed_data.NativeFloat64List(length); 242 return new _native_typed_data.NativeFloat64List(length);
229 } 243 }
230 fromList(elements) { 244 fromList(elements) {
231 return new _native_typed_data.NativeFloat64List.fromList(elements); 245 return new _native_typed_data.NativeFloat64List.fromList(elements);
232 } 246 }
233 view(buffer, offsetInBytes, length) { 247 view(buffer, offsetInBytes, length) {
234 if (offsetInBytes === void 0) 248 if (offsetInBytes === void 0)
235 offsetInBytes = 0; 249 offsetInBytes = 0;
236 if (length === void 0) 250 if (length === void 0)
237 length = null; 251 length = null;
238 return buffer.asFloat64List(offsetInBytes, length); 252 return buffer.asFloat64List(offsetInBytes, length);
239 } 253 }
240 } 254 }
241 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; 255 Float64List[dart.implements] = () => [core.List$(core.double), TypedData];
242 dart.defineNamedConstructor(Float64List, 'fromList'); 256 dart.defineNamedConstructor(Float64List, 'fromList');
243 dart.defineNamedConstructor(Float64List, 'view'); 257 dart.defineNamedConstructor(Float64List, 'view');
258 dart.setSignature(Float64List, {});
244 Float64List.BYTES_PER_ELEMENT = 8; 259 Float64List.BYTES_PER_ELEMENT = 8;
245 class Float32x4List extends core.Object { 260 class Float32x4List extends core.Object {
246 Float32x4List(length) { 261 Float32x4List(length) {
247 return new _native_typed_data.NativeFloat32x4List(length); 262 return new _native_typed_data.NativeFloat32x4List(length);
248 } 263 }
249 fromList(elements) { 264 fromList(elements) {
250 return new _native_typed_data.NativeFloat32x4List.fromList(elements); 265 return new _native_typed_data.NativeFloat32x4List.fromList(elements);
251 } 266 }
252 view(buffer, offsetInBytes, length) { 267 view(buffer, offsetInBytes, length) {
253 if (offsetInBytes === void 0) 268 if (offsetInBytes === void 0)
254 offsetInBytes = 0; 269 offsetInBytes = 0;
255 if (length === void 0) 270 if (length === void 0)
256 length = null; 271 length = null;
257 return buffer.asFloat32x4List(offsetInBytes, length); 272 return buffer.asFloat32x4List(offsetInBytes, length);
258 } 273 }
259 } 274 }
260 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; 275 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData];
261 dart.defineNamedConstructor(Float32x4List, 'fromList'); 276 dart.defineNamedConstructor(Float32x4List, 'fromList');
262 dart.defineNamedConstructor(Float32x4List, 'view'); 277 dart.defineNamedConstructor(Float32x4List, 'view');
278 dart.setSignature(Float32x4List, {});
263 Float32x4List.BYTES_PER_ELEMENT = 16; 279 Float32x4List.BYTES_PER_ELEMENT = 16;
264 class Int32x4List extends core.Object { 280 class Int32x4List extends core.Object {
265 Int32x4List(length) { 281 Int32x4List(length) {
266 return new _native_typed_data.NativeInt32x4List(length); 282 return new _native_typed_data.NativeInt32x4List(length);
267 } 283 }
268 fromList(elements) { 284 fromList(elements) {
269 return new _native_typed_data.NativeInt32x4List.fromList(elements); 285 return new _native_typed_data.NativeInt32x4List.fromList(elements);
270 } 286 }
271 view(buffer, offsetInBytes, length) { 287 view(buffer, offsetInBytes, length) {
272 if (offsetInBytes === void 0) 288 if (offsetInBytes === void 0)
273 offsetInBytes = 0; 289 offsetInBytes = 0;
274 if (length === void 0) 290 if (length === void 0)
275 length = null; 291 length = null;
276 return buffer.asInt32x4List(offsetInBytes, length); 292 return buffer.asInt32x4List(offsetInBytes, length);
277 } 293 }
278 } 294 }
279 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; 295 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData];
280 dart.defineNamedConstructor(Int32x4List, 'fromList'); 296 dart.defineNamedConstructor(Int32x4List, 'fromList');
281 dart.defineNamedConstructor(Int32x4List, 'view'); 297 dart.defineNamedConstructor(Int32x4List, 'view');
298 dart.setSignature(Int32x4List, {});
282 Int32x4List.BYTES_PER_ELEMENT = 16; 299 Int32x4List.BYTES_PER_ELEMENT = 16;
283 class Float64x2List extends core.Object { 300 class Float64x2List extends core.Object {
284 Float64x2List(length) { 301 Float64x2List(length) {
285 return new _native_typed_data.NativeFloat64x2List(length); 302 return new _native_typed_data.NativeFloat64x2List(length);
286 } 303 }
287 fromList(elements) { 304 fromList(elements) {
288 return new _native_typed_data.NativeFloat64x2List.fromList(elements); 305 return new _native_typed_data.NativeFloat64x2List.fromList(elements);
289 } 306 }
290 view(buffer, offsetInBytes, length) { 307 view(buffer, offsetInBytes, length) {
291 if (offsetInBytes === void 0) 308 if (offsetInBytes === void 0)
292 offsetInBytes = 0; 309 offsetInBytes = 0;
293 if (length === void 0) 310 if (length === void 0)
294 length = null; 311 length = null;
295 return buffer.asFloat64x2List(offsetInBytes, length); 312 return buffer.asFloat64x2List(offsetInBytes, length);
296 } 313 }
297 } 314 }
298 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; 315 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData];
299 dart.defineNamedConstructor(Float64x2List, 'fromList'); 316 dart.defineNamedConstructor(Float64x2List, 'fromList');
300 dart.defineNamedConstructor(Float64x2List, 'view'); 317 dart.defineNamedConstructor(Float64x2List, 'view');
318 dart.setSignature(Float64x2List, {});
301 Float64x2List.BYTES_PER_ELEMENT = 16; 319 Float64x2List.BYTES_PER_ELEMENT = 16;
302 class Float32x4 extends core.Object { 320 class Float32x4 extends core.Object {
303 Float32x4(x, y, z, w) { 321 Float32x4(x, y, z, w) {
304 return new _native_typed_data.NativeFloat32x4(x, y, z, w); 322 return new _native_typed_data.NativeFloat32x4(x, y, z, w);
305 } 323 }
306 splat(v) { 324 splat(v) {
307 return new _native_typed_data.NativeFloat32x4.splat(v); 325 return new _native_typed_data.NativeFloat32x4.splat(v);
308 } 326 }
309 zero() { 327 zero() {
310 return new _native_typed_data.NativeFloat32x4.zero(); 328 return new _native_typed_data.NativeFloat32x4.zero();
311 } 329 }
312 fromInt32x4Bits(x) { 330 fromInt32x4Bits(x) {
313 return new _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x); 331 return new _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x);
314 } 332 }
315 fromFloat64x2(v) { 333 fromFloat64x2(v) {
316 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v); 334 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v);
317 } 335 }
318 } 336 }
319 dart.defineNamedConstructor(Float32x4, 'splat'); 337 dart.defineNamedConstructor(Float32x4, 'splat');
320 dart.defineNamedConstructor(Float32x4, 'zero'); 338 dart.defineNamedConstructor(Float32x4, 'zero');
321 dart.defineNamedConstructor(Float32x4, 'fromInt32x4Bits'); 339 dart.defineNamedConstructor(Float32x4, 'fromInt32x4Bits');
322 dart.defineNamedConstructor(Float32x4, 'fromFloat64x2'); 340 dart.defineNamedConstructor(Float32x4, 'fromFloat64x2');
341 dart.setSignature(Float32x4, {});
323 Float32x4.XXXX = 0; 342 Float32x4.XXXX = 0;
324 Float32x4.XXXY = 64; 343 Float32x4.XXXY = 64;
325 Float32x4.XXXZ = 128; 344 Float32x4.XXXZ = 128;
326 Float32x4.XXXW = 192; 345 Float32x4.XXXW = 192;
327 Float32x4.XXYX = 16; 346 Float32x4.XXYX = 16;
328 Float32x4.XXYY = 80; 347 Float32x4.XXYY = 80;
329 Float32x4.XXYZ = 144; 348 Float32x4.XXYZ = 144;
330 Float32x4.XXYW = 208; 349 Float32x4.XXYW = 208;
331 Float32x4.XXZX = 32; 350 Float32x4.XXZX = 32;
332 Float32x4.XXZY = 96; 351 Float32x4.XXZY = 96;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 } 601 }
583 bool(x, y, z, w) { 602 bool(x, y, z, w) {
584 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w); 603 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w);
585 } 604 }
586 fromFloat32x4Bits(x) { 605 fromFloat32x4Bits(x) {
587 return new _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x); 606 return new _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x);
588 } 607 }
589 } 608 }
590 dart.defineNamedConstructor(Int32x4, 'bool'); 609 dart.defineNamedConstructor(Int32x4, 'bool');
591 dart.defineNamedConstructor(Int32x4, 'fromFloat32x4Bits'); 610 dart.defineNamedConstructor(Int32x4, 'fromFloat32x4Bits');
611 dart.setSignature(Int32x4, {});
592 Int32x4.XXXX = 0; 612 Int32x4.XXXX = 0;
593 Int32x4.XXXY = 64; 613 Int32x4.XXXY = 64;
594 Int32x4.XXXZ = 128; 614 Int32x4.XXXZ = 128;
595 Int32x4.XXXW = 192; 615 Int32x4.XXXW = 192;
596 Int32x4.XXYX = 16; 616 Int32x4.XXYX = 16;
597 Int32x4.XXYY = 80; 617 Int32x4.XXYY = 80;
598 Int32x4.XXYZ = 144; 618 Int32x4.XXYZ = 144;
599 Int32x4.XXYW = 208; 619 Int32x4.XXYW = 208;
600 Int32x4.XXZX = 32; 620 Int32x4.XXZX = 32;
601 Int32x4.XXZY = 96; 621 Int32x4.XXZY = 96;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 zero() { 875 zero() {
856 return new _native_typed_data.NativeFloat64x2.zero(); 876 return new _native_typed_data.NativeFloat64x2.zero();
857 } 877 }
858 fromFloat32x4(v) { 878 fromFloat32x4(v) {
859 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v); 879 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v);
860 } 880 }
861 } 881 }
862 dart.defineNamedConstructor(Float64x2, 'splat'); 882 dart.defineNamedConstructor(Float64x2, 'splat');
863 dart.defineNamedConstructor(Float64x2, 'zero'); 883 dart.defineNamedConstructor(Float64x2, 'zero');
864 dart.defineNamedConstructor(Float64x2, 'fromFloat32x4'); 884 dart.defineNamedConstructor(Float64x2, 'fromFloat32x4');
885 dart.setSignature(Float64x2, {});
865 // Exports: 886 // Exports:
866 exports.ByteBuffer = ByteBuffer; 887 exports.ByteBuffer = ByteBuffer;
867 exports.TypedData = TypedData; 888 exports.TypedData = TypedData;
868 exports.Endianness = Endianness; 889 exports.Endianness = Endianness;
869 exports.ByteData = ByteData; 890 exports.ByteData = ByteData;
870 exports.Int8List = Int8List; 891 exports.Int8List = Int8List;
871 exports.Uint8List = Uint8List; 892 exports.Uint8List = Uint8List;
872 exports.Uint8ClampedList = Uint8ClampedList; 893 exports.Uint8ClampedList = Uint8ClampedList;
873 exports.Int16List = Int16List; 894 exports.Int16List = Int16List;
874 exports.Uint16List = Uint16List; 895 exports.Uint16List = Uint16List;
875 exports.Int32List = Int32List; 896 exports.Int32List = Int32List;
876 exports.Uint32List = Uint32List; 897 exports.Uint32List = Uint32List;
877 exports.Int64List = Int64List; 898 exports.Int64List = Int64List;
878 exports.Uint64List = Uint64List; 899 exports.Uint64List = Uint64List;
879 exports.Float32List = Float32List; 900 exports.Float32List = Float32List;
880 exports.Float64List = Float64List; 901 exports.Float64List = Float64List;
881 exports.Float32x4List = Float32x4List; 902 exports.Float32x4List = Float32x4List;
882 exports.Int32x4List = Int32x4List; 903 exports.Int32x4List = Int32x4List;
883 exports.Float64x2List = Float64x2List; 904 exports.Float64x2List = Float64x2List;
884 exports.Float32x4 = Float32x4; 905 exports.Float32x4 = Float32x4;
885 exports.Int32x4 = Int32x4; 906 exports.Int32x4 = Int32x4;
886 exports.Float64x2 = Float64x2; 907 exports.Float64x2 = Float64x2;
887 })(typed_data, core, _native_typed_data); 908 })(typed_data, core, _native_typed_data);
OLDNEW
« 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