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

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

Issue 1099333002: canonicalize const (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/core.js ('k') | lib/runtime/dart/typed_data.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 math; 1 var math;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class _JenkinsSmiHash extends core.Object { 4 class _JenkinsSmiHash extends core.Object {
5 static combine(hash, value) { 5 static combine(hash, value) {
6 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); 6 hash = 536870911 & dart.notNull(hash) + dart.notNull(value);
7 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) << 10); 7 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) << 10);
8 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; 8 return dart.notNull(hash) ^ dart.notNull(hash) >> 6;
9 } 9 }
10 static finish(hash) { 10 static finish(hash) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return dart.as(dart.notNull(dx) * dart.notNull(dx) + dart.notNull(dy) * dart.notNull(dy), T); 59 return dart.as(dart.notNull(dx) * dart.notNull(dx) + dart.notNull(dy) * dart.notNull(dy), T);
60 } 60 }
61 } 61 }
62 return Point; 62 return Point;
63 }); 63 });
64 let Point = Point$(); 64 let Point = Point$();
65 class Random extends core.Object { 65 class Random extends core.Object {
66 Random(seed) { 66 Random(seed) {
67 if (seed === void 0) 67 if (seed === void 0)
68 seed = null; 68 seed = null;
69 return seed == null ? new _JSRandom() : new _Random(seed); 69 return seed == null ? dart.const(new _JSRandom()) : new _Random(seed);
70 } 70 }
71 } 71 }
72 let _RectangleBase$ = dart.generic(function(T) { 72 let _RectangleBase$ = dart.generic(function(T) {
73 class _RectangleBase extends core.Object { 73 class _RectangleBase extends core.Object {
74 _RectangleBase() { 74 _RectangleBase() {
75 } 75 }
76 get right() { 76 get right() {
77 return dart.as(this.left['+'](this.width), T); 77 return dart.as(this.left['+'](this.width), T);
78 } 78 }
79 get bottom() { 79 get bottom() {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 exports.sin = sin; 449 exports.sin = sin;
450 exports.cos = cos; 450 exports.cos = cos;
451 exports.tan = tan; 451 exports.tan = tan;
452 exports.acos = acos; 452 exports.acos = acos;
453 exports.asin = asin; 453 exports.asin = asin;
454 exports.atan = atan; 454 exports.atan = atan;
455 exports.sqrt = sqrt; 455 exports.sqrt = sqrt;
456 exports.exp = exp; 456 exports.exp = exp;
457 exports.log = log; 457 exports.log = log;
458 })(math || (math = {})); 458 })(math || (math = {}));
OLDNEW
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698