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

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

Issue 1249043006: fix truncate call to use extension method (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 5 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/_internal.js ('k') | lib/runtime/dart/_native_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.library('dart/_isolate_helper', null, /* Imports */[ 1 dart_library.library('dart/_isolate_helper', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core', 3 'dart/core',
4 'dart/_interceptors', 4 'dart/_interceptors',
5 'dart/_js_helper', 5 'dart/_js_helper',
6 'dart/isolate', 6 'dart/isolate',
7 'dart/_foreign_helper', 7 'dart/_foreign_helper',
8 'dart/collection', 8 'dart/collection',
9 'dart/async' 9 'dart/async'
10 ], /* Lazy imports */[ 10 ], /* Lazy imports */[
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 dart.fn(hasTimer, core.bool, []); 1515 dart.fn(hasTimer, core.bool, []);
1516 class CapabilityImpl extends core.Object { 1516 class CapabilityImpl extends core.Object {
1517 CapabilityImpl() { 1517 CapabilityImpl() {
1518 this._internal(_js_helper.random64()); 1518 this._internal(_js_helper.random64());
1519 } 1519 }
1520 _internal(id) { 1520 _internal(id) {
1521 this[_id] = id; 1521 this[_id] = id;
1522 } 1522 }
1523 get hashCode() { 1523 get hashCode() {
1524 let hash = this[_id]; 1524 let hash = this[_id];
1525 hash = dart.notNull(hash) >> 0 ^ (dart.notNull(hash) / 4294967296).truncat e(); 1525 hash = dart.notNull(hash) >> 0 ^ (dart.notNull(hash) / 4294967296)[dartx.t runcate]();
1526 hash = ~dart.notNull(hash) + (dart.notNull(hash) << 15) & 4294967295; 1526 hash = ~dart.notNull(hash) + (dart.notNull(hash) << 15) & 4294967295;
1527 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 12; 1527 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 12;
1528 hash = dart.notNull(hash) * 5 & 4294967295; 1528 hash = dart.notNull(hash) * 5 & 4294967295;
1529 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 4; 1529 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 4;
1530 hash = dart.notNull(hash) * 2057 & 4294967295; 1530 hash = dart.notNull(hash) * 2057 & 4294967295;
1531 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 16; 1531 hash = dart.notNull(hash) ^ dart.notNull(hash) >> 16;
1532 return hash; 1532 return hash;
1533 } 1533 }
1534 ['=='](other) { 1534 ['=='](other) {
1535 if (dart.notNull(core.identical(other, this))) 1535 if (dart.notNull(core.identical(other, this)))
(...skipping 18 matching lines...) Expand all
1554 exports.leaveJsAsync = leaveJsAsync; 1554 exports.leaveJsAsync = leaveJsAsync;
1555 exports.isWorker = isWorker; 1555 exports.isWorker = isWorker;
1556 exports.startRootIsolate = startRootIsolate; 1556 exports.startRootIsolate = startRootIsolate;
1557 exports.IsolateNatives = IsolateNatives; 1557 exports.IsolateNatives = IsolateNatives;
1558 exports.RawReceivePortImpl = RawReceivePortImpl; 1558 exports.RawReceivePortImpl = RawReceivePortImpl;
1559 exports.ReceivePortImpl = ReceivePortImpl; 1559 exports.ReceivePortImpl = ReceivePortImpl;
1560 exports.TimerImpl = TimerImpl; 1560 exports.TimerImpl = TimerImpl;
1561 exports.hasTimer = hasTimer; 1561 exports.hasTimer = hasTimer;
1562 exports.CapabilityImpl = CapabilityImpl; 1562 exports.CapabilityImpl = CapabilityImpl;
1563 }); 1563 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_internal.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698