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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 6 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/isolate.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 = dart.defineLibrary(math, {}); 1 dart.library('dart/math', null, /* Imports */[
2 var core = dart.import(core); 2 'dart/core'
3 var _js_helper = dart.lazyImport(_js_helper); 3 ], /* Lazy imports */[
4 (function(exports, core, _js_helper) { 4 'dart/_js_helper'
5 ], function(exports, core, _js_helper) {
5 'use strict'; 6 'use strict';
6 class _JenkinsSmiHash extends core.Object { 7 class _JenkinsSmiHash extends core.Object {
7 static combine(hash, value) { 8 static combine(hash, value) {
8 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); 9 hash = 536870911 & dart.notNull(hash) + dart.notNull(value);
9 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) << 10); 10 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) << 10);
10 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; 11 return dart.notNull(hash) ^ dart.notNull(hash) >> 6;
11 } 12 }
12 static finish(hash) { 13 static finish(hash) {
13 hash = 536870911 & dart.notNull(hash) + ((67108863 & dart.notNull(hash)) < < 3); 14 hash = 536870911 & dart.notNull(hash) + ((67108863 & dart.notNull(hash)) < < 3);
14 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 11; 15 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 11;
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 exports.pow = pow; 515 exports.pow = pow;
515 exports.sin = sin; 516 exports.sin = sin;
516 exports.cos = cos; 517 exports.cos = cos;
517 exports.tan = tan; 518 exports.tan = tan;
518 exports.acos = acos; 519 exports.acos = acos;
519 exports.asin = asin; 520 exports.asin = asin;
520 exports.atan = atan; 521 exports.atan = atan;
521 exports.sqrt = sqrt; 522 exports.sqrt = sqrt;
522 exports.exp = exp; 523 exports.exp = exp;
523 exports.log = log; 524 exports.log = log;
524 })(math, core, _js_helper); 525 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698