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

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

Issue 1182653002: Refactor runtime into libraries, better type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments 2 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 dart.library('dart/math', null, /* Imports */[ 1 dart_library.library('dart/math', null, /* Imports */[
2 "dart_runtime/dart",
2 'dart/core' 3 'dart/core'
3 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
4 'dart/_js_helper' 5 'dart/_js_helper'
5 ], function(exports, core, _js_helper) { 6 ], function(exports, dart, core, _js_helper) {
6 'use strict'; 7 'use strict';
8 let dartx = dart.dartx;
7 class _JenkinsSmiHash extends core.Object { 9 class _JenkinsSmiHash extends core.Object {
8 static combine(hash, value) { 10 static combine(hash, value) {
9 hash = 536870911 & dart.notNull(hash) + dart.notNull(value); 11 hash = 536870911 & dart.notNull(hash) + dart.notNull(value);
10 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) << 10); 12 hash = 536870911 & dart.notNull(hash) + ((524287 & dart.notNull(hash)) << 10);
11 return dart.notNull(hash) ^ dart.notNull(hash) >> 6; 13 return dart.notNull(hash) ^ dart.notNull(hash) >> 6;
12 } 14 }
13 static finish(hash) { 15 static finish(hash) {
14 hash = 536870911 & dart.notNull(hash) + ((67108863 & dart.notNull(hash)) < < 3); 16 hash = 536870911 & dart.notNull(hash) + ((67108863 & dart.notNull(hash)) < < 3);
15 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 11; 17 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 11;
16 return 536870911 & dart.notNull(hash) + ((16383 & dart.notNull(hash)) << 1 5); 18 return 536870911 & dart.notNull(hash) + ((16383 & dart.notNull(hash)) << 1 5);
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 exports.sin = sin; 518 exports.sin = sin;
517 exports.cos = cos; 519 exports.cos = cos;
518 exports.tan = tan; 520 exports.tan = tan;
519 exports.acos = acos; 521 exports.acos = acos;
520 exports.asin = asin; 522 exports.asin = asin;
521 exports.atan = atan; 523 exports.atan = atan;
522 exports.sqrt = sqrt; 524 exports.sqrt = sqrt;
523 exports.exp = exp; 525 exports.exp = exp;
524 exports.log = log; 526 exports.log = log;
525 }); 527 });
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