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

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

Issue 1117333002: Fix some static member emits (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: reformat 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/core.js ('k') | lib/src/codegen/js_codegen.dart » ('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; 1 var typed_data;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class ByteBuffer extends core.Object {} 4 class ByteBuffer extends core.Object {}
5 class TypedData extends core.Object {} 5 class TypedData extends core.Object {}
6 let _littleEndian = Symbol('_littleEndian'); 6 let _littleEndian = Symbol('_littleEndian');
7 let _ = Symbol('_');
8 class Endianness extends core.Object { 7 class Endianness extends core.Object {
9 _(littleEndian) { 8 _(littleEndian) {
10 this[_littleEndian] = littleEndian; 9 this[_littleEndian] = littleEndian;
11 } 10 }
12 } 11 }
13 dart.defineNamedConstructor(Endianness, '_'); 12 dart.defineNamedConstructor(Endianness, '_');
14 Endianness.BIG_ENDIAN = dart.const(new Endianness[_](false)); 13 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
15 Endianness.LITTLE_ENDIAN = dart.const(new Endianness[_](true)); 14 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
16 dart.defineLazyProperties(Endianness, { 15 dart.defineLazyProperties(Endianness, {
17 get HOST_ENDIAN() { 16 get HOST_ENDIAN() {
18 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; 17 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;
19 } 18 }
20 }); 19 });
21 class ByteData extends core.Object { 20 class ByteData extends core.Object {
22 ByteData(length) { 21 ByteData(length) {
23 return new _native_typed_data.NativeByteData(length); 22 return new _native_typed_data.NativeByteData(length);
24 } 23 }
25 view(buffer, offsetInBytes, length) { 24 view(buffer, offsetInBytes, length) {
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 exports.Uint64List = Uint64List; 876 exports.Uint64List = Uint64List;
878 exports.Float32List = Float32List; 877 exports.Float32List = Float32List;
879 exports.Float64List = Float64List; 878 exports.Float64List = Float64List;
880 exports.Float32x4List = Float32x4List; 879 exports.Float32x4List = Float32x4List;
881 exports.Int32x4List = Int32x4List; 880 exports.Int32x4List = Int32x4List;
882 exports.Float64x2List = Float64x2List; 881 exports.Float64x2List = Float64x2List;
883 exports.Float32x4 = Float32x4; 882 exports.Float32x4 = Float32x4;
884 exports.Int32x4 = Int32x4; 883 exports.Int32x4 = Int32x4;
885 exports.Float64x2 = Float64x2; 884 exports.Float64x2 = Float64x2;
886 })(typed_data || (typed_data = {})); 885 })(typed_data || (typed_data = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698