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

Side by Side Diff: test/codegen/expect/dart/math.js

Issue 961513002: Flesh out dynamic invocation code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Streamline ++ and -- in fallback case Created 5 years, 9 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 | « test/codegen/expect/dart/core.js ('k') | no next file » | 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 let E = 2.718281828459045; 4 let E = 2.718281828459045;
5 let LN10 = 2.302585092994046; 5 let LN10 = 2.302585092994046;
6 let LN2 = 0.6931471805599453; 6 let LN2 = 0.6931471805599453;
7 let LOG2E = 1.4426950408889634; 7 let LOG2E = 1.4426950408889634;
8 let LOG10E = 0.4342944819032518; 8 let LOG10E = 0.4342944819032518;
9 let PI = 3.141592653589793; 9 let PI = 3.141592653589793;
10 let SQRT1_2 = 0.7071067811865476; 10 let SQRT1_2 = 0.7071067811865476;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 } 353 }
354 } 354 }
355 return _RectangleBase; 355 return _RectangleBase;
356 }); 356 });
357 let _RectangleBase = _RectangleBase$(dynamic); 357 let _RectangleBase = _RectangleBase$(dynamic);
358 let Rectangle$ = dart.generic(function(T) { 358 let Rectangle$ = dart.generic(function(T) {
359 class Rectangle extends _RectangleBase$(T) { 359 class Rectangle extends _RectangleBase$(T) {
360 Rectangle(left, top, width, height) { 360 Rectangle(left, top, width, height) {
361 this.left = left; 361 this.left = left;
362 this.top = top; 362 this.top = top;
363 this.width = dart.as(width['<'](0) ? dart.notNull(dart.throw_("Unimpleme nted PrefixExpression: -width")) * 0 : width, T); 363 this.width = dart.as(width['<'](0) ? dart.notNull(width['unary-']()) * 0 : width, T);
364 this.height = dart.as(height['<'](0) ? dart.notNull(dart.throw_("Unimple mented PrefixExpression: -height")) * 0 : height, T); 364 this.height = dart.as(height['<'](0) ? dart.notNull(height['unary-']()) * 0 : height, T);
365 super._RectangleBase(); 365 super._RectangleBase();
366 } 366 }
367 Rectangle$fromPoints(a, b) { 367 Rectangle$fromPoints(a, b) {
368 let left = dart.as(min(a.x, b.x), T); 368 let left = dart.as(min(a.x, b.x), T);
369 let width = dart.as(core.num['-'](max(a.x, b.x), left), T); 369 let width = dart.as(core.num['-'](max(a.x, b.x), left), T);
370 let top = dart.as(min(a.y, b.y), T); 370 let top = dart.as(min(a.y, b.y), T);
371 let height = dart.as(core.num['-'](max(a.y, b.y), top), T); 371 let height = dart.as(core.num['-'](max(a.y, b.y), top), T);
372 return new Rectangle(left, top, width, height); 372 return new Rectangle(left, top, width, height);
373 } 373 }
374 } 374 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 exports.exp = exp; 443 exports.exp = exp;
444 exports.log = log; 444 exports.log = log;
445 exports.Point = Point; 445 exports.Point = Point;
446 exports.Point$ = Point$; 446 exports.Point$ = Point$;
447 exports.Random = Random; 447 exports.Random = Random;
448 exports.Rectangle = Rectangle; 448 exports.Rectangle = Rectangle;
449 exports.Rectangle$ = Rectangle$; 449 exports.Rectangle$ = Rectangle$;
450 exports.MutableRectangle = MutableRectangle; 450 exports.MutableRectangle = MutableRectangle;
451 exports.MutableRectangle$ = MutableRectangle$; 451 exports.MutableRectangle$ = MutableRectangle$;
452 })(math || (math = {})); 452 })(math || (math = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/core.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698