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

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

Issue 1093143004: fixes #52, fields shadowing getters/setters or other fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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; 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 _ = Symbol('_'); 6 let _ = Symbol('_');
7 let _littleEndian = Symbol('_littleEndian'); 7 let _littleEndian = Symbol('_littleEndian');
8 class Endianness extends core.Object { 8 class Endianness extends core.Object {
9 [_](littleEndian) { 9 [_](littleEndian) {
10 this[_littleEndian] = littleEndian; 10 dart.initField(Endianness, this, _littleEndian, littleEndian);
11 } 11 }
12 } 12 }
13 dart.defineNamedConstructor(Endianness, _); 13 dart.defineNamedConstructor(Endianness, _);
14 Endianness.BIG_ENDIAN = new Endianness[_](false); 14 Endianness.BIG_ENDIAN = new Endianness[_](false);
15 Endianness.LITTLE_ENDIAN = new Endianness[_](true); 15 Endianness.LITTLE_ENDIAN = new Endianness[_](true);
16 dart.defineLazyProperties(Endianness, { 16 dart.defineLazyProperties(Endianness, {
17 get HOST_ENDIAN() { 17 get HOST_ENDIAN() {
18 return new ByteData.view(new Uint16List.fromList(dart.as(new core.List.fro m([1]), core.List$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIA N : Endianness.BIG_ENDIAN; 18 return new ByteData.view(new Uint16List.fromList(dart.as(new core.List.fro m([1]), core.List$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIA N : Endianness.BIG_ENDIAN;
19 } 19 }
20 }); 20 });
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 exports.Uint64List = Uint64List; 877 exports.Uint64List = Uint64List;
878 exports.Float32List = Float32List; 878 exports.Float32List = Float32List;
879 exports.Float64List = Float64List; 879 exports.Float64List = Float64List;
880 exports.Float32x4List = Float32x4List; 880 exports.Float32x4List = Float32x4List;
881 exports.Int32x4List = Int32x4List; 881 exports.Int32x4List = Int32x4List;
882 exports.Float64x2List = Float64x2List; 882 exports.Float64x2List = Float64x2List;
883 exports.Float32x4 = Float32x4; 883 exports.Float32x4 = Float32x4;
884 exports.Int32x4 = Int32x4; 884 exports.Int32x4 = Int32x4;
885 exports.Float64x2 = Float64x2; 885 exports.Float64x2 = Float64x2;
886 })(typed_data || (typed_data = {})); 886 })(typed_data || (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