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

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

Issue 1233553005: Fixes #254 - Better stacktrace support (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Added utilities to help debugging Created 5 years, 5 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 {}
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 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 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 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 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 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];
(...skipping 719 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