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

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

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase on latest 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
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 class TypedData extends core.Object {} 7 class TypedData extends core.Object {}
8 let _littleEndian = Symbol('_littleEndian'); 8 let _littleEndian = Symbol('_littleEndian');
9 class Endianness extends core.Object { 9 class Endianness extends core.Object {
10 _(littleEndian) { 10 _(littleEndian) {
11 this[_littleEndian] = littleEndian; 11 this[_littleEndian] = littleEndian;
12 } 12 }
13 } 13 }
14 dart.defineNamedConstructor(Endianness, '_'); 14 dart.defineNamedConstructor(Endianness, '_');
15 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
16 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
17 dart.defineLazyProperties(Endianness, { 15 dart.defineLazyProperties(Endianness, {
16 get BIG_ENDIAN() {
17 return dart.const(new Endianness._(false));
18 },
19 set BIG_ENDIAN(_) {},
20 get LITTLE_ENDIAN() {
21 return dart.const(new Endianness._(true));
22 },
23 set LITTLE_ENDIAN(_) {},
18 get HOST_ENDIAN() { 24 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; 25 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 } 26 }
21 }); 27 });
22 class ByteData extends core.Object { 28 class ByteData extends core.Object {
23 ByteData(length) { 29 ByteData(length) {
24 return new _native_typed_data.NativeByteData(length); 30 return new _native_typed_data.NativeByteData(length);
25 } 31 }
26 view(buffer, offsetInBytes, length) { 32 view(buffer, offsetInBytes, length) {
27 if (offsetInBytes === void 0) 33 if (offsetInBytes === void 0)
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 exports.Uint64List = Uint64List; 884 exports.Uint64List = Uint64List;
879 exports.Float32List = Float32List; 885 exports.Float32List = Float32List;
880 exports.Float64List = Float64List; 886 exports.Float64List = Float64List;
881 exports.Float32x4List = Float32x4List; 887 exports.Float32x4List = Float32x4List;
882 exports.Int32x4List = Int32x4List; 888 exports.Int32x4List = Int32x4List;
883 exports.Float64x2List = Float64x2List; 889 exports.Float64x2List = Float64x2List;
884 exports.Float32x4 = Float32x4; 890 exports.Float32x4 = Float32x4;
885 exports.Int32x4 = Int32x4; 891 exports.Int32x4 = Int32x4;
886 exports.Float64x2 = Float64x2; 892 exports.Float64x2 = Float64x2;
887 })(typed_data, core, _native_typed_data); 893 })(typed_data, core, _native_typed_data);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698