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

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

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen Created 5 years 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/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 dart_library.library('dart/typed_data', null, /* Imports */[ 1 dart_library.library('dart/typed_data', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
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 {}
11 let _littleEndian = Symbol('_littleEndian'); 11 const _littleEndian = Symbol('_littleEndian');
12 class Endianness extends core.Object { 12 class Endianness extends core.Object {
13 _(littleEndian) { 13 _(littleEndian) {
14 this[_littleEndian] = littleEndian; 14 this[_littleEndian] = littleEndian;
15 } 15 }
16 } 16 }
17 dart.defineNamedConstructor(Endianness, '_'); 17 dart.defineNamedConstructor(Endianness, '_');
18 dart.setSignature(Endianness, { 18 dart.setSignature(Endianness, {
19 constructors: () => ({_: [Endianness, [core.bool]]}) 19 constructors: () => ({_: [Endianness, [core.bool]]})
20 }); 20 });
21 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); 21 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
(...skipping 952 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
« no previous file with comments | « lib/runtime/dart/math.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698